Template:Interactive map: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>{{page warning}}</noinclude><includeonly>{{#switch:{{{map|V3}}}|Glorious Imperial Territory=
<noinclude>{{page warning}}</noinclude><includeonly>{{#switch:{{{map|Idios}}}|Glorious Imperial Territory=
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  {{#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|}}}|{{#expr:(({{{N}}}*0.009259)+50)}}, {{#expr:(({{{E}}}*0.009259)+50)}}:1~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~red~0.35~50~white~0.1;}}
  {{#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|}}}|{{#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)}}|{{#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=5
Line 12: Line 12:
  |minzoom=3
  |minzoom=3
  |maxzoom=7
  |maxzoom=7
|height={{{height}}}
|width={{{width}}}
}}|Idios=
}}|Idios=
map is work in progress
map is work in progress
Line 51: Line 53:
  {{#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|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}:1~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~red~0.35~50~white~0.1;}}
  {{#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|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}|{{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}}}
  {{#if:{{{N|}}}
  |{{#if:{{{E|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}}}
  |{{#if:{{{center|}}}|{{#switch:{{{center|}}}
  |Rog Imperial City={{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}
  |Rog Imperial Castle Area=
  |Green Valley=
  |Silent Woods={{#expr:((-2031*0.006510)+50)}}, {{#expr:((-3525*0.006510)+50)}}
  |Midland=
  |Dusty Gorge=
  |Palmas=
  |Tranquil Swamp=
  |Giants' Territory=
}}}}|{{#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=6
Line 59: Line 73:
  |minzoom=4
  |minzoom=4
  |maxzoom=10
  |maxzoom=10
}}|Depthless Orifice=
|height={{{height}}}
|width={{{width}}}
}}|Depthless Orifice/All=
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:2~ ~ ~red~0.5~3~yellow~0.25;
  50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  |center=
  |center=
  {{#if:{{{N|}}}|{{#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=3
Line 72: Line 88:
  |minzoom=2
  |minzoom=2
  |maxzoom=5
  |maxzoom=5
|height={{{height}}}
|width={{{width}}}
}}|Depthless Orifice/50+=
map is work in progress
{{#display_map:
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~[[Portal]]~[[Dusty Gorge]]~Minimap-portal.gif;
|circles=
50, 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=Depthless Orifice map.png
|zoom=3
|scrollzoom=on
|minzoom=2
|maxzoom=5
|height={{{height}}}
|width={{{width}}}
}}|Depthless Orifice/30-49=
map is work in progress
{{#display_map:
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~[[Portal]]~[[Rog Imperial City (V1)|Rog Imperial City]]~Minimap-portal.gif;
|circles=
50, 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=Depthless Orifice map.png
|zoom=3
|scrollzoom=on
|minzoom=2
|maxzoom=5
|height={{{height}}}
|width={{{width}}}
}}|Great Rebellion=
}}|Great Rebellion=
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  |circles=50, 50:2~ ~ ~red~0.5~3~yellow~0.25;
  |circles=50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  |center=50, 50
  |center=50, 50
  |image layers=Great Rebellion map.png
  |image layers=Great Rebellion map.png
Line 82: Line 130:
  |minzoom=3
  |minzoom=3
  |maxzoom=5
  |maxzoom=5
|height={{{height}}}
|width={{{width}}}
}}|Snow Storm=
}}|Snow Storm=
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  |circles=50, 50:2~ ~ ~red~0.5~3~yellow~0.25;
  |circles=50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  |center=50, 50
  |center=50, 50
  |image layers=Snow Storm map.png
  |image layers=Snow Storm map.png
Line 92: Line 142:
  |minzoom=3
  |minzoom=3
  |maxzoom=5
  |maxzoom=5
|height={{{height}}}
|width={{{width}}}
}}|The Forest Of Abandoned=
}}|The Forest Of Abandoned=
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  |circles=50, 50:2~ ~ ~red~0.5~3~yellow~0.25;
  |circles=50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  |center=50, 50
  |center=50, 50
  |image layers=The Forest Of Abandoned map.png
  |image layers=The Forest Of Abandoned map.png
Line 102: Line 154:
  |minzoom=3
  |minzoom=3
  |maxzoom=5
  |maxzoom=5
|height={{{height}}}
|width={{{width}}}
}}|The Valley Of Blood=
}}|The Valley Of Blood=
map is work in progress
map is work in progress
{{#display_map:
{{#display_map:
  |circles=50, 50:2~ ~ ~red~0.5~3~yellow~0.25;
  |circles=50, 50:{{#if:{{{radius|}}}|{{#ifexpr:{{{radius|}}}<1|1|{{{radius}}}}}|2}}~ ~ ~red~0.5~3~yellow~0.25;
  |center=50, 50
  |center=50, 50
  |image layers=The Valley Of Blood map.png
  |image layers=The Valley Of Blood map.png
Line 112: Line 166:
  |minzoom=3
  |minzoom=3
  |maxzoom=5
  |maxzoom=5
|height={{{height}}}
|width={{{width}}}
}}
}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Line 124: Line 180:
|name=
|name=
|description=
|description=
|center=
|radius=
|height=
|width=
}}
}}
</pre>
</pre>
== Parameters ==
== Parameters ==
;map : Required. Map to display. Options:
;map : Required. Map to display. Defaults to Idios. Options:
::Glorious Imperial Territory
::Glorious Imperial Territory
::Idios
::Idios
Line 139: Line 199:
;name : Optional. Marker title.
;name : Optional. Marker title.
;description : Optional. Marker description.
;description : Optional. Marker description.
;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
;radius : Optional. Include to increase circle radius (min. 1).
;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 ==
== Example ==
Line 152: Line 233:


<pre>
<pre>
{{interactive map|map=Depthless Orifice}}
{{interactive map|map=Depthless Orifice/All|radius=0.5}}
</pre>
{{interactive map|map=Depthless Orifice/All|radius=0.5}}
 
<pre>
{{interactive map|map=Idios|center=Rog Imperial City}}
</pre>
</pre>
{{interactive map|map=Depthless Orifice}}
{{interactive map|map=Idios|center=Rog Imperial City}}


== TODO ==
== TODO ==
* Add variations for Depthless Orifice map call
** All, 30-49, 50+ would have unique markers for entrance/exit portals
* Add <nowiki>{{#if:}}</nowiki> condition to N/E parameters to make them required, and return a default/error marker if missing.
** Do the same with map parameter.
* Allow center to be configurable as a parameter
* 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
** If center= contains T text (areas), set to C coordinates, else use N/E, else default to Rog, else default to center
* Allow height/width to be configurable
** Idios center parameter WIP
** As parameter, mainly for adding into infoboxes - if blank, default auto
* Allow circle radius to be configurable (min. 1)
* 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.)
* Add markers for unmarked arena entrances (eg. Midland and Palmas)
* 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.
* Upload lower res "clean" versions of each map to display as thumbnails in location infoboxes.
** Under consideration - very low priority at the moment.


</noinclude>
</noinclude>

Revision as of 14:33, 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=
|center=
|radius=
|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.
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
radius
Optional. Include to increase circle radius (min. 1).
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=Rog Imperial City}}

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