|
|
Line 1: |
Line 1: |
| <noinclude>{{page warning}}</noinclude><includeonly><!--<display_map imagelayers="V1 detailed map.png" zoom="5" scrollzoom="on" minzoom="2" maxzoom="6" center="{{#expr:(({{{N|}}}*0.00926)+50)}}, {{#expr:(({{{E|}}}*0.00926)+50)}}"> | | <noinclude>{{page warning}}</noinclude><includeonly>{{#switch:{{{map|V3}}}|V1= |
| {{#expr:(({{{N|}}}*0.00926)+50)}}, {{#expr:(({{{E|}}}*0.00926)+50)}}~{{{name|}}}~{{{description|}}}~Minimap-quest.gif
| |
| 43, 50~Center~Test~Minimap-quest.gif
| |
| </display_map>
| |
| -->Name: {{{name|}}}
| |
| | |
| Coordinates: {{#expr:(({{{N|}}}*0.00926)+50)}}, {{#expr:(({{{E|}}}*0.00926)+50)}}
| |
| | |
| Description: {{{description|}}}
| |
| {{#display_map: | | {{#display_map: |
| {{#expr:(({{{N|}}}*0.00926)+50)}}, {{#expr:(({{{E|}}}*0.00926)+50)}}~{{{name|}}}~{{{description|}}}~Minimap-quest.gif; | | 50, 50~Center~Test~Minimap-quest.gif; |
| 43, 50~Center~Test~Minimap-quest.gif; | | 83.4, 74.5~North Gate~~Minimap-portal.gif; |
| | 60.5, 46.8~Rog (V1)~~Minimap-etc.gif; |
| | |circles={{#expr:(({{{N|}}}*0.00926)+50)}}, {{#expr:(({{{E|}}}*0.00926)+50)}}:1~{{{name|}}}~{{{description|}}}~red~0.5~3~yellow~0.25; |
| | |center={{#expr:(({{{N|}}}*0.00926)+50)}}, {{#expr:(({{{E|}}}*0.00926)+50)}} |
| |image layers=V1 detailed map.png | | |image layers=V1 detailed map.png |
| |geojson=V1 detailed map
| |
| |zoom=5 | | |zoom=5 |
| |scrollzoom=on | | |scrollzoom=on |
| |minzoom=2 | | |minzoom=4 |
| |maxzoom=6 | | |maxzoom=6 |
| |center={{#expr:(({{{N|}}}*0.00926)+50)}}, {{#expr:(({{{E|}}}*0.00926)+50)}} | | }}|V3= |
| }}</includeonly><noinclude> | | {{#display_map: |
| | 16.8, 16.3~Portal to Silent Woods~~Minimap-portal.gif; |
| | 11.75, 19.57~Rog Imperial City~[[Rog Imperial City (V3)|Rog Imperial City]]~Minimap-etc.gif; |
| | |circles={{{N|}}}, {{{E|}}}:1~{{{name|}}}~{{{description|}}}~red~0.5~3~yellow~0.25; |
| | |center={{{N|}}}, {{{E|}}} |
| | |image layers=V3 detailed map.png |
| | |zoom=5 |
| | |scrollzoom=on |
| | |minzoom=4 |
| | |maxzoom=6 |
| | }} |
| | }} |
| | Map: {{{map|}}} |
| | |
| | Marker Name: {{{name|}}} |
| | |
| | Wikimap Coordinates: {{#expr:(({{{N|}}}*0.00926)+50)}}, {{#expr:(({{{E|}}}*0.00926)+50)}} |
| | |
| | Description: {{{description|}}}</includeonly><noinclude> |
| == Description == | | == Description == |
| This is the '''{{PAGENAME}}''' template. | | This is the '''{{PAGENAME}}''' template. |
Line 24: |
Line 36: |
| <pre> | | <pre> |
| {{Interactive map | | {{Interactive map |
| | | | |map= |
| | | | |N= |
| | | | |E= |
| | | | |name= |
| | |description= |
| }} | | }} |
| </pre> | | </pre> |
Line 34: |
Line 47: |
| == Example == | | == Example == |
| <pre> | | <pre> |
| {{interactive map|N=3289|E=3502|name=Cave Troll|description=Cave Troll, level 40, NE V1 near North Gate}} | | {{interactive map|map=V1|N=3289|E=3502|name=Cave Troll|description=Cave Troll, level 40, NE V1 near North Gate}} |
| | </pre> |
| | {{interactive map|map=V1|N=3289|E=3502|name=Cave Troll|description=Cave Troll, level 40, NE V1 near North Gate}} |
| | <pre> |
| | {{interactive map|map=V3|N=15|E=18|name=Test|description=}} |
| </pre> | | </pre> |
| {{interactive map|N=3289|E=3502|name=Cave Troll|description=Cave Troll, level 40, NE V1 near North Gate}} | | {{interactive map|map=V3|N=15|E=18|name=Test|description=}} |
| | |
| <!--
| |
| {{#display_map:
| |
| 80.46, 82.83~Cave Troll~coordinates~Minimap-quest.gif;
| |
| 83.4, 74.5~North Gate~~Minimap-portal.gif;
| |
| 60.5, 46.8~Rog (V1)~~Minimap-bindstone.gif;
| |
| 10.34, 60.15~South Center Bridge~coordinates~Minimap-quest.gif;
| |
| 68.52, 59.26~AI Test~coordinates~Minimap-quest.gif;
| |
| 68, 60~Rough Target~coordinates~Minimap-quest.gif;
| |
| 50, 50~Center~~Minimap-quest.gif;
| |
| 0, 0~Bottom left~~Minimap-quest.gif;
| |
| 100, 100~Top right~~Minimap-quest.gif;
| |
| 0, 100~Bottom right~~Minimap-quest.gif;
| |
| |circles=80.46, 82.83:1~Cave Troll~~red~0.5~3~yellow~0.25;
| |
| |image layers=V1 detailed map.png
| |
| |geojson=V1 detailed map
| |
| |width=200
| |
| |height=150
| |
| |zoom=3
| |
| |scrollzoom=on
| |
| |minzoom=1
| |
| |maxzoom=5
| |
| |center=80.46, 82.83
| |
| }} | |
| -->
| |
Description
This is the Interactive map template.
It should be transcluded in the following format:
{{Interactive map
|map=
|N=
|E=
|name=
|description=
}}
Parameters
WIP
Example
{{interactive map|map=V1|N=3289|E=3502|name=Cave Troll|description=Cave Troll, level 40, NE V1 near North Gate}}
Loading map...
{"minzoom":4,"maxzoom":6,"mappingservice":"leaflet","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":80.45614,"lon":82.42852,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ECave Troll\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ECave Troll, level 40, NE V1 near North Gate\n\u003C/p\u003E\u003C/div\u003E","title":"Cave Troll\n","link":"","strokeColor":"red","strokeOpacity":"0.5","strokeWeight":"3","fillColor":"yellow","fillOpacity":"0.25","centre":{"lon":82.42852,"lat":80.45614},"radius":1}],"rectangles":[],"copycoords":false,"static":false,"zoom":5,"defzoom":14,"layers":["OpenStreetMap"],"image layers":["V1 detailed map.png"],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[{"name":"V1 detailed map.png","url":"/images/f/fe/V1_detailed_map.png","width":100,"height":100}],"locations":[{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ECenter\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ETest\n\u003C/p\u003E\u003C/div\u003E","title":"Center\n","link":"","lat":50,"lon":50,"icon":"/images/d/d7/Minimap-quest.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ENorth Gate\n\u003C/p\u003E\u003C/div\u003E","title":"North Gate\n","link":"","lat":83.4,"lon":74.5,"icon":"/images/e/e1/Minimap-portal.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ERog (V1)\n\u003C/p\u003E\u003C/div\u003E","title":"Rog (V1)\n","link":"","lat":60.5,"lon":46.8,"icon":"/images/f/f1/Minimap-etc.gif"}],"imageoverlays":null}
Map: V1
Marker Name: Cave Troll
Wikimap Coordinates: 80.45614, 82.42852
Description: Cave Troll, level 40, NE V1 near North Gate
{{interactive map|map=V3|N=15|E=18|name=Test|description=}}
Loading map...
{"minzoom":4,"maxzoom":6,"mappingservice":"leaflet","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":15,"lon":18,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ETest\n\u003C/p\u003E\u003C/div\u003E","title":"Test\n","link":"","strokeColor":"red","strokeOpacity":"0.5","strokeWeight":"3","fillColor":"yellow","fillOpacity":"0.25","centre":{"lon":18,"lat":15},"radius":1}],"rectangles":[],"copycoords":false,"static":false,"zoom":5,"defzoom":14,"layers":["OpenStreetMap"],"image layers":["V3 detailed map.png"],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[{"name":"V3 detailed map.png","url":"/images/d/db/V3_detailed_map.png","width":100,"height":96.66666666666667}],"locations":[{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003EPortal to Silent Woods\n\u003C/p\u003E\u003C/div\u003E","title":"Portal to Silent Woods\n","link":"","lat":16.8,"lon":16.3,"icon":"/images/e/e1/Minimap-portal.gif"},{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ERog Imperial City\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003E\u003Ca href=\"/Rog_Imperial_City_(V3)\" title=\"Rog Imperial City (V3)\"\u003ERog Imperial City\u003C/a\u003E\n\u003C/p\u003E\u003C/div\u003E","title":"Rog Imperial City\n","link":"","lat":11.75,"lon":19.57,"icon":"/images/f/f1/Minimap-etc.gif"}],"imageoverlays":null}
Map: V3
Marker Name: Test
Wikimap Coordinates: 50.1389, 50.16668
Description: