Thank you for visiting SotAwiki, a Shroud of the Avatar Wiki Encyclopedia. If you see any information that is outdated, please take the time to update it, or if you prefer, leave a message for other editors. This community wiki is for the benefit of all Avatars!

Template:MapTest: Difference between revisions

From SotA Wiki
Jump to navigation Jump to search
Fenyx4 (talk | contribs)
No edit summary
Fenyx4 (talk | contribs)
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{{continentid|}}}{{{sceneid|}}}{{{centerX|}}}{{{centerY|}}}{{{zoom|}}}{{{height|}}}{{{width|}}}{{{clear|}}}{{{hideAttribution|}}}{{{hideZoom|}}}
<includeonly><div style="clear:{{{clear|both}}};"></div><div class="sotamap" data-continentid={{ContinentID|{{{continent|Novia}}}}} data-sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|0}} data-centerx={{{centerX|150}}} data-centery={{{centerY|150}}} data-zoom={{{zoom|1}}} data-hideattribution={{{hideAttribution|0}}} data-hidezoom={{{hideZoom|1}}} style="width: {{{width|800}}}px; height: {{{height|800}}}px"><!--
|layerGroupQuery1={{#if:{{{layerGroupQuery1|}}}|http://sotawiki.net/sota/Special:Ask/{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{layerGroupQuery1|}}}/?Has {{#if:{{{sceneid|}}}|scene|continent}} coords|[|-5B}}| |-20}}|?|-3F}}|]|-5D}}|'|%27}}/format%3Dcsv/offset%3D0/headers%3Dhide|}}
|layerGroupName1={{{layerGroupName1|}}}
|layerGroupQuery2={{#if:{{{layerGroupQuery2|}}}|http://sotawiki.net/sota/Special:Ask/{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{layerGroupQuery2|}}}/?Has {{#if:{{{sceneid|}}}|scene|continent}} coords|[|-5B}}| |-20}}|?|-3F}}|]|-5D}}|'|%27}}/format%3Dcsv/offset%3D0/headers%3Dhide|}}
|layerGroupName2={{{layerGroupName2|}}}
|layerGroupQuery3={{#if:{{{layerGroupQuery3|}}}|http://sotawiki.net/sota/Special:Ask/{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{layerGroupQuery3|}}}/?Has {{#if:{{{sceneid|}}}|scene|continent}} coords|[|-5B}}| |-20}}|?|-3F}}|]|-5D}}|'|%27}}/format%3Dcsv/offset%3D0/headers%3Dhide|}}
|layerGroupName3={{{layerGroupName3|}}}
|markerQuery={{#if:{{{markerQuery|}}}|http://sotawiki.net/sota/Special:Ask/{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{markerQuery|}}}/?Has {{#if:{{{sceneid|}}}|scene|continent}} coords|[|-5B}}| |-20}}|?|-3F}}|]|-5D}}|'|%27}}/format%3Dcsv/offset%3D0/headers%3Dhide|}}
}}
 
</noinclude><div style="clear:{{{clear|both}}};"></div><div class="sotamap" data-continentid={{{continentid|1}}} data-sceneid={{{sceneid|0}}} style="width: {{{width|800}}}px; height: {{{height|800}}}px"><!--
Display markers from query
Display markers from query
-->
-->{{Map/Marker divs
{{#ask: {{{markerQuery|}}}
|markerQuery={{{markerQuery|}}}
|?has scene coords = continent |+index=1
|sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}}
|?has scene coords = scene |+index=2
}}<!--
|?has scene coords = x |+index=3
Display LayerGroups queries
|?has scene coords = y |+index=4
-->{{#if:{{{layerGroupQuery1|}}}|<div class="map-group" style="display: none;"
|sort=,
        data-name="{{{layerGroupName1|}}}">{{Map/Marker divs
|format=template
|markerQuery={{{layerGroupQuery1|}}}
|template=Query map markers
|sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}}
|introtemplate=
}}</div>|}}{{#if:{{{layerGroupQuery2|}}}|<div class="map-group" style="display: none;"
|outrotemplate=
        data-name="{{{layerGroupName2|}}}">{{Map/Marker divs
|default=
|markerQuery={{{layerGroupQuery2|}}}
|link=none
|sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}}
}}
}}</div>|}}{{#if:{{{layerGroupQuery3|}}}|<div class="map-group" style="display: none;"
 
        data-name="{{{layerGroupName3|}}}">{{Map/Marker divs
</div>
|markerQuery={{{layerGroupQuery3|}}}
 
|sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}}
 
}}</div>|}}<!--
{{#Widget:MapTest}}
Display manually entered markers
<!--[[has continent coords::Hidden Vale;?;?]] [[located in::Hidden Vale]] [[Category:Towns]]
-->{{#arraymap:{{{markers|}}}|;|*|<div class="map-marker" data-name="{{#explode:*|,|0}}" data-coordinate="{{{continent}}};{{#if:{{{scene|}}}|{{{scene}}};|}}{{#explode:*|,|1}};{{#explode:*|,|2}}"></div>|\n}}
 
</div></includeonly><noinclude><br style="clear:both;"/>
http://sotawiki.net/sota/Special:Ask/-5B-5Bhas-20continent-20coords::Hidden-20Vale;-3F;-3F-5D-5D-20-5B-5Blocated-20in::Hidden-20Vale-5D-5D-20-5B-5BCategory:Towns-5D-5D/-3FHas-20continent-20coords/format%3Dcsv/offset%3D0/headers%3Dhide
{{documentation}}
 
[[Category:Misc templates]]</noinclude>
http://sotawiki.net/sota/Special:Ask/{{#replace:{{#replace:{{#replace:{{#replace:[[has continent coords::Hidden Vale;?;?]] [[located in::Hidden Vale]] [[Category:Towns]]/?Has continent coords|[|-5B}}| |-20}}|?|-3F}}|]|-5D}}/format%3Dcsv/offset%3D0/headers%3Dhide
 
{{fullurl:Special:Ask|{{urlencode:[[has continent coords::Hidden Vale;?;?]] [[Category:Player run towns]]}}|?Has continent coords|format=csv|offset=0|headers=hide}}
 
 
http://sotawiki.net/sota/Special:Ask/-5B-5Bhas-20continent-20coords::Hidden-20Vale;-3F;-3F-5D-5D-20-5B-5Blocated-20in::Hidden-20Vale-5D-5D-20-5B-5BCategory:Player-20run-20towns-5D-5D/-3FHas-20continent-20coords/format%3Dcsv/offset%3D0/headers%3Dhide
 
{{urlencode:string}}
 
 
http://sotawiki.net/sota/Special:Ask/-5B-5Bhas-20continent-20coords::Hidden-20Vale;-3F;-3F-5D-5D-20-5B-5Blocated-20in::Hidden-20Vale-5D-5D-20-5B-5BCategory:Player-20owned-20towns-5D-5D/-3FHas-20continent-20coords/format%3Dcsv/offset%3D0/headers%3Dhide
 
{{urlencode:string}}
 
 
http://sotawiki.net/sota/Special:Ask/{{#replace:{{#replace:{{#replace:{{#replace:[[has continent coords::Hidden Vale;?;?]] [[located in::Hidden Vale]] [[Category:Towns]]/?Has continent coords|[|-5B}}| |-20}}|?|-3F}}|]|-5D}}/{{urlencode:format=csv}}/{{urlencode:offset=0}}/{{urlencode:headers=hide}}-->

Latest revision as of 22:30, 20 February 2015


Template documentation (for the above template, sometimes hidden or invisible)

Template:MapTest/doc

Visit Template:MapTest/doc to edit this text! (How does this work?)