|
|
| (18 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| {{#Widget:MapTest | | <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 |
| |sceneid={{{sceneid|}}}
| | -->{{Map/Marker divs |
| |centerX={{{centerX|}}} | | |markerQuery={{{markerQuery|}}} |
| |centerY={{{centerY|}}}
| | |sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}} |
| |zoom={{{zoom|}}} | | }}<!-- |
| |height={{{height|}}} | | Display LayerGroups queries |
| |width={{{width|}}}
| | -->{{#if:{{{layerGroupQuery1|}}}|<div class="map-group" style="display: none;" |
| |clear={{{clear|}}}
| | data-name="{{{layerGroupName1|}}}">{{Map/Marker divs |
| |hideAttribution={{{hideAttribution|}}}
| | |markerQuery={{{layerGroupQuery1|}}} |
| |hideZoom={{{hideZoom|}}}
| | |sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}} |
| |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|}}
| | }}</div>|}}{{#if:{{{layerGroupQuery2|}}}|<div class="map-group" style="display: none;" |
| |layerGroupName1={{{layerGroupName1|}}}
| | data-name="{{{layerGroupName2|}}}">{{Map/Marker divs |
| |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|}}
| | |markerQuery={{{layerGroupQuery2|}}} |
| |layerGroupName2={{{layerGroupName2|}}}
| | |sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}} |
| |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|}} | | }}</div>|}}{{#if:{{{layerGroupQuery3|}}}|<div class="map-group" style="display: none;" |
| |layerGroupName3={{{layerGroupName3|}}}
| | data-name="{{{layerGroupName3|}}}">{{Map/Marker divs |
| |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|}} | | |markerQuery={{{layerGroupQuery3|}}} |
| }}
| | |sceneid={{#if:{{{scene|}}}|{{SceneID|{{{continent|Novia}}}|{{{scene}}}}}|}} |
| <!--[[has continent coords::Hidden Vale;?;?]] [[located in::Hidden Vale]] [[Category:Towns]] | | }}</div>|}}<!-- |
| | | Display manually entered markers |
| 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
| | -->{{#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/{{#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
| | {{documentation}} |
| | | [[Category:Misc templates]]</noinclude> |
| {{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}}-->
| |