Template:Location: Difference between revisions
From HorizonXI Wiki
No edit summary |
(if no coordinates are given, the link itself will show the map of the area on hover without marker (Template:Location Tooltip default behavior)) |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><onlyinclude><!-- | ||
display link to the area | |||
-->{{#if:{{{1|}}}|{{#if:{{{2|}}}{{{map link|}}}|[[{{{1|}}}]]|{{Location Tooltip|area={{{1}}}}}}}<!-- | |||
additionally display map link in case its on an extra map | |||
-->{{#if:{{{map|}}}|, {{#switch:{{lc:{{{map link|}}}}}|none = {{{map}}}| = [[{{{1}}}/Maps#{{{map}}}|{{{map}}}]]|#default = [[{{{map link|}}}|{{{map}}}]]}}}}<!-- | |||
< | display coordinates as link to the map and showing the map as a tooltip with position indicator using {{Location Tooltip}} | ||
-->{{#if:{{{2|}}}|<nowiki> </nowiki><!-- | |||
Location Tooltip template | |||
-->({{#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|}}}|pos 5={{{pos 5|}}}|pos 6={{{pos 6|}}}|map={{{map|}}}|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|}}}|marker pos 5 x={{{exact pos 5 x|}}}|marker pos 5 y={{{exact pos 5 y|}}}|marker pos 6 x={{{exact pos 6 x|}}}|marker pos 6 y={{{exact pos 6 y|}}}}}}})<!-- | |||
-->}}<!-- | |||
additional note display, if given | |||
-->{{#if:{{{3|}}}| | |||
:''{{{3}}}''<nowiki> </nowiki>}}}}</onlyinclude></includeonly> | |||
[[Category:Templates|{{PAGENAMEE}}]] | |||
==Usage== | |||
<pre> | |||
{{Location|<area>|<position>|<note>|map=<map>|map link=<map link>}} | |||
</pre> | |||
Provides a link to the map of a specified area map. Supports coordinates and areas with multiple maps. Notes appear on a new line in italics. Implemented using [[Template:Location Tooltip]]. | |||
*'''area:''' The [[:Category:Areas|area]] to link to. | |||
*'''position:''' The position on the map. | |||
**Optional: additional parameters '''pos 2''', '''pos 3''', '''pos 4''', '''pos 5''' and '''pos 6''' can be used to mark multiple positions. | |||
*'''note:''' Optional. A note about the location, such as landmarks that it is near. | |||
*'''map:''' Optional. The map that the location appears on. | |||
*'''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. A link to the map that the location appears on or "none" to remove the automatic link. | |||
*'''exact pos x:''' Optional. The exact x position within the quadrant. | |||
**'''exact pos 2 x''', '''exact pos 3 x''', '''exact pos 4 x''', '''exact pos 5 x''' and '''exact pos 6 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''', '''exact pos 4 y''', '''exact pos 5 y''' and '''exact pos 6 y:''' can be used to mark multiple positions. | |||
==Examples== | |||
{| class="ffxi-table" border="1" | |||
! Code !! Result | |||
|- | |||
| <pre>{{Location|Selbina}}</pre> | |||
| {{Location|Selbina}} | |||
|- | |||
| <pre>{{Location|Northern San d'Oria|C-8}}</pre> | |||
| {{Location|Northern San d'Oria|C-8}} | |||
|- | |||
| <pre>{{Location|Valkurm Dunes|H-7|Next to the outpost.}}</pre> | |||
| {{Location|Valkurm Dunes|H-7|Next to the outpost.}} | |||
|- | |||
| <pre>{{Location|Windurst Waters|map=North|K-6}}</pre> | |||
| {{Location|Windurst Waters|map=North|K-6}} | |||
|- | |||
| <pre>{{Location|Inner Horutoto Ruins|map=Lily Tower|map link=Lily Tower|I-9}}</pre> | |||
| {{Location|Inner Horutoto Ruins|map=Lily Tower|map link=Lily Tower|I-9}} | |||
|- | |||
| <pre>{{Location|Ifrit's Cauldron|map=Map 5|map link=none|F-8}}</pre> | |||
| {{Location|Ifrit's Cauldron|map=Map 5|map link=none|F-8}} | |||
|- | |||
| <pre>{{Location|Bastok Markets|F-10|exact pos x=10|exact pos y=8}}</pre> | |||
| {{Location|Bastok Markets|F-10|exact pos x=10|exact pos y=8}} | |||
|- | |||
| <pre>{{Location|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> | |||
| {{Location|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>{{Location|Northern San d'Oria|C-8|pos 2=C-9|pos 3=C-10|pos 4=D-8|pos 5=D-9|pos 6=D-10}}</pre> | |||
| {{Location|Northern San d'Oria|C-8|pos 2=C-9|pos 3=C-10|pos 4=D-8|pos 5=D-9|pos 6=D-10}} | |||
|} | |||
Exact position coordinates place a red pixel graphic at the coordinates in the tooltip. The alignment is to the top left of a transparent gif and not the center of it. |
Latest revision as of 21:15, 3 September 2024
Usage
{{Location|<area>|<position>|<note>|map=<map>|map link=<map link>}}
Provides a link to the map of a specified area map. Supports coordinates and areas with multiple maps. Notes appear on a new line in italics. Implemented using Template:Location Tooltip.
- area: The area to link to.
- position: The position on the map.
- Optional: additional parameters pos 2, pos 3, pos 4, pos 5 and pos 6 can be used to mark multiple positions.
- note: Optional. A note about the location, such as landmarks that it is near.
- map: Optional. The map that the location appears on.
- 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. A link to the map that the location appears on or "none" to remove the automatic link.
- exact pos x: Optional. The exact x position within the quadrant.
- exact pos 2 x, exact pos 3 x, exact pos 4 x, exact pos 5 x and exact pos 6 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, exact pos 4 y, exact pos 5 y and exact pos 6 y: can be used to mark multiple positions.
Examples
Code | Result |
---|---|
{{Location|Selbina}} |
Selbina |
{{Location|Northern San d'Oria|C-8}} |
Northern San d'Oria (C-8) |
{{Location|Valkurm Dunes|H-7|Next to the outpost.}} |
Valkurm Dunes (H-7)
|
{{Location|Windurst Waters|map=North|K-6}} |
Windurst Waters, North (K-6) |
{{Location|Inner Horutoto Ruins|map=Lily Tower|map link=Lily Tower|I-9}} |
Inner Horutoto Ruins, Lily Tower (I-9) |
{{Location|Ifrit's Cauldron|map=Map 5|map link=none|F-8}} |
Ifrit's Cauldron, Map 5 (F-8) |
{{Location|Bastok Markets|F-10|exact pos x=10|exact pos y=8}} |
Bastok Markets (F-10) |
{{Location|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}} |
Bastok Markets (F-10 / G-9) |
{{Location|Northern San d'Oria|C-8|pos 2=C-9|pos 3=C-10|pos 4=D-8|pos 5=D-9|pos 6=D-10}} |
Northern San d'Oria (C-8 / C-9 / C-10 / D-8 / D-9 / D-10) |
Exact position coordinates place a red pixel graphic at the coordinates in the tooltip. The alignment is to the top left of a transparent gif and not the center of it.