Template:Interactive map: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 62: Line 62:
   |Green Valley=
   |Green Valley=
   |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=
   |Midland={{#expr:((-1650*0.006510)+50)}}, {{#expr:((-2300*0.006510)+50)}}
   |Dusty Gorge=
   |Dusty Gorge={{#expr:((-1811*0.006510)+50)}}, {{#expr:((-1143*0.006510)+50)}}
   |Palmas=
   |Palmas={{#expr:((78*0.006510)+50)}}, {{#expr:((-999*0.006510)+50)}}
   |Tranquil Swamp=
   |Tranquil Swamp={{#expr:((1300*0.006510)+50)}}, {{#expr:((-877*0.006510)+50)}}
   |Giants' Territory=
   |Giants' Territory={{#expr:((2668*0.006510)+50)}}, {{#expr:((-746*0.006510)+50)}}
  }}}}|{{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}}}
  }}}}|{{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}}}
  |image layers=V3 detailed map.png
  |image layers=V3 detailed map.png
  |zoom=6
  |zoom={{#if:{{{zoom|}}}|{{{zoom}}}|6}}
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=4
  |minzoom=4
Line 180: Line 180:
|name=
|name=
|description=
|description=
|radius=
|center=
|center=
|radius=
|zoom=
|height=
|height=
|width=
|width=
Line 199: Line 200:
;name : Optional. Marker title.
;name : Optional. Marker title.
;description : Optional. Marker description.
;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:
;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
:: Rog Imperial City
Line 217: Line 219:
:: Tranquil Swamp
:: Tranquil Swamp
:: Giants' Territory
:: Giants' Territory
;radius : Optional. Include to increase circle radius (min. 1).
;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. 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. Defaults to auto.
Line 238: Line 240:


<pre>
<pre>
{{interactive map|map=Idios|center=Rog Imperial City}}
{{interactive map|map=Idios|center=Midland|zoom=5}}
</pre>
</pre>
{{interactive map|map=Idios|center=Rog Imperial City}}
{{interactive map|map=Idios|center=Midland|zoom=5}}


== TODO ==
== TODO ==
Line 246: Line 248:
** If center= contains T text (areas), set to C coordinates, else use N/E, else default to Rog, else default to center
** 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
** 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 14:48, 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 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. Defaults to auto.
width
Optional. Include to adjust the width of the map widget. 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}}

map is work in progress

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

map is work in progress

Loading map...
{{interactive map|map=Idios|center=Midland|zoom=5}}

map is work in progress

Loading map...

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
  • 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.