Template:Interactive map: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 15: Line 15:
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
{{#expr:((-5001*0.006510)+50)}}, {{#expr:((-4550*0.006510)+50)}}~Portal to Silent Woods~ ~Minimap-portal.gif;
{{#expr:((-4906*0.006510)+50)}}, {{#expr:((-4468*0.006510)+50)}}~Bindstone~ ~Minimap-town.gif;
  {{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}~[[Rog Imperial City (V3)|Rog Imperial City]]~ ~Minimap-town.gif;
  {{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}~[[Rog Imperial City (V3)|Rog Imperial City]]~ ~Minimap-town.gif;
{{#expr:((751*0.006510)+50)}}, {{#expr:((-1421*0.006510)+50)}}~The Forest of the Abandoned~Guild vs. Guild~Minimap-fortress.gif;
  {{#expr:((-5344*0.006510)+50)}}, {{#expr:((-4231*0.006510)+50)}}~Rog Guard Commander ([[List of daily quests|Dailies]])~ ~Minimap-quest.gif;
  {{#expr:((-5344*0.006510)+50)}}, {{#expr:((-4231*0.006510)+50)}}~Rog Guard Commander ([[List of daily quests|Dailies]])~ ~Minimap-quest.gif;
  {{#expr:((-5306*0.006510)+50)}}, {{#expr:((-4222*0.006510)+50)}}~Luke Savage (Weapon)~ ~Minimap-etc.gif;
 
  {{#expr:((-5315*0.006510)+50)}}, {{#expr:((-4222*0.006510)+50)}}~Roy Clower (Weapon)~ ~Minimap-etc.gif;
  {{#expr:((-5306*0.006510)+50)}}, {{#expr:((-4222*0.006510)+50)}}~Luke Savage~[[Weapon Shop]]~Minimap-etc.gif;
  {{#expr:((-5315*0.006510)+50)}}, {{#expr:((-4229*0.006510)+50)}}~Elmo Leon (Weapon)~ ~Minimap-etc.gif;
  {{#expr:((-5315*0.006510)+50)}}, {{#expr:((-4222*0.006510)+50)}}~Roy Clower~[[Weapon Shop]]~Minimap-etc.gif;
  {{#expr:((-5306*0.006510)+50)}}, {{#expr:((-4229*0.006510)+50)}}~Bibia Layialbol (Weapon)~ ~Minimap-etc.gif;
  {{#expr:((-5315*0.006510)+50)}}, {{#expr:((-4229*0.006510)+50)}}~Elmo Leon~[[Weapon Shop]]~Minimap-etc.gif;
  {{#expr:((-5311*0.006510)+50)}}, {{#expr:((-4218*0.006510)+50)}}~Norah Chamberlain (Magic Goods)~ ~Minimap-etc.gif;
  {{#expr:((-5306*0.006510)+50)}}, {{#expr:((-4229*0.006510)+50)}}~Bibia Layialbol~[[Weapon Shop]]~Minimap-etc.gif;
  {{#expr:((-5311*0.006510)+50)}}, {{#expr:((-4218*0.006510)+50)}}~Norah Chamberlain~[[Magic Goods]]~Minimap-etc.gif;
  {{#expr:((707*0.006510)+50)}}, {{#expr:((-876*0.006510)+50)}}~Bernard Welch~[[Mobile Shop]]~Minimap-etc.gif;
  {{#expr:((707*0.006510)+50)}}, {{#expr:((-876*0.006510)+50)}}~Bernard Welch~[[Mobile Shop]]~Minimap-etc.gif;
  {{#expr:((708*0.006510)+50)}}, {{#expr:((-877*0.006510)+50)}}~Gerald Mordon~[[Mobile Shop]]~Minimap-etc.gif;
  {{#expr:((708*0.006510)+50)}}, {{#expr:((-877*0.006510)+50)}}~Gerald Mordon~[[Mobile Shop]]~Minimap-etc.gif;
{{#expr:((-4906*0.006510)+50)}}, {{#expr:((-4468*0.006510)+50)}}~[[Bindstone]]~ ~Minimap-town.gif;
{{#expr:((-3483*0.006510)+50)}}, {{#expr:((-3949*0.006510)+50)}}~[[Bindstone]]~ ~Minimap-town.gif;
{{#expr:((-2031*0.006510)+50)}}, {{#expr:((-3525*0.006510)+50)}}~[[Bindstone]]~ ~Minimap-town.gif;
{{#expr:((-1611*0.006510)+50)}}, {{#expr:((-2704*0.006510)+50)}}~[[Bindstone]]~ ~Minimap-town.gif;
{{#expr:((-1492*0.006510)+50)}}, {{#expr:((-1915*0.006510)+50)}}~[[Bindstone]]~ ~Minimap-town.gif;
{{#expr:((-946*0.006510)+50)}}, {{#expr:((-916*0.006510)+50)}}~[[Bindstone]]~ ~Minimap-town.gif;
{{#expr:((-67*0.006510)+50)}}, {{#expr:((-560*0.006510)+50)}}~[[Bindstone]]~ ~Minimap-town.gif;
{{#expr:((1617*0.006510)+50)}}, {{#expr:((-1277*0.006510)+50)}}~[[Bindstone]]~ ~Minimap-town.gif;
{{#expr:((2668*0.006510)+50)}}, {{#expr:((-746*0.006510)+50)}}~[[Bindstone]]~ ~Minimap-town.gif;
{{#expr:((-5001*0.006510)+50)}}, {{#expr:((-4550*0.006510)+50)}}~[[Portal]]~[[Silent Woods]]~Minimap-portal.gif;
{{#expr:((-3233*0.006510)+50)}}, {{#expr:((-4066*0.006510)+50)}}~[[Portal]]~[[Palmas]]~Minimap-portal.gif;
{{#expr:((-1636*0.006510)+50)}}, {{#expr:((-3172*0.006510)+50)}}~[[Portal]]~[[Rog Imperial City (V3)|Rog Imperial City]]~Minimap-portal.gif;
{{#expr:((-1740*0.006510)+50)}}, {{#expr:((-2594*0.006510)+50)}}~[[Portal]]~[[Tranquil Swamp]]~Minimap-portal.gif;
{{#expr:((-1597*0.006510)+50)}}, {{#expr:((-1393*0.006510)+50)}}~[[Portal]]~[[Giants' Territory]]~Minimap-portal.gif;
{{#expr:((78*0.006510)+50)}}, {{#expr:((-999*0.006510)+50)}}~[[Portal]]~[[Aegis Fortress]]~Minimap-portal.gif;
{{#expr:((1440*0.006510)+50)}}, {{#expr:((-1354*0.006510)+50)}}~[[Portal]]~[[Midland]]~Minimap-portal.gif;
{{#expr:((2548*0.006510)+50)}}, {{#expr:((-981*0.006510)+50)}}~[[Portal]]~[[Dusty Gorge]]~Minimap-portal.gif;
{{#expr:((-654*0.006510)+50)}}, {{#expr:((-1353*0.006510)+50)}}~PVP Entrance~[[Depthless Orifice/30-49|30-49 PVP]]~Minimap-fortress.gif;
{{#expr:((2160*0.006510)+50)}}, {{#expr:((-372*0.006510)+50)}}~PVP Entrance~[[Depthless Orifice/50+|50+ PVP]]~Minimap-fortress.gif;
{{#expr:((751*0.006510)+50)}}, {{#expr:((-1421*0.006510)+50)}}~GVG Entrance~[[The Forest of the Abandoned]]~Minimap-fortress.gif;
{{#expr:((-313*0.006510)+50)}}, {{#expr:((-1945*0.006510)+50)}}~Arena Entrance~[[Great Rebellion]]~Minimap-fortress.gif;
  |circles={{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}:1~{{{name}}}~{{{description}}}~red~0.5~3~yellow~0.25;}}
  |circles={{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}:1~{{{name}}}~{{{description}}}~red~0.5~3~yellow~0.25;}}
  |center={{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}|15,22}}
  |center={{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}|15,22}}
Line 137: Line 159:
* Upload lower res "clean" versions of each map to display as thumbnails in location infoboxes.
* Upload lower res "clean" versions of each map to display as thumbnails in location infoboxes.
* Look into adding cluster function
* Look into adding cluster function
* Add markers for unmarked towns/cities (eg. Midland, Dusty Town, Gypsy Village, etc.)


</noinclude>
</noinclude>

Revision as of 09:00, 17 August 2024

Warning:
This page is in draft.

Description

This is the Interactive map template. It should be transcluded in the following format:

{{Interactive map
|map=
|N=
|E=
|name=
|description=
}}

Parameters

map
Required. Map to display.
N
Required. In-game N coordinate (N from world map, or y from /location).
E
Required. In-game E coordinate (E from world map, or x from /location).
name
Optional. Marker title.
description
Optional. Marker description.

Example

{{interactive map|map=V1|N=3289|E=3502|name=Cave Troll|description=Cave Troll, level 40, NE V1 near North Gate}}

map is work in progress

Loading map...
{{interactive map|map=V3}}

map is work in progress

Loading map...
{{interactive map|map=Great Rebellion|N=0|E=0|name=Test|description=}}

map is work in progress

Loading map...


TODO

  • Add {{#if:}} condition to N/E parameters to make them required, and return a default/error marker if missing.
    • Do the same with map parameter.
  • Add condition to name parameter to default to {{PAGENAME}} if not included.
  • Allow center to be configurable
  • Allow height/width to be configurable
  • Adjust circle radius for smaller maps
  • Adjust zoom values for smaller maps
  • Upload lower res "clean" versions of each map to display as thumbnails in location infoboxes.
  • Look into adding cluster function
  • Add markers for unmarked towns/cities (eg. Midland, Dusty Town, Gypsy Village, etc.)