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

Template:Crystal: Difference between revisions

Template page
Add reusable infobox picture field and fallback
Use native image field fallback without ParserFunctions
Line 19: Line 19:
<div class="hw-infobox-badge">{{{rarity|Unknown}}} crystal</div>
<div class="hw-infobox-badge">{{{rarity|Unknown}}} crystal</div>
<div class="hw-infobox-image" role="group" aria-label="Image for {{{name|{{PAGENAME}}}}}">
<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>}}
{{{image|<div class="hw-infobox-image-empty">No Picture Uploaded</div>}}}
</div>
</div>
<div class="hw-infobox-heading">Crystal Effects</div>
<div class="hw-infobox-heading">Crystal Effects</div>
Line 57: Line 57:
</pre>
</pre>


Set <code>| image = Example.png</code> to display an uploaded file in the infobox. Leave it empty to show “No Picture Uploaded”.
Set <code>| image = [[File:Example.png|frameless|600px]]</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:34, 29 July 2026

This template defines the table "Crystals". View table. This template stores and displays one centralized crystal record.

Usage

{{Crystal
| name = Flame Crystal
| rarity = Mortal
| universal luck = 1.2
| preferred luck = 1.5
| technique = 1.1
| weight = 12
| preferred herbs = Crimson Sun Grass;Yang Lotus
| description = A basic flame aspect crystal.
}}

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

Contents