Template:Location: Difference between revisions
Template page
More actions
Aurelianus (talk | contribs) Add world-atlas banner and richer location dossier structure |
Aurelianus (talk | contribs) Use aggregate Cargo count for known herbs |
||
| (One intermediate revision by the same user not shown) | |||
| Line 11: | Line 11: | ||
<div class="hw-infobox-blurb">{{{blurb|No description available.}}}</div> | <div class="hw-infobox-blurb">{{{blurb|No description available.}}}</div> | ||
<div class="hw-infobox-row"><div class="hw-infobox-label">Known NPCs</div><div class="hw-infobox-value">{{{npc count|0}}}</div></div> | <div class="hw-infobox-row"><div class="hw-infobox-label">Known NPCs</div><div class="hw-infobox-value">{{{npc count|0}}}</div></div> | ||
<div class="hw-infobox-row"><div class="hw-infobox-label">Known Herbs</div><div class="hw-infobox-value">{{#cargo_query:tables=Herbs|fields=COUNT(*)=Count|where=Location='{{{name|{{PAGENAME}}}}}'|format=plainlist}}</div></div> | |||
<div class="hw-infobox-heading">Herbs Found Here</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> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This template displays a location dossier and automatically lists herbs whose centralized record names this location. | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
| Line 21: | Line 26: | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:08, 26 July 2026
This template displays a location dossier and automatically lists herbs whose centralized record names this location.
Usage
{{Location
| name = Mainland
| blurb = A short description of the location.
| npc count = 1
}}