Template:Interactive map

From FHX Wiki
Revision as of 04:21, 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.
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}}
Loading map...
{{interactive map|map=V3|N=0|E=0|name=Test|description=}}
Loading map...
{{interactive map|map=Great Rebellion|N=0|E=0|name=Test|description=}}

map is work in progress


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.