|
|
| (12 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 |
| {{#if:{{{markerQuery|}}}{{#if:{{{sceneid|}}}||{{#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}}}}}|}} |
| }}|{{#ask: {{{markerQuery|}}} | | }}</div>|}}{{#if:{{{layerGroupQuery3|}}}|<div class="map-group" style="display: none;" |
| |?has continent coords = continent |+index=1 | | data-name="{{{layerGroupName3|}}}">{{Map/Marker divs |
| |?has continent coords = x |+index=2
| | |markerQuery={{{layerGroupQuery3|}}} |
| |?has continent coords = y |+index=3 | | |sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}} |
| |sort=, | | }}</div>|}}<!-- |
| |format=template | | Display manually entered markers |
| |template=Query map markers | | -->{{#arraymap:{{{markers|}}}|;|*|<div class="map-marker" data-name="{{#explode:*|,|0}}" data-coordinate="{{{continent}}};{{#if:{{{scene|}}}|{{{scene}}};|}}{{#explode:*|,|1}};{{#explode:*|,|2}}"></div>|\n}} |
| |introtemplate= | | </div></includeonly><noinclude><br style="clear:both;"/> |
| |outrotemplate= | | {{documentation}} |
| |default= | | [[Category:Misc templates]]</noinclude> |
| |link=none
| |
| }}}}|}} | |
| | |
| </div> | |
| | |
| | |
| {{#Widget:MapTest}} | |
| <!--[[has continent coords::Hidden Vale;?;?]] [[located in::Hidden Vale]] [[Category:Towns]] | |
| | |
| 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
| |
| | |
| 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}}-->
| |