Template:Interactive map: Difference between revisions

From FHX Wiki
mNo edit summary
No edit summary
Line 4: Line 4:
  {{#expr:((1153*0.009259)+50)}}, {{#expr:((-376*0.009259)+50)}}~[[Rog Imperial City (V1)|Rog Imperial City]]~ ~Minimap-town.gif;
  {{#expr:((1153*0.009259)+50)}}, {{#expr:((-376*0.009259)+50)}}~[[Rog Imperial City (V1)|Rog Imperial City]]~ ~Minimap-town.gif;
  |circles=
  |circles=
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.009259)+50)}}, {{#expr:(({{{E}}}*0.009259)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|1}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~red~0.35~50~white~0.1;}}}}
{{#switch:{{{circle|off}}}|on=
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.009259)+50)}}, {{#expr:(({{{E}}}*0.009259)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|1}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~red~0.35~50~white~0.1;}}}}}}
  |center=
  |center=
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.009259)+50)}}, {{#expr:(({{{E}}}*0.009259)+50)}}|{{#expr:((1153*0.009259)+50)}}, {{#expr:((-376*0.009259)+50)}}}}}}
  {{#if:{{{N|}}}
  |{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.009259)+50)}}, {{#expr:(({{{E}}}*0.009259)+50)}}}}
  |{{#if:{{{center|}}}|{{#switch:{{{center|}}}
  |Rog Imperial City={{#expr:((1153*0.009259)+50)}}, {{#expr:((-376*0.009259)+50)}}
  |Central= 50,50
  |Northeast= 75,75
  |East= 50,75
  |Southeast= 20,75
  |South= 20,50
  |Southwest= 20,35
  |West= 50,25
  |Northwest= 75,25
}}}}|{{#expr:((1153*0.009259)+50)}}, {{#expr:((-376*0.009259)+50)}}}}
  |image layers=V1 detailed map.png
  |image layers=V1 detailed map.png
  |zoom=5
  |zoom={{#if:{{{zoom|}}}|{{{zoom}}}|5}}
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=3
  |minzoom=3
Line 18: Line 31:
{{#display_map:
{{#display_map:
  {{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}~[[Rog Imperial City (V3)|Rog Imperial City]]~ ~Minimap-town.gif;
  {{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}~[[Rog Imperial City (V3)|Rog Imperial City]]~ ~Minimap-town.gif;
{{#expr:((-3310*0.006510)+50)}}, {{#expr:((-3768*0.006510)+50)}}~[[Aegis Fortress]]~ ~Minimap-town.gif;
  {{#expr:((-1811*0.006510)+50)}}, {{#expr:((-1143*0.006510)+50)}}~[[Shadow Mine Village (V3)|Dusty Town]]~ ~Minimap-town.gif;
  {{#expr:((-1811*0.006510)+50)}}, {{#expr:((-1143*0.006510)+50)}}~[[Shadow Mine Village (V3)|Dusty Town]]~ ~Minimap-town.gif;
  {{#expr:((-5344*0.006510)+50)}}, {{#expr:((-4231*0.006510)+50)}}~Rog Guard Commander ([[List of daily quests|Dailies]])~ ~Minimap-quest.gif;
  {{#expr:((-5344*0.006510)+50)}}, {{#expr:((-4231*0.006510)+50)}}~Rog Guard Commander ([[List of daily quests|Dailies]])~ ~Minimap-quest.gif;
Line 53: Line 67:
  {{#expr:((-313*0.006510)+50)}}, {{#expr:((-1945*0.006510)+50)}}~Arena Entrance~[[Great Rebellion]]~Minimap-fortress.gif;
  {{#expr:((-313*0.006510)+50)}}, {{#expr:((-1945*0.006510)+50)}}~Arena Entrance~[[Great Rebellion]]~Minimap-fortress.gif;
  |circles=
  |circles=
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|1}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~red~0.35~50~white~0.1;}}}}
{{#switch:{{{circle|off}}}|on=
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|1}}~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~red~0.35~50~white~0.1;}}}}}}
  |center=
  |center=
  {{#if:{{{N|}}}
  {{#if:{{{N|}}}
Line 59: Line 74:
   |{{#if:{{{center|}}}|{{#switch:{{{center|}}}
   |{{#if:{{{center|}}}|{{#switch:{{{center|}}}
   |Rog Imperial City={{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}
   |Rog Imperial City={{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}
   |Rog Imperial Castle Area=
   |Rog Imperial Castle Area={{#expr:((-4840*0.006510)+50)}}, {{#expr:((-4315*0.006510)+50)}}
   |Green Valley=
   |Green Valley={{#expr:((-3310*0.006510)+50)}}, {{#expr:((-3768*0.006510)+50)}}
   |Silent Woods={{#expr:((-2031*0.006510)+50)}}, {{#expr:((-3525*0.006510)+50)}}
   |Silent Woods={{#expr:((-2031*0.006510)+50)}}, {{#expr:((-3525*0.006510)+50)}}
   |Midland={{#expr:((-1650*0.006510)+50)}}, {{#expr:((-2300*0.006510)+50)}}
   |Midland={{#expr:((-1650*0.006510)+50)}}, {{#expr:((-2300*0.006510)+50)}}
Line 78: Line 93:
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~[[Portal]]~[[Rog Imperial City (V1)|Rog Imperial City]]~Minimap-portal.gif;
{{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~[[Portal]]~[[Rog Imperial City (V1)|Rog Imperial City]]~Minimap-portal.gif;
  |circles=
  |circles=
  50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  {{#switch:{{{circle|off}}}|on=
{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;}}
  |center=
  |center=
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}}}|50, 50}}
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}}}|50, 50}}
  |image layers=Depthless Orifice map.png
  |image layers=Depthless Orifice map.png
  |zoom=3
  |zoom={{#if:{{{zoom|}}}|{{{zoom}}}|3}}
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=2
  |minzoom=2
Line 93: Line 109:
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~[[Portal]]~[[Dusty Gorge]]~Minimap-portal.gif;
{{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~[[Portal]]~[[Dusty Gorge]]~Minimap-portal.gif;
  |circles=
  |circles=
  50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  {{#switch:{{{circle|off}}}|on=
{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;}}
  |center=
  |center=
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}}}|50, 50}}
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}}}|50, 50}}
  |image layers=Depthless Orifice map.png
  |image layers=Depthless Orifice map.png
  |zoom=3
  |zoom={{#if:{{{zoom|}}}|{{{zoom}}}|3}}
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=2
  |minzoom=2
Line 108: Line 125:
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~[[Portal]]~[[Rog Imperial City (V1)|Rog Imperial City]]~Minimap-portal.gif;
{{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~[[Portal]]~[[Rog Imperial City (V1)|Rog Imperial City]]~Minimap-portal.gif;
  |circles=
  |circles=
  50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  {{#switch:{{{circle|off}}}|on=
{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;}}
  |center=
  |center=
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}}}|50, 50}}
  {{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}}}|50, 50}}
  |image layers=Depthless Orifice map.png
  |image layers=Depthless Orifice map.png
  |zoom=3
  |zoom={{#if:{{{zoom|}}}|{{{zoom}}}|3}}
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=2
  |minzoom=2
Line 123: Line 141:
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  |circles=50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  |circles=
  |center=50, 50
{{#switch:{{{circle|off}}}|on=
{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;}}
  |center=
{{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}}}|50, 50}}
  |image layers=Great Rebellion map.png
  |image layers=Great Rebellion map.png
  |zoom=3
  |zoom={{#if:{{{zoom|}}}|{{{zoom}}}|3}}
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=3
  |minzoom=3
Line 135: Line 156:
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  |circles=50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  |circles=
  |center=50, 50
{{#switch:{{{circle|off}}}|on=
{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;}}
  |center=
{{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}}}|50, 50}}
  |image layers=Snow Storm map.png
  |image layers=Snow Storm map.png
  |zoom=3
  |zoom={{#if:{{{zoom|}}}|{{{zoom}}}|3}}
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=3
  |minzoom=3
Line 147: Line 171:
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  |circles=50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  |circles=
  |center=50, 50
{{#switch:{{{circle|off}}}|on=
{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;}}
  |center=
{{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}}}|50, 50}}
  |image layers=The Forest Of Abandoned map.png
  |image layers=The Forest Of Abandoned map.png
  |zoom=3
  |zoom={{#if:{{{zoom|}}}|{{{zoom}}}|3}}
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=3
  |minzoom=3
Line 159: Line 186:
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  |circles=50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  |circles=
  |center=50, 50
{{#switch:{{{circle|off}}}|on=
{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;}}
  |center=
{{#if:{{{N|}}}|{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.03255208333)+50)}}, {{#expr:(({{{E}}}*0.03255208333)+50)}}}}|50, 50}}
  |image layers=The Valley Of Blood map.png
  |image layers=The Valley Of Blood map.png
  |zoom=3
  |zoom={{#if:{{{zoom|}}}|{{{zoom}}}|3}}
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=3
  |minzoom=3
Line 220: Line 250:
:: Giants' Territory
:: Giants' Territory
;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. Defaults to auto.
;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. Defaults to auto.
;width : Optional. Include to adjust the width of the map widget (eg. 250). Defaults to auto.


== Example ==
== Example ==
Line 230: Line 260:


<pre>
<pre>
{{interactive map|map=Idios|N=-2275|E=-3640|name=Small Fog Wolf}}
{{interactive map|map=Idios|N=-2275|E=-3640|name=Small Fog Wolf|circle=on}}
</pre>
</pre>
{{interactive map|map=Idios|N=-2275|E=-3640|name=Small Fog Wolf}}
{{interactive map|map=Idios|N=-2275|E=-3640|name=Small Fog Wolf|circle=on}}


<pre>
<pre>
{{interactive map|map=Depthless Orifice/All|radius=0.5}}
{{interactive map|map=Depthless Orifice/All}}
</pre>
</pre>
{{interactive map|map=Depthless Orifice/All|radius=0.5}}
{{interactive map|map=Depthless Orifice/All}}


<pre>
<pre>
{{interactive map|map=Idios|center=Midland|zoom=5}}
{{interactive map|map=The Forest of the Abandoned|N=-426|E=-318|circle=on|radius=1|zoom=4}}
</pre>
</pre>
{{interactive map|map=Idios|center=Midland|zoom=5}}
{{interactive map|map=The Forest of the Abandoned|N=-426|E=-318|circle=on|radius=1|zoom=4}}


== TODO ==
== TODO ==
* 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
** Idios center parameter WIP
* Allow circle to be a on/off toggle
* Look into adding cluster function
* Look into adding cluster function
* Add markers for unmarked towns/cities (eg. Midland, Dusty Town, Gypsy Village, etc.)
* Add markers for unmarked towns/cities (eg. Midland, Dusty Town, Gypsy Village, etc.)

Revision as of 15:49, 19 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=
|radius=
|center=
|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
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}}

map is work in progress

Loading map...
{{interactive map|map=Idios|N=-2275|E=-3640|name=Small Fog Wolf|circle=on}}

map is work in progress

Loading map...
{{interactive map|map=Depthless Orifice/All}}

map is work in progress

Loading map...
{{interactive map|map=The Forest of the Abandoned|N=-426|E=-318|circle=on|radius=1|zoom=4}}

map is work in progress

Loading map...

TODO

  • Look into adding cluster function
  • Add markers for unmarked towns/cities (eg. Midland, Dusty Town, Gypsy Village, etc.)
  • Add markers for unmarked arena entrances (eg. Midland and Palmas)
  • Upload lower res "clean" versions of each map to display as thumbnails in location infoboxes.
    • Under consideration - very low priority at the moment.