Template:Location: Difference between revisions
Template page
More actions
Aurelianus (talk | contribs) Use aggregate Cargo count for known herbs |
Aurelianus (talk | contribs) Add reusable NPC paragraph and image gallery fields |
||
| Line 15: | Line 15: | ||
<div class="hw-infobox-blurb hw-location-herb-list">{{#cargo_query:tables=Herbs|fields=_pageName|where=Location='{{{name|{{PAGENAME}}}}}'|order by=Name|format=list|delimiter= · |default=None documented.}}</div> | <div class="hw-infobox-blurb hw-location-herb-list">{{#cargo_query:tables=Herbs|fields=_pageName|where=Location='{{{name|{{PAGENAME}}}}}'|order by=Name|format=list|delimiter= · |default=None documented.}}</div> | ||
</div> | </div> | ||
{{#if:{{{npc gallery|}}}| | |||
<section class="hw-location-npc-section" aria-label="NPCs in {{{name|{{PAGENAME}}}}}"> | |||
<div class="hw-location-npc-overline">PEOPLE OF THE REGION</div> | |||
<h2 class="hw-location-npc-title">NPCs</h2> | |||
<div class="hw-location-npc-copy">{{{npc paragraph|The following NPCs can be found in this location.}}}</div> | |||
<div class="hw-location-npc-gallery">{{{npc gallery}}}</div> | |||
</section> | |||
}} | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This template displays a location dossier | This template displays a location dossier, automatically lists herbs whose centralized record names this location, and can display an NPC paragraph and captioned image gallery. | ||
== Usage == | == Usage == | ||
| Line 24: | Line 32: | ||
| blurb = A short description of the location. | | blurb = A short description of the location. | ||
| npc count = 1 | | npc count = 1 | ||
| npc paragraph = A short introduction to the people found here. | |||
| npc gallery = | |||
<gallery widths="180" heights="200"> | |||
File:Example NPC.png|[[Example NPC]] | |||
</gallery> | |||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 09:17, 28 July 2026
This template displays a location dossier, automatically lists herbs whose centralized record names this location, and can display an NPC paragraph and captioned image gallery.
Usage
{{Location
| name = Mainland
| blurb = A short description of the location.
| npc count = 1
| npc paragraph = A short introduction to the people found here.
| npc gallery =
<gallery widths="180" heights="200">
File:Example NPC.png|[[Example NPC]]
</gallery>
}}