Template:Interactive map: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 74: Line 74:
  {{#expr:((1187*0.009259)+50)}}, {{#expr:((-2452*0.009259)+50)}}~[[Mobile Shop]]~[[Oz Scott]]~Minimap-etc.gif;
  {{#expr:((1187*0.009259)+50)}}, {{#expr:((-2452*0.009259)+50)}}~[[Mobile Shop]]~[[Oz Scott]]~Minimap-etc.gif;
  {{#expr:((-2108*0.009259)+50)}}, {{#expr:((-1654*0.009259)+50)}}~[[Mobile Shop]]~need npc name~Minimap-etc.gif;
  {{#expr:((-2108*0.009259)+50)}}, {{#expr:((-1654*0.009259)+50)}}~[[Mobile Shop]]~need npc name~Minimap-etc.gif;
{{#switch:{{{marker|off}}}
  |quest={{#expr:(({{{N|}}}*0.009259)+50)}}, {{#expr:(({{{E|}}}*0.009259)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-quest.gif
  |misc={{#expr:(({{{N|}}}*0.009259)+50)}}, {{#expr:(({{{E|}}}*0.009259)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-user.gif
}}
  |circles=
  |circles=
  {{#switch:{{{circle|off}}}|on=
  {{#switch:{{{circle|off}}}|on=
Line 250: Line 255:
  {{#expr:((708*0.006510)+50)}}, {{#expr:((-877*0.006510)+50)}}~[[Mobile Shop]]~[[Gerald Mordon]]~Minimap-etc.gif;
  {{#expr:((708*0.006510)+50)}}, {{#expr:((-877*0.006510)+50)}}~[[Mobile Shop]]~[[Gerald Mordon]]~Minimap-etc.gif;
  {{#expr:((707*0.006510)+50)}}, {{#expr:((-876*0.006510)+50)}}~[[Mobile Shop]]~Bernard Welch~Minimap-etc.gif;
  {{#expr:((707*0.006510)+50)}}, {{#expr:((-876*0.006510)+50)}}~[[Mobile Shop]]~Bernard Welch~Minimap-etc.gif;
{{#switch:{{{marker|off}}}
  |quest={{#expr:(({{{N|}}}*0.006510)+50)}}, {{#expr:(({{{E|}}}*0.006510)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-quest.gif
  |misc={{#expr:(({{{N|}}}*0.006510)+50)}}, {{#expr:(({{{E|}}}*0.006510)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-user.gif
}}
  |circles=
  |circles=
  {{#switch:{{{circle|off}}}|on=
  {{#switch:{{{circle|off}}}|on=
Line 281: Line 291:
{{#display_map:
{{#display_map:
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~Portal: [[Rog Imperial City (V1)|Rog Imperial City]]~Outside west gate~Minimap-portal.gif;
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~Portal: [[Rog Imperial City (V1)|Rog Imperial City]]~Outside west gate~Minimap-portal.gif;
{{#switch:{{{marker|off}}}
  |quest={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-quest.gif
  |misc={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-user.gif
}}
  |circles=
  |circles=
  {{#switch:{{{circle|off}}}|on=
  {{#switch:{{{circle|off}}}|on=
Line 297: Line 312:
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~Portal: [[Rog Imperial City (V1)|Rog Imperial City]]~Along road outside south gate~Minimap-portal.gif;
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~Portal: [[Rog Imperial City (V1)|Rog Imperial City]]~Along road outside south gate~Minimap-portal.gif;
  {{#expr:((149*0.03255208333)+50)}}, {{#expr:((120*0.03255208333)+50)}}~Portal: [[Dusty Gorge]]~~Minimap-portal.gif;
  {{#expr:((149*0.03255208333)+50)}}, {{#expr:((120*0.03255208333)+50)}}~Portal: [[Dusty Gorge]]~~Minimap-portal.gif;
{{#switch:{{{marker|off}}}
  |quest={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-quest.gif
  |misc={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-user.gif
}}
  |rectangles=100,100:0,55~''BLOCKED''~This section of the map is not currently used.~black~1~1~black~1
  |rectangles=100,100:0,55~''BLOCKED''~This section of the map is not currently used.~black~1~1~black~1
  |circles=
  |circles=
Line 314: Line 334:
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~Portal: [[Giants' Terrtitory]]~~Minimap-portal.gif;
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~Portal: [[Giants' Terrtitory]]~~Minimap-portal.gif;
  {{#expr:((149*0.03255208333)+50)}}, {{#expr:((120*0.03255208333)+50)}}~Portal: [[Giants' Terrtitory]]~~Minimap-portal.gif;
  {{#expr:((149*0.03255208333)+50)}}, {{#expr:((120*0.03255208333)+50)}}~Portal: [[Giants' Terrtitory]]~~Minimap-portal.gif;
{{#switch:{{{marker|off}}}
  |quest={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-quest.gif
  |misc={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-user.gif
}}
  |rectangles=100,100:0,55~''BLOCKED''~This section of the map is not currently used.~black~1~1~black~1
  |rectangles=100,100:0,55~''BLOCKED''~This section of the map is not currently used.~black~1~1~black~1
  |circles=
  |circles=
Line 332: Line 357:


  {{#expr:((395*0.03255208333)+50)}}, {{#expr:((-80*0.03255208333)+50)}}~[[Mobile Shop]]~need npc name~Minimap-etc.gif;
  {{#expr:((395*0.03255208333)+50)}}, {{#expr:((-80*0.03255208333)+50)}}~[[Mobile Shop]]~need npc name~Minimap-etc.gif;
{{#switch:{{{marker|off}}}
  |quest={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-quest.gif
  |misc={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-user.gif
}}
  |circles=
  |circles=
  {{#switch:{{{circle|off}}}|on=
  {{#switch:{{{circle|off}}}|on=
Line 347: Line 377:
{{#display_map:
{{#display_map:
  {{#expr:((-199*0.03255208333)+50)}}, {{#expr:((-353*0.03255208333)+50)}}~Party Start~~Minimap-user.gif;
  {{#expr:((-199*0.03255208333)+50)}}, {{#expr:((-353*0.03255208333)+50)}}~Party Start~~Minimap-user.gif;
{{#switch:{{{marker|off}}}
  |quest={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-quest.gif
  |misc={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-user.gif
}}
  |circles=
  |circles=
  {{#switch:{{{circle|off}}}|on=
  {{#switch:{{{circle|off}}}|on=
Line 366: Line 401:
  {{#expr:((305*0.03255208333)+50)}}, {{#expr:((414*0.03255208333)+50)}}~Defender Start~ ~Minimap-user.gif;
  {{#expr:((305*0.03255208333)+50)}}, {{#expr:((414*0.03255208333)+50)}}~Defender Start~ ~Minimap-user.gif;
  {{#expr:((-963*0.03255208333)+50)}}, {{#expr:((-1171*0.03255208333)+50)}}~Challenger Start~ ~Minimap-user.gif;
  {{#expr:((-963*0.03255208333)+50)}}, {{#expr:((-1171*0.03255208333)+50)}}~Challenger Start~ ~Minimap-user.gif;
{{#switch:{{{marker|off}}}
  |quest={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-quest.gif
  |misc={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-user.gif
}}
  |circles=
  |circles=
  {{#switch:{{{circle|off}}}|on=
  {{#switch:{{{circle|off}}}|on=
Line 380: Line 420:
}}|The Valley of Blood=
}}|The Valley of Blood=
{{#display_map:
{{#display_map:
{{#switch:{{{marker|off}}}
  |quest={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-quest.gif
  |misc={{#expr:(({{{N|}}}*0.03255208333)+50)}}, {{#expr:(({{{E|}}}*0.03255208333)+50)}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~Minimap-user.gif
}}
  |circles=
  |circles=
  {{#switch:{{{circle|off}}}|on=
  {{#switch:{{{circle|off}}}|on=
Line 482: Line 527:
{{interactive map|map=Great Rebellion}}
{{interactive map|map=Great Rebellion}}


<!--
{{#mapsdoc:leaflet|parameters=all}}
-->
== TODO ==
== TODO ==
* Cluster function
* Cluster function

Revision as of 05:41, 16 April 2025

Description

This is the Interactive map template. It should be transcluded in the following format:

{{Interactive map
|map=
|N=
|E=
|name=
|description=
|radius=
|center=
|circle=
|zoom=
|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 the 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.
radius
Optional. Include to increase circle radius (min. 1).
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
circle
Optional. Toggle circle marker on or off. Defaults to off.
zoom
Optional. Include to adjust the default zoom level. Low number zooms out, higher number zooms in.
height
Optional. Include to adjust the height of the map widget (eg. 250). Defaults to auto.
width
Optional. Include to adjust the width of the map widget (eg. 250). Defaults to auto.

Example

{{interactive map|map=Glorious Imperial Territory|N=1153|E=-376}}
Loading map...
{{interactive map|map=Idios|N=-2275|E=-3640|name=Small Fog Wolf|circle=on}}
Loading map...
{{interactive map|map=Depthless Orifice/50+|N=-70|E=-693|name=Cultist Priest|circle=on|radius=1|zoom=4}}
Loading map...
{{interactive map|map=The Forest of the Abandoned|N=-426|E=-318|name=Elcaven|circle=on|radius=1|zoom=4}}
Loading map...
Loading map...
Loading map...

TODO

  • Cluster function
    • Might not be doable with custom map and icon placement
  • Set up overlays and/or layers for area labels (similar to current V1 world map)
  • Upload lower res "clean" versions of each map to display as thumbnails in location infoboxes.
    • Under consideration - very low priority at the moment.