Template:Location: Difference between revisions
Template page
More actions
Aurelianus (talk | contribs) No edit summary |
Aurelianus (talk | contribs) Hide empty image rows and standardize location infobox markup |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="hw-infobox hw-location-infobox"> | <div class="hw-infobox hw-location-infobox"> | ||
<div class="hw-infobox-title">{{{name|{{PAGENAME}}}}}</div> | |||
{{#if:{{{image|}}}| | |||
<div class="hw-infobox-image">[[File:{{{image}}}|260px|center|alt={{{name|{{PAGENAME}}}}}]]</div> | |||
}} | |||
<div class="hw-infobox-heading">Information</div> | |||
<div class="hw-infobox-blurb">{{{blurb|No description available.}}}</div> | |||
<div class="hw-infobox-row"> | |||
<div class="hw-infobox-label">NPC Count</div> | |||
<div class="hw-infobox-value">{{{npc count|0}}}</div> | |||
</div> | |||
</div> | </div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Location | {{Location | ||
| name = | | name = Mainland | ||
| image = | | image = Example.png | ||
| blurb = A | | blurb = A short description of the location. | ||
| npc count = | | npc count = 1 | ||
}} | }} | ||
</pre> | </pre> | ||
The image row is hidden when no image is supplied. | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 14:40, 26 July 2026
Usage
{{Location
| name = Mainland
| image = Example.png
| blurb = A short description of the location.
| npc count = 1
}}
The image row is hidden when no image is supplied.