Template:Interactive map: Difference between revisions

From FHX Wiki
No edit summary
Line 3: Line 3:
{{#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={{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.009259)+50)}}, {{#expr:(({{{E}}}*0.009259)+50)}}:1~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~red~0.5~3~yellow~0.25;}}
  |circles=
  |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|}}}|{{#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;}}
  |center=
{{#if:{{{N|}}}|{{#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
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=3
  |minzoom=3
  |maxzoom=6
  |maxzoom=7
}}|Idios=
}}|Idios=
map is work in progress
map is work in progress
Line 47: Line 49:
  {{#expr:((751*0.006510)+50)}}, {{#expr:((-1421*0.006510)+50)}}~GVG Entrance~[[The Forest of the Abandoned]]~Minimap-fortress.gif;
  {{#expr:((751*0.006510)+50)}}, {{#expr:((-1421*0.006510)+50)}}~GVG Entrance~[[The Forest of the Abandoned]]~Minimap-fortress.gif;
  {{#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={{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}:1~{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}~{{#if:{{{description|}}}|{{{description}}}}}~red~0.35~50~yellow~0.25;}}
  |circles=
  |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|}}}|{{#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;}}
  |center=
{{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*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=6
  |scrollzoom=on
  |scrollzoom=on
  |minzoom=4
  |minzoom=4
  |maxzoom=7
  |maxzoom=10
}}|Depthless Orifice=
}}|Depthless Orifice=
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;
  {{#expr:((-327*0.03255208333)+50)}}, {{#expr:((-1048*0.03255208333)+50)}}~[[Portal]]~[[Rog Imperial City (V1)|Rog Imperial City]]~Minimap-portal.gif;
  |center=50, 50
  |circles=
50, 50:2~ ~ ~red~0.5~3~yellow~0.25;
  |center=
{{#if:{{{N|}}}|{{#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 134: Line 141:
== Example ==
== Example ==
<pre>
<pre>
{{interactive map|map=Glorious Imperial Territory}}
{{interactive map|map=Glorious Imperial Territory|N=1153|E=-376}}
</pre>
</pre>
{{interactive map|map=Glorious Imperial Territory}}
{{interactive map|map=Glorious Imperial Territory|N=1153|E=-376}}


<pre>
<pre>
Line 144: Line 151:


<pre>
<pre>
{{interactive map|map=Great Rebellion|N=0|E=0|name=Test|description=}}
{{interactive map|map=Depthless Orifice}}
</pre>
</pre>
{{interactive map|map=Great Rebellion|N=0|E=0|name=Test|description=}}
{{interactive map|map=Depthless Orifice}}


== TODO ==
== TODO ==

Revision as of 01:07, 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=
}}

Parameters

map
Required. Map to display. 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.

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}}

map is work in progress

Loading map...

TODO

  • Add variations for Depthless Orifice map call
    • All, 30-49, 50+ would have unique markers for entrance/exit portals
  • Add {{#if:}} 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
    • 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
    • As parameter, mainly for adding into infoboxes - if blank, default auto
  • Allow circle radius to be configurable (min. 1)
  • 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.