Template:Interactive map: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 16: Line 16:
{{#display_map:
{{#display_map:
  {{#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:((-1811*0.006510)+50)}}, {{#expr:((-1143*0.006510)+50)}}~[[Shadow Mine Village (V3)|Dusty Town]]~ ~Minimap-town.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;



Revision as of 01:27, 19 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. Options:
Glorious Imperial Territory
Idios
Depthless Orifice
Great Rebellion
Snow Storm
The Forest Of Abandoned
The Valley Of Blood
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=Glorious Imperial Territory|N=1153|E=-376}}

map is work in progress

Loading map...
{{interactive map|map=Idios|N=-2275|E=-3640|name=Small Fog Wolf}}

map is work in progress

Loading map...
{{interactive map|map=Depthless Orifice}}

map is work in progress

Loading map...

TODO

  • Add variations for Depthless Orifice map call
    • All, 30-49, 50+ would have unique markers for entrance/exit portals
  • 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.
  • Allow center to be configurable as a parameter
    • If center= contains T text (areas), set to C coordinates, else use N/E, else default to Rog, else default to center
  • Allow height/width to be configurable
    • As parameter, mainly for adding into infoboxes - if blank, default auto
  • Allow circle radius to be configurable (min. 1)
  • Look into adding cluster function
  • Add markers for unmarked towns/cities (eg. Midland, Dusty Town, Gypsy Village, etc.)
  • Add markers for unmarked arena entrances (eg. Midland and Palmas)
  • Upload lower res "clean" versions of each map to display as thumbnails in location infoboxes.