Template:NPCLoc: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus changed code slightly so it only returns the location |
imported>Aramachus mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{# |
<onlyinclude><includeonly>{{#if:{{{format|}}}|{{#switch:{{lc:{{{format}}}}}<!-- |
||
-->| short = {{#dpl: allowcachedresults = true | title = {{{1}}} | include = {NPC}:location | skipthispage = no}}<!-- |
|||
-->| coordinates = <!-- code not yet implemented, needs another phantom template that extracts the coordinates from the location-->{{#dpl: allowcachedresults = true | title = {{{1}}} | include = NPC:location | skipthispage = no}}<!-- |
|||
-->| #default = {{#dpl: allowcachedresults = true | title = {{{1}}} | include = {NPC¦NPCLoc.dpl} | skipthispage = no}} |
|||
}}<!-- |
|||
-->| {{#dpl: allowcachedresults = true | title = {{{1}}} | include = {NPC¦NPCLoc.dpl} | skipthispage = no}} |
|||
}}<!-- |
|||
--></includeonly></onlyinclude> |
|||
==Usage== |
==Usage== |
||
| Line 14: | Line 21: | ||
</pre> |
</pre> |
||
{{NPCLoc|Halver}} |
{{NPCLoc|Halver}} |
||
<pre> |
|||
{{NPCLoc|Piketo-Puketo}} |
|||
</pre> |
|||
{{NPCLoc|Piketo-Puketo}} |
|||
<pre> |
|||
{{NPCLoc|Piketo-Puketo|format=short}} |
|||
</pre> |
|||
{{NPCLoc|Piketo-Puketo|format=short}} |
|||
Latest revision as of 22:18, 3 September 2024
Usage
Returns the location of the NPC as shown on the NPC page
Examples
{{NPCLoc|Goggehn}}
- 5555FF; opacity:0.5;">), in the Embassy of Bastok (Jeuno)
{{NPCLoc|Halver}}
- 5555FF; opacity:0.5;">)
{{NPCLoc|Piketo-Puketo}}
- 5555FF; opacity:0.5;">), in the Culinarians' Guild (Windurst)
{{NPCLoc|Piketo-Puketo|format=short}}
- 5555FF; opacity:0.5;">)

