Template:Position: Difference between revisions

From HorizonXI Wiki
(Created page with "<onlyinclude><includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|({{#switch:{{lc:{{{map link|}}}}}|none = {{{2|}}}|#default = {{Location Tooltip|id={{{id|}}}|area={{{1|}}}|pos={{{2|}}}|map={{{3|}}}|marker pos x={{{exact pos x|}}}|marker pos y={{{exact pos y|}}}}}}})}}}}</includeonly></onlyinclude> {{PAGENAMEE}} ==Usage== <pre> {{Position|<area>|<position>|<map>}} </pre> Displays the position with a link to the area's map and, if available, a tooltip map wit...")
Tag: visualeditor-wikitext
 
 
(2 intermediate revisions by 2 users not shown)
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|}}}|map={{{3|}}}|marker pos x={{{exact pos x|}}}|marker pos y={{{exact pos 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={{{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>
[[Category:Templates|{{PAGENAMEE}}]]
[[Category:Templates|{{PAGENAMEE}}]]
==Usage==
==Usage==
Line 8: Line 8:
*'''area:''' The [[:Category:Areas|area]] to link to.
*'''area:''' The [[:Category:Areas|area]] to link to.
*'''position:''' The position on the map.
*'''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.
*'''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.
*'''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.
*'''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 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 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.
===Examples===
===Examples===
{| class="ffxi-table" border="1"
{| class="ffxi-table" border="1"
Line 27: Line 30:
| {{Position|Inner Horutoto Ruins|I-9|Lily Tower|map link=Lily Tower}}
| {{Position|Inner Horutoto Ruins|I-9|Lily Tower|map link=Lily Tower}}
|-
|-
| <pre>{{Position|Ifrit's Cauldron|F-8|Map 5|map link=none}}</pre>
| <pre>{{Position|Ifrit's Cauldron|F-8|Map 5|map link=Ifrit's Cauldron}}</pre>
| {{Position|Ifrit's Cauldron|F-8|Map 5|map link=none}}
| {{Position|Ifrit's Cauldron|F-8|Map 5|map link=Ifrit's Cauldron}}
|-
|-
| <pre>{{Position|Bastok Markets|F-10|exact pos x=10|exact pos y=8}}</pre>
| <pre>{{Position|Bastok Markets|F-10|exact pos x=10|exact pos y=8}}</pre>
| {{Position|Bastok Markets|F-10|exact pos x=10|exact pos y=8}}
| {{Position|Bastok Markets|F-10|exact pos x=10|exact pos y=8}}
|-
| <pre>{{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}}</pre>
| {{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}}
|-
| <pre>{{Position|Northern San d'Oria|C-8|pos 2=C-9}}</pre>
| {{Position|Northern San d'Oria|C-8|pos 2=C-9}}
|}
|}

Latest revision as of 03:04, 4 November 2024

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.

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)