Template:NPC/Region.dpl: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus changed input to work with template location return instead of npc name |
imported>Aramachus changed template to take npc name instead of location |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#dpl: |
<includeonly><onlyinclude>{{#dpl: |
||
| title=<!-- |
| title=<!-- |
||
-->{{# |
-->{{#explode:{{#dpl:<!-- |
||
-->{{ |
-->| title={{{name}}}<!-- |
||
| ⚫ | |||
-->|2|-2}} |
|||
| ⚫ | |||
-->| skipthispage = no<!-- |
|||
| ⚫ | |||
| include={Zone Infobox}:Region |
| include={Zone Infobox}:Region |
||
| layout=,,, |
| layout=,,, |
||
}}</onlyinclude></includeonly> |
}}</onlyinclude></includeonly> |
||
<!--{{#explode:{{#dpl: |
|||
| title={{{name}}} |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
--> |
|||
==Usage== |
==Usage== |
||
Uses the NPCs |
Uses the NPCs name 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=== |
===Examle=== |
||
| Line 23: | Line 18: | ||
[[Medicine Axe]] is a NPC at the Outpost of the Valkurm Dunes. The corresponding region is Zulkheim. |
[[Medicine Axe]] is a NPC at the Outpost of the Valkurm Dunes. The corresponding region is Zulkheim. |
||
<pre>{{Template:NPC/Region.dpl| |
<pre>{{Template:NPC/Region.dpl|name=Medicine Axe}}</pre> |
||
{{Template:NPC/Region.dpl| |
{{Template:NPC/Region.dpl|name=Medicine Axe}} |
||
Revision as of 17:11, 29 November 2023
Usage
Uses the NPCs name entry to extract the location and subsequently looks at that location page and extracts the region (from region parameter of Template:Zone Infobox).
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}}
Extension:DynamicPageList4 (DPL4), version 4.0.0: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants