Template:Position: Difference between revisions

From HorizonXI Wiki
(added option to use explicit map parameter to specify the map to mirror behavior of template location)
(added text parameter to display a given text (like in location tooltip))
 
Line 1: Line 1:
<onlyinclude><includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|({{#switch:{{lc:{{{map link|}}}}}|none = {{{2}}}|#default = {{Location Tooltip|id={{{id|}}}|area={{{1}}}|pos={{{2}}}|pos 2={{{pos 2|}}}|pos 3={{{pos 3|}}}|pos 4={{{pos 4|}}}|map={{{map|{{{3|}}}}}}|marker pos x={{{exact pos x|}}}|marker pos y={{{exact pos y|}}}|marker pos 2 x={{{exact pos 2 x|}}}|marker pos 2 y={{{exact pos 2 y|}}}|marker pos 3 x={{{exact pos 3 x|}}}|marker pos 3 y={{{exact pos 3 y|}}}|marker pos 4 x={{{exact pos 4 x|}}}|marker pos 4 y={{{exact pos 4 y|}}}}}}})}}}}</includeonly></onlyinclude>
<onlyinclude><includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|({{#switch:{{lc:{{{map link|}}}}}|none = {{{2}}}|#default = {{Location Tooltip|id={{{id|}}}|area={{{1}}}|pos={{{2}}}|pos 2={{{pos 2|}}}|pos 3={{{pos 3|}}}|pos 4={{{pos 4|}}}|map={{{map|{{{3|}}}}}}|marker pos x={{{exact pos x|}}}|marker pos y={{{exact pos y|}}}|marker pos 2 x={{{exact pos 2 x|}}}|marker pos 2 y={{{exact pos 2 y|}}}|marker pos 3 x={{{exact pos 3 x|}}}|marker pos 3 y={{{exact pos 3 y|}}}|marker pos 4 x={{{exact pos 4 x|}}}|marker pos 4 y={{{exact pos 4 y|}}}|text={{{text|}}}}}}})}}}}</includeonly></onlyinclude>
[[Category:Templates|{{PAGENAMEE}}]]
[[Category:Templates|{{PAGENAMEE}}]]
==Usage==
==Usage==
Line 16: Line 16:
*'''exact pos y:''' Optional. The exact y position within the quadrant.
*'''exact pos y:''' Optional. The exact y position within the quadrant.
**'''exact pos 2 y:''', '''exact pos 3 y:''' and '''exact pos 4 y:''' can be used to mark multiple positions.  
**'''exact pos 2 y:''', '''exact pos 3 y:''' and '''exact pos 4 y:''' can be used to mark multiple positions.  
**'''text:''' Optional. Displayed text instead of coordinates.
===Examples===
===Examples===
{| class="ffxi-table" border="1"
{| class="ffxi-table" border="1"

Latest revision as of 11:19, 27 June 2025

Usage

{{Position|<area>|<position>|<map>}}

Displays the position with a link to the area's map and, if available, a tooltip map with the position highlighted. Tooltips are implemented in Template:Location Tooltip

  • area: The area to link to.
  • position: The position on the map.
    • Optional: additional parameters pos 2, pos 3 and pos 4 can be used to mark multiple positions.
  • map: Optional. The specific map if there are multiple maps for the area.
  • id: Optional. A unique id to give to the tooltip. Use if the same location (area and position) is repeated on the same page.
  • map link: Optional. "none" to remove the automatic link to the map.
  • exact pos x: Optional. The exact x position within the quadrant.
    • exact pos 2 x:, exact pos 3 x: and exact pos 4 x: can be used to mark multiple positions.
  • exact pos y: Optional. The exact y position within the quadrant.
    • exact pos 2 y:, exact pos 3 y: and exact pos 4 y: can be used to mark multiple positions.
    • text: Optional. Displayed text instead of coordinates.

Examples

Code Result
{{Position|Northern San d'Oria|C-8}}
(C-8)
{{Position|Windurst Waters|K-6|North}}
(K-6)
{{Position|Inner Horutoto Ruins|I-9|Lily Tower|map link=Lily Tower}}
(I-9)
{{Position|Ifrit's Cauldron|F-8|Map 5|map link=Ifrit's Cauldron}}
(F-8)
{{Position|Bastok Markets|F-10|exact pos x=10|exact pos y=8}}
(F-10)
{{Position|Bastok Markets|F-10|exact pos x=10|exact pos y=8|pos 2=G-9|exact pos 2 x=0|exact pos 2 y = 0}}
(F-10 / G-9)
{{Position|Northern San d'Oria|C-8|pos 2=C-9}}
(C-8 / C-9)