Template:Location: Difference between revisions

From HorizonXI Wiki
m (Reverted edits by Sidagreat (talk) to last revision by FANDOM)
Tags: Rollback Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly><infobox type="Location">
<includeonly>{{#if:{{{1|}}}|[[{{{1|}}}]]{{#if:{{{map|}}}|, {{#switch:{{lc:{{{map link|}}}}}|none = {{{map}}}| = [[{{{1}}}/Maps#{{{map}}}|{{{map}}}]]|#default = [[{{{map link|}}}|{{{map}}}]]}}}}{{#if:{{{2|}}}|<nowiki/> {{Position|{{{1|}}}|{{{2|}}}|id={{{id|}}}|<nowiki/>
<title source="title"/>
:''{{{3|}}}''<nowiki/>}}}}</includeonly><noinclude>
<image source="image"><caption source="imagecaption"/></image>
[[Category:Templates|{{PAGENAMEE}}]]
<image source="map"><caption source="mapcaption"/></image>
==Usage==
<data source="type"><label>Type</label></data>
<pre>
<data source="level"><label>Level</label></data>
{{Location|<area>|<position>|<note>|map=<map>|map link=<map link>}}
<data source="location"><label>Location</label></data>
</pre>
<data source="inhabitants"><label>Inhabitants</label></data>
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:Position]].
</infobox>{{#ifeq: {{NAMESPACENUMBER}} | 0 | [[Category:Locations]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
*'''area:''' The [[:Category:Areas|area]] to link to.
*'''position:''' The position on the map.
*'''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 y:''' Optional. The exact y position within the quadrant.
==Examples==
{| class="ffxi-table" border="1"
|
! Code !! Result
|-
| <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}}
|}
 
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.
</noinclude>

Revision as of 23:07, 26 January 2023

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:Position.

  • area: The area to link to.
  • position: The position on the map.
  • 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 y: Optional. The exact y position within the quadrant.

Examples

Code Result
{{Location|Northern San d'Oria|C-8}}
Northern San d'Oria ([[Northern San d'Oria/Maps#
'|C-8]])
{{Location|Valkurm Dunes|H-7|Next to the outpost.}}
Valkurm Dunes ([[Valkurm Dunes/Maps#
Next to the outpost.|H-7]])
{{Location|Windurst Waters|map=North|K-6}}
Windurst Waters, North ([[Windurst Waters/Maps#
'|K-6]])
{{Location|Inner Horutoto Ruins|map=Lily Tower|map link=Lily Tower|I-9}}
Inner Horutoto Ruins, Lily Tower ([[Inner Horutoto Ruins/Maps#
'|I-9]])
{{Location|Ifrit's Cauldron|map=Map 5|map link=none|F-8}}
Ifrit's Cauldron, Map 5 ([[Ifrit's Cauldron/Maps#
'|F-8]])
{{Location|Bastok Markets|F-10|exact pos x=10|exact pos y=8}}
Bastok Markets ([[Bastok Markets/Maps#
'|F-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.