Template:Interactive map: Difference between revisions

From FHX Wiki
Line 80: Line 80:
}}
}}
{{#display_map:
{{#display_map:
  16.8, 16.3~Portal to Silent Woods~~Minimap-portal.gif;
  {{#expr:((-5001*0.0065103357206804)+50)}}, {{#expr:((-4550*0.0065103357206804)+50)}}~Portal to Silent Woods~~Minimap-portal.gif;
  12.72, 25.15~Rog Imperial City~[[Rog Imperial City (V3)|Rog Imperial City]]~Minimap-etc.gif;
  {{#expr:((-4906*0.0065103357206804)+50)}}, {{#expr:((-4468*0.0065103357206804)+50)}}~Bindstone~~Minimap-bindstone.gif;
{{#expr:((-5342*0.0065103357206804)+50)}}, {{#expr:((-4330*0.0065103357206804)+50)}}~Rog Imperial City~[[Rog Imperial City (V3)|Rog Imperial City]]~Minimap-etc.gif;
  0, 0~Bottom left~~Minimap-quest.gif;
  0, 0~Bottom left~~Minimap-quest.gif;
  7.7, 7.7~Bottom left~~Minimap-quest.gif;
  7.7, 7.7~Bottom left~~Minimap-quest.gif;
Line 87: Line 88:
  100, 100~Top right~~Minimap-quest.gif;
  100, 100~Top right~~Minimap-quest.gif;
  |circles=12.72, 25.15:1~Test~ ~red~0.5~3~yellow~0.25;
  |circles=12.72, 25.15:1~Test~ ~red~0.5~3~yellow~0.25;
  |center=10, 10
  |center=15, 15
  |image layers=V3 detailed map.png
  |image layers=V3 detailed map.png
  |zoom=5
  |zoom=5
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=2
  |minzoom=2
  |maxzoom=6
  |maxzoom=10
}}
}}
</noinclude>
</noinclude>

Revision as of 03:12, 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}}
Loading map...

Map: V1

Marker Name: Cave Troll

Wikimap Coordinates: 80.452851, 82.425018

Description: Cave Troll, level 40, NE V1 near North Gate

{{interactive map|map=V3|N=15|E=18|name=Test|description=}}
Loading map...

Map: V3

Marker Name: Test

Wikimap Coordinates: 50.138885, 50.166662

Description:

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.

Sandbox

Loading map...
Loading map...