Template:Mutation: Difference between revisions
Template page
More actions
Aurelianus (talk | contribs) Replace raw mutation weight with calculated chance and remove display-only columns |
Aurelianus (talk | contribs) Add reusable infobox picture field and fallback |
||
| Line 21: | Line 21: | ||
<div class="hw-infobox-title">{{{name|{{PAGENAME}}}}}</div> | <div class="hw-infobox-title">{{{name|{{PAGENAME}}}}}</div> | ||
<div class="hw-infobox-badge">{{{type|Standard}}} mutation</div> | <div class="hw-infobox-badge">{{{type|Standard}}} mutation</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-mutation-swatch"><span></span><code>{{{color|#c9a75f}}}</code></div> | <div class="hw-mutation-swatch"><span></span><code>{{{color|#c9a75f}}}</code></div> | ||
<div class="hw-infobox-heading">Mutation Properties</div> | <div class="hw-infobox-heading">Mutation Properties</div> | ||
| Line 62: | Line 65: | ||
}} | }} | ||
</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 "Mutations". View table.
This template stores and displays a standard mutation record. Use
Mutation
Special mutation
#c9a75fMutation Properties
Value Multiplier
×—
Priority
—
Appears Normally
Yes
Appearance
No visual effect documented.
for age mutations and modifiers that must remain outside the standard index.
Usage
{{Mutation
| name = Silver
| type = Standard
| color = #EEF1F1
| multiplier = 2
| weight = 100
| chance = 1.6%
| priority = 1
| appears normally = Yes
| appearance = Turns the herb silver.
| description = A standard mutation.
| order = 1
}}
Set | image = Example.png to display an uploaded file in the infobox. Leave it empty to show “No Picture Uploaded”.