Template:Interactive map: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
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 90: Line 95:
   |West= 50,25
   |West= 50,25
   |Northwest= 75,25
   |Northwest= 75,25
  |Shadow Mine= {{#expr:((3575*0.009259)+50)}}, {{#expr:((-2750*0.009259)+50)}}
  |Palmas City= {{#expr:((-4239*0.009259)+50)}}, {{#expr:((-1982*0.009259)+50)}}
  |Saltic Town= {{#expr:((-490.362*0.009259)+50)}}, {{#expr:((-3778.79*0.009259)+50)}}
  |Forehead Fortress= {{#expr:((374*0.009259)+50)}}, {{#expr:((397*0.009259)+50)}}
  }}|{{#expr:((1153*0.009259)+50)}}, {{#expr:((-376*0.009259)+50)}}}}}}
  }}|{{#expr:((1153*0.009259)+50)}}, {{#expr:((-376*0.009259)+50)}}}}}}
  |image layers=V1 detailed map.png
  |image layers=V1 detailed map.png
Line 250: Line 259:
  {{#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 295:
{{#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 316:
  {{#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 338:
  {{#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 331: Line 360:
  {{#expr:((163*0.03255208333)+50)}}, {{#expr:((110*0.03255208333)+50)}}~Portal: [[Palmas]]~~Minimap-portal.gif;
  {{#expr:((163*0.03255208333)+50)}}, {{#expr:((110*0.03255208333)+50)}}~Portal: [[Palmas]]~~Minimap-portal.gif;


  {{#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]]~[[Charles Seiro]]~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 381:
{{#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 405:
  {{#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 424:
}}|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 412: Line 461:
|name=
|name=
|description=
|description=
|radius=
|marker=
|center=
|center=
|circle=
|circle=
|radius=
|zoom=
|zoom=
|height=
|height=
Line 433: Line 483:
;name : Optional. Marker title.
;name : Optional. Marker title.
;description : Optional. Marker description.
;description : Optional. Marker description.
; marker : Optional. Toggle marker on or off. Defaults to off. Options:
:: quest
:: misc
;circle : Optional. Toggle circle on or off. Defaults to off.
;radius : Optional. Include to increase circle radius (min. 1).
;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:
;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:
Line 452: Line 506:
:: Tranquil Swamp
:: Tranquil Swamp
:: Giants' Territory
:: 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.
;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.
;height : Optional. Include to adjust the height of the map widget (eg. 250). Defaults to auto.
Line 482: Line 535:
{{interactive map|map=Great Rebellion}}
{{interactive map|map=Great Rebellion}}


<!--
{{#mapsdoc:leaflet|parameters=all}}
-->
== TODO ==
== TODO ==
* Cluster function
* Cluster function
Line 489: Line 545:
** Under consideration - very low priority at the moment.
** Under consideration - very low priority at the moment.


[[Category:Interactive map]]
</noinclude>
</noinclude>

Latest revision as of 21:42, 11 June 2025

Description

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

{{Interactive map
|map=
|N=
|E=
|name=
|description=
|marker=
|center=
|circle=
|radius=
|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.
marker
Optional. Toggle marker on or off. Defaults to off. Options:
quest
misc
circle
Optional. Toggle circle on or off. Defaults to off.
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
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.