Template:NPC/Region.dpl

From HorizonXI Wiki
< Template:NPC
Revision as of 02:12, 29 October 2023 by Aramachus (talk | contribs) (changed input to work with template location return instead of npc name)

Usage

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

Requires the location to be entered as a Template:Location. Uses explode parser function with the character "(" to split the return of Template:Location and obtain the area as the 0th argument of that.

Examle

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

{{Template:NPC/Region.dpl|location={{Location|Valkurm Dunes|H-7}}

Zulkheim