Template:NPC/Region.dpl

From HorizonXI Wiki
< Template:NPC
Revision as of 21:38, 26 October 2023 by Aramachus (talk | contribs) (Created page with "<includeonly><onlyinclude>{{#dpl: | title=<!-- -->{{#explode:{{#dpl: | title={{{name}}} | include={Location}:1,{NPC}:name | layout=,,, }}|{{{name}}}}}<!-- --> | include={Zone Infobox}:Region | layout=,,, }}</onlyinclude></includeonly> ==Usage== Uses the NPCs location field to extract the location and subsequently looks at that location page and extracts the region (from region parameter of Template:Zone Infobox). Uses explode parser function with the name of the npc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Usage

Uses the NPCs location field to extract the location and subsequently looks at that location page and extracts the region (from region parameter of Template:Zone Infobox).

Uses explode parser function with the name of the npc to work around the possibility of having multiple Template:Location on the page and selecting only the first. Not the best workaround but couldn't find a way to do it better.

Examle

Medicine Axe is a NPC at the Outpost of the Valkurm Dunes. The corresponding region is Zulkheim.

{{Template:NPC/Region.dpl|name=Medicine Axe}}

Zulkheim