Template:Interactive map

From FHX Wiki
Revision as of 13:33, 19 August 2024 by Ryzuhr (talk | contribs)
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=
|center=
|radius=
|height=
|width=
}}

Parameters

map
Required. Map to display. Defaults to Idios. 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.
center
Optional. Include to center map on an area/region in Glorious Imperial Territory or Idios. Defaults to Rog Imperial City. In instanced maps, defaults to map origin. Otherwise, centers the map on provided coordinates. Options:
Rog Imperial City
Central
Northeast
East
Southeast
South
Southwest
West
Northwest
Rog Imperial Castle Area
Green Valley
Silent Woods
Midland
Dusty Gorge
Palmas
Tranquil Swamp
Giants' Territory
radius
Optional. Include to increase circle radius (min. 1).
height
Optional. Include to adjust the height of the map widget. Defaults to auto.
width
Optional. Include to adjust the width of the map widget. Defaults to auto.

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/All|radius=0.5}}

map is work in progress

Loading map...
{{interactive map|map=Idios|center=Rog Imperial City}}

map is work in progress

Loading map...

TODO

  • 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
    • Idios center parameter WIP
  • 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.
    • Under consideration - very low priority at the moment.