From Brotato Wiki
(Revert using a table for the examples, as it breaks the layout of the infobox) |
(Add options for "unlockedby" and "unlocks") |
||
Line 18: | Line 18: | ||
<div style="font-weight:bold; color:rgb(234,226,176);">Stats</div> | <div style="font-weight:bold; color:rgb(234,226,176);">Stats</div> | ||
{{{stats}}} | {{{stats}}} | ||
</div> | |||
|}} | |||
{{#if:{{{unlockedby|}}}| | |||
<div class="line"></div> | |||
<div class="stats-container"> | |||
<div style="font-weight:bold; color:rgb(234,226,176);">Unlocked By</div> | |||
{{{unlockedby}}} | |||
</div> | |||
|}} | |||
{{#if:{{{unlocks|}}}| | |||
<div class="line"></div> | |||
<div class="stats-container"> | |||
<div style="font-weight:bold; color:rgb(234,226,176);">Unlocks</div> | |||
{{MiscIcon|{{{unlocks}}}}} | |||
</div> | </div> | ||
|}} | |}} | ||
Line 47: | Line 61: | ||
{{Infobox Character | {{Infobox Character | ||
|name=Well Rounded | |name=Well Rounded | ||
|stats={{Character Data|Well Rounded|stats}} | |stats= {{Character Data|Well Rounded|stats}} | ||
|unlockedby= {{Character Data|Well Rounded|unlockedby}} | |||
|unlocks= {{Character Data|Well Rounded|unlocks}} | |||
}} | }} | ||
</pre> | </pre> | ||
Line 55: | Line 71: | ||
{{Infobox Character | {{Infobox Character | ||
|name=Well Rounded | |name=Well Rounded | ||
|stats={{Character Data|Well Rounded|stats}} | |stats= {{Character Data|Well Rounded|stats}} | ||
|unlockedby= {{Character Data|Well Rounded|unlockedby}} | |||
|unlocks= {{Character Data|Well Rounded|unlocks}} | |||
}} | }} | ||
Revision as of 19:04, 4 November 2022
Usage
This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.
{{Infobox Character |name=Lucky |stats='''+8''' Max HP<br> '''+4%'''Dodge<br> }}
Results in:
With Template:Character_Data (recommended):
{{Infobox Character |name=Well Rounded |stats= {{Character Data|Well Rounded|stats}} |unlockedby= {{Character Data|Well Rounded|unlockedby}} |unlocks= {{Character Data|Well Rounded|unlocks}} }}
Results in:
Stats
+5 Max Hp
+5% Speed
+8 Harvesting
Unlocked By
Unlocked by default
Unlocks