From Brotato Wiki

(Add options for "unlockedby" and "unlocks")
(Update "unlocks" section to use IconBox (following a recent edit that lets you remove the line breaks) -- this make Template:MiscIcon redundant now, as it was only created for this template)
Line 31: Line 31:
<div class="stats-container">
<div class="stats-container">
<div style="font-weight:bold; color:rgb(234,226,176);">Unlocks</div>
<div style="font-weight:bold; color:rgb(234,226,176);">Unlocks</div>
{{MiscIcon|{{{unlocks}}}}}
<!-- Item or weapon -->
{{#switch: {{lc:{{{unlocktype}}}}}
| item    = {{Iconbox|{{{unlocks}}}|rarity={{Item Data|{{{unlocks}}}|rarity}}|nobr=1|size=30px}}
| weapon  = {{Iconbox|{{{unlocks}}}|rarity={{Weapon Data|{{{unlocks}}}|rarity}}|nobr=1|size=30px}}
| #default = Error: "unlocktype" was not specified, or was not either "weapon" or "item" (provided: "{{{unlocktype}}}")<!--
-->}}
</div>
</div>
|}}
|}}
Line 64: Line 69:
|unlockedby= {{Character Data|Well Rounded|unlockedby}}
|unlockedby= {{Character Data|Well Rounded|unlockedby}}
|unlocks= {{Character Data|Well Rounded|unlocks}}
|unlocks= {{Character Data|Well Rounded|unlocks}}
|unlocktype= {{Character Data|Well Rounded|unlocktype}}
}}
}}
</pre>
</pre>
Line 74: Line 80:
|unlockedby= {{Character Data|Well Rounded|unlockedby}}
|unlockedby= {{Character Data|Well Rounded|unlockedby}}
|unlocks= {{Character Data|Well Rounded|unlocks}}
|unlocks= {{Character Data|Well Rounded|unlocks}}
|unlocktype= {{Character Data|Well Rounded|unlocktype}}
}}
}}



Revision as of 21:39, 6 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:


Lucky
Lucky
Character
Stats

+8 Max HP
+4%Dodge




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}}
|unlocktype= {{Character Data|Well Rounded|unlocktype}}
}}

Results in:


Well Rounded
Well Rounded
Character
Stats

+5 Max Hp
+5% Speed
+8 Harvesting

Unlocked By

Unlocked by default

Unlocks
Potato
  Potato