Template:Zone/NPCs.dpl: Difference between revisions

From HorizonXI Wiki
m (Aramachus moved page Template:Areas/NPCs.dpl to Template:Zone/NPCs.dpl: naming convention used in the wiki is Zone instead of Area)
m (made type for npcs conditional instead of leading to faulty output)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>[[%PAGE%|%TITLE%]]
<onlyinclude><includeonly>[[%PAGE%|%TITLE%]]
| {{#explode:{{#explode:{{{location|}}}| (|1}}|)|0}}
| {{#explode:{{#explode:{{{location|}}}| (|1}}|)|0}}
| [[{{{type|}}}]] {{#if:{{{type add|}}}|({{{type add}}})|}}</includeonly></onlyinclude>
| {{#if:{{{type|}}}|[[{{{type|}}}]] {{#if:{{{type add|}}}|({{{type add}}})|}}}}</includeonly></onlyinclude>
==Usage==
==Usage==
dpl phantom template which '''formats the rows''' of [[Template:Areas/NPCs]]
dpl phantom template which '''formats the rows''' of [[Template:Zone/NPCs]]


==Example==
==Example==
Using [[Template:Areas/NPCs]]
Using [[Template:Zone/NPCs]]


<pre>{{Areas/NPCs|Valkurm Dunes}}</pre>
<pre>{{Zone/NPCs|Valkurm Dunes}}</pre>


{{Areas/NPCs|Valkurm Dunes}}
{{Zone/NPCs|Valkurm Dunes}}

Latest revision as of 10:22, 5 June 2025

Usage

dpl phantom template which formats the rows of Template:Zone/NPCs

Example

Using Template:Zone/NPCs

{{Zone/NPCs|Valkurm Dunes}}
Name Location Type
Medicine Axe H-7 Outpost Merchant
Nyata-Mobuta, W.W. H-7 Conquest Overseer (Outpost Guard)
Quanteilleron, R.K. H-7 Conquest Overseer (Outpost Guard)
Tsunashige, I.M. H-7 Conquest Overseer (Outpost Guard)
Fighting Ant, I.M. L-10 Conquest Overseer (Border Guard)
Prunilla, R.K. L-10 Conquest Overseer (Border Guard)
Tebubu, W.W. L-10 Conquest Overseer (Border Guard)