|
|
| (10 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 |
| {{Map/Marker divs | |
| |markerQuery={{{markerQuery|}}} | | |markerQuery={{{markerQuery|}}} |
| |sceneid={{{sceneid|}}} | | |sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}} |
| }} | | }}<!-- |
| | | Display LayerGroups queries |
| </div>
| | -->{{#if:{{{layerGroupQuery1|}}}|<div class="map-group" style="display: none;" |
| | | data-name="{{{layerGroupName1|}}}">{{Map/Marker divs |
| | | |markerQuery={{{layerGroupQuery1|}}} |
| {{#Widget:MapTest}} | | |sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}} |
| <!--[[has continent coords::Hidden Vale;?;?]] [[located in::Hidden Vale]] [[Category:Towns]] | | }}</div>|}}{{#if:{{{layerGroupQuery2|}}}|<div class="map-group" style="display: none;" |
| | | data-name="{{{layerGroupName2|}}}">{{Map/Marker divs |
| 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
| | |markerQuery={{{layerGroupQuery2|}}} |
| | | |sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}} |
| 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>|}}{{#if:{{{layerGroupQuery3|}}}|<div class="map-group" style="display: none;" |
| | | data-name="{{{layerGroupName3|}}}">{{Map/Marker divs |
| {{fullurl:Special:Ask|{{urlencode:[[has continent coords::Hidden Vale;?;?]] [[Category:Player run towns]]}}|?Has continent coords|format=csv|offset=0|headers=hide}} | | |markerQuery={{{layerGroupQuery3|}}} |
| | | |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:Player-20run-20towns-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}} |
| {{urlencode:string}} | | </div></includeonly><noinclude><br style="clear:both;"/> |
| | | {{documentation}} |
| | | [[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-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}}-->
| |