Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Shovel: Difference between revisions

Template page
Default shovel colors to #FFFFFF
Add reusable infobox picture field and fallback
Line 22: Line 22:
<div class="hw-infobox-title">{{{name|{{PAGENAME}}}}}</div>
<div class="hw-infobox-title">{{{name|{{PAGENAME}}}}}</div>
<div class="hw-infobox-badge">Tier {{{tier|Unknown}}} Equipment</div>
<div class="hw-infobox-badge">Tier {{{tier|Unknown}}} Equipment</div>
<div class="hw-infobox-image" role="group" aria-label="Image for {{{name|{{PAGENAME}}}}}">
{{#if:{{{image|}}}|[[File:{{{image}}}|frameless|600px|alt={{{name|{{PAGENAME}}}}}]]|<div class="hw-infobox-image-empty">No Picture Uploaded</div>}}
</div>
<div class="hw-shovel-color-strip" aria-hidden="true"></div>
<div class="hw-shovel-color-strip" aria-hidden="true"></div>
<div class="hw-infobox-heading">Acquisition</div>
<div class="hw-infobox-heading">Acquisition</div>
Line 72: Line 75:
}}
}}
</pre>
</pre>
Set <code>| image = Example.png</code> to display an uploaded file in the infobox. Leave it empty to show “No Picture Uploaded”.
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 09:29, 29 July 2026

This template defines the table "Shovels". View table. This template stores and displays a shovel record. Location appears on the individual page; Color is used for automatic row and link styling without becoming a visible archive column.

Usage

{{Shovel
| name = Basic Shovel
| obtainment = Starter Shovel
| location = Starter areas
| color = #FFFFFF
| tier = 1
| efficiency = +0%
| gathering = +10%
| luck = +20%
| technique = -10%
| sight = +0.2
| sturdiness = +10%
| passive_ability = No
| order = 1
}}

Set | image = Example.png to display an uploaded file in the infobox. Leave it empty to show “No Picture Uploaded”.

Contents