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

Template:Mutation: Difference between revisions

Template page
Add reusable infobox picture field and fallback
Clean Cargo schema and editing workflow
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
_table=Mutations
_table=Mutations
|Name={{{name|{{PAGENAME}}}}}
|Name={{{name|{{PAGENAME}}}}}
|Type={{{type|Standard}}}
|Type={{{type|Unknown}}}
|Color={{{color|#c9a75f}}}
|Color={{{color|#c9a75f}}}
|ColorSource={{{color source|RGB}}}
|Multiplier={{{multiplier|}}}
|Multiplier={{{multiplier|}}}
|Weight={{{weight|}}}
|Chance={{{chance|}}}
|Priority={{{priority|}}}
|Priority={{{priority|}}}
|AppearsNormally={{{appears normally|Yes}}}
|Appearance={{{appearance|}}}
|Appearance={{{appearance|}}}
|Description={{{description|}}}
|Description={{{description|}}}
Line 14: Line 12:
}}
}}
<div class="hw-record-banner hw-record-banner--mutation" style="--hw-mutation-color: {{{color|#c9a75f}}};">
<div class="hw-record-banner hw-record-banner--mutation" style="--hw-mutation-color: {{{color|#c9a75f}}};">
<div class="hw-record-code">ALTERATION RECORD · {{{type|Standard}}} MUTATION</div>
<div class="hw-record-code">ALTERATION RECORD · {{{type|Unknown}}} MUTATION</div>
<div class="hw-record-name">{{{name|{{PAGENAME}}}}}</div>
<div class="hw-record-name">{{{name|{{PAGENAME}}}}}</div>
<div class="hw-record-summary">{{{description|No description available.}}}</div>
<div class="hw-record-summary">{{{description|No description available.}}}</div>
</div>
</div>
<div class="hw-infobox hw-mutation-infobox hw-mutation-type-{{{type|Standard}}}" style="--hw-mutation-color: {{{color|#c9a75f}}};">
<div class="hw-record-actions">[[Special:FormEdit/Mutation/{{FULLPAGENAME}}|Edit record]] [{{fullurl:Special:MultiPageEdit|template=Mutation&form=Mutation}} Bulk edit mutations] [{{fullurl:{{FULLPAGENAME}}|action=delete}} Delete record]</div>
<div class="hw-infobox hw-mutation-infobox hw-mutation-type-{{{type|Unknown}}}" style="--hw-mutation-color: {{{color|#c9a75f}}};">
<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|Unknown}}} mutation</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-mutation-swatch"><span></span><code>{{{color|#c9a75f}}}</code></div>
<div class="hw-mutation-swatch"><span></span><code>{{{color source|{{{color|#c9a75f}}}}}}</code></div>
<div class="hw-infobox-heading">Mutation Properties</div>
<div class="hw-infobox-heading">Mutation Properties</div>
<div class="hw-infobox-row"><div class="hw-infobox-label">Value Multiplier</div><div class="hw-infobox-value">×{{{multiplier|—}}}</div></div>
<div class="hw-infobox-row"><div class="hw-infobox-label">Value Multiplier</div><div class="hw-infobox-value">×{{{multiplier|—}}}</div></div>
<div class="hw-infobox-row"><div class="hw-infobox-label">Chance</div><div class="hw-infobox-value">{{{chance|—}}}</div></div>
<div class="hw-infobox-row"><div class="hw-infobox-label">Priority</div><div class="hw-infobox-value">{{{priority|—}}}</div></div>
<div class="hw-infobox-row"><div class="hw-infobox-label">Priority</div><div class="hw-infobox-value">{{{priority|—}}}</div></div>
<div class="hw-infobox-row"><div class="hw-infobox-label">Appears Normally</div><div class="hw-infobox-value">{{{appears normally|Yes}}}</div></div>
<div class="hw-infobox-heading">Appearance</div><div class="hw-infobox-blurb">{{{appearance|No visual effect documented.}}}</div>
<div class="hw-infobox-heading">Appearance</div><div class="hw-infobox-blurb">{{{appearance|No visual effect documented.}}}</div>
</div>
</div>
Line 38: Line 35:
|Type=String
|Type=String
|Color=String
|Color=String
|ColorSource=String
|Multiplier=Float
|Multiplier=Float
|Weight=Integer
|Chance=String
|Priority=Integer
|Priority=Integer
|AppearsNormally=Boolean
|Appearance=Text
|Appearance=Text
|Description=Text
|Description=Text
|OrderIndex=Integer
|OrderIndex=Integer
}}
}}
This template stores and displays a standard mutation record. Use {{Mutation profile}} for age mutations and modifiers that must remain outside the standard index.
This template stores and displays one mutation record. Mutation weight and weight-derived chance are no longer part of the data model.
 
== Usage ==
<pre>
{{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
}}
</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>

Latest revision as of 22:04, 13 September 2026

This template defines the table "Mutations". View table. This template stores and displays one mutation record. Mutation weight and weight-derived chance are no longer part of the data model.