Template:Interactive map

From FHX Wiki
Revision as of 09:23, 17 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=
}}

Parameters

map
Required. Map to display. Options:
V1
V3
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=V1}}

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.
  • 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
  • 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.)
  • Add markers for unmarked arenas (eg. Midland and Palmas)