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)
Test template so I don't mess up the one in use
 
Fenyx4 (talk | contribs)
No edit summary
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#Widget:Map
<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"><!--
|continentid={{{continentid|}}}
Display markers from query
|centerX={{{centerX|}}}
-->{{Map/Marker divs
|centerY={{{centerY|}}}
|markerQuery={{{markerQuery|}}}
|zoom={{{zoom|}}}
|sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}}
|height={{{height|}}}
}}<!--
|width={{{width|}}}
Display LayerGroups queries
|clear={{{clear|}}}
-->{{#if:{{{layerGroupQuery1|}}}|<div class="map-group" style="display: none;"
|hideAttribution={{{hideAttribution|}}}
        data-name="{{{layerGroupName1|}}}">{{Map/Marker divs
|hideZoom={{{hideZoom|}}}
|markerQuery={{{layerGroupQuery1|}}}
|layerGroupQuery1={{#if:{{{layerGroupQuery1|}}}|http://sotawiki.net/sota/Special:Ask/{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{layerGroupQuery1|}}}/?Has continent coords|[|-5B}}| |-20}}|?|-3F}}|]|-5D}}|'|%27}}/format%3Dcsv/offset%3D0/headers%3Dhide|}}
|sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}}
|layerGroupName1={{{layerGroupName1|}}}
}}</div>|}}{{#if:{{{layerGroupQuery2|}}}|<div class="map-group" style="display: none;"
|layerGroupQuery2={{#if:{{{layerGroupQuery2|}}}|http://sotawiki.net/sota/Special:Ask/{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{layerGroupQuery2|}}}/?Has continent coords|[|-5B}}| |-20}}|?|-3F}}|]|-5D}}|'|%27}}/format%3Dcsv/offset%3D0/headers%3Dhide|}}
        data-name="{{{layerGroupName2|}}}">{{Map/Marker divs
|layerGroupName2={{{layerGroupName2|}}}
|markerQuery={{{layerGroupQuery2|}}}
|layerGroupQuery3={{#if:{{{layerGroupQuery3|}}}|http://sotawiki.net/sota/Special:Ask/{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{layerGroupQuery3|}}}/?Has continent coords|[|-5B}}| |-20}}|?|-3F}}|]|-5D}}|'|%27}}/format%3Dcsv/offset%3D0/headers%3Dhide|}}
|sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}}
|layerGroupName3={{{layerGroupName3|}}}
}}</div>|}}{{#if:{{{layerGroupQuery3|}}}|<div class="map-group" style="display: none;"
|markerQuery={{#if:{{{markerQuery|}}}|http://sotawiki.net/sota/Special:Ask/{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{markerQuery|}}}/?Has continent coords|[|-5B}}| |-20}}|?|-3F}}|]|-5D}}|'|%27}}/format%3Dcsv/offset%3D0/headers%3Dhide|}}
        data-name="{{{layerGroupName3|}}}">{{Map/Marker divs
}}
|markerQuery={{{layerGroupQuery3|}}}
<!--[[has continent coords::Hidden Vale;?;?]] [[located in::Hidden Vale]] [[Category:Towns]]
|sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}}
 
}}</div>|}}<!--
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
Display manually entered markers
 
-->{{#arraymap:{{{markers|}}}|;|*|<div class="map-marker" data-name="{{#explode:*|,|0}}" data-coordinate="{{{continent}}};{{#if:{{{scene|}}}|{{{scene}}};|}}{{#explode:*|,|1}};{{#explode:*|,|2}}"></div>|\n}}
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
</div></includeonly><noinclude><br style="clear:both;"/>
 
{{documentation}}
{{fullurl:Special:Ask|{{urlencode:[[has continent coords::Hidden Vale;?;?]] [[Category:Player run towns]]}}|?Has continent coords|format=csv|offset=0|headers=hide}}
[[Category:Misc templates]]</noinclude>
 
 
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?)