From Brotato Wiki
(Add support for item tags, and display in columns) |
(Fix breakage in the "Unlocked by" section + Use Potato as the example (as it has more stats to show the full template)) |
||
Line 14: | Line 14: | ||
<div class="line"></div> | <div class="line"></div> | ||
<div class="stats-container"> | <div class="stats-container"> | ||
<!-- Stats --> | |||
<div style="padding: 10px 0; clear: both;"> | |||
<div style="float: left; width: | <div style="float: left; width: 30%;font-weight:bold; color:rgb(234,226,176);">Stats</div> | ||
<div style="float: left; width: | <div style="float: left; width: 70%;>{{Item Data|{{{name}}}|stats}}</div> | ||
</div> | </div> | ||
<!-- Price --> | |||
<div style="padding: 10px 0; clear: both;"> | |||
<div style="float: left; width: | <div style="float: left; width: 30%;font-weight:bold; color:rgb(234,226,176);">Price</div> | ||
<div>{{Item Data|{{{name}}}|tags}}</div> | <div>{{Item Data|{{{name}}}|price}}</div> | ||
</div> | |||
<!-- Limit --> | |||
{{#if:{{Item Data|{{{name}}}|limit}}| | |||
<div style="padding: 10px 0; clear: both;"> | |||
<div style="float: left; width: 30%;font-weight:bold; color:rgb(234,226,176);">Limit</div> | |||
<div>{{Item Data|{{{name}}}|limit}}</div> | |||
</div><!-- | |||
-->|}} | |||
<!-- Unlocked By --> | |||
{{#if:{{Item Data|{{{name}}}|unlockedby}}| | |||
<div style="padding: 10px 0; clear: both;"> | |||
<div style="float: left; width: 30%;font-weight:bold; color:rgb(234,226,176);">Unlocked by</div> | |||
<div style="float: left; width: 70%;">{{Item Data|{{{name}}}|unlockedby}}</div> | |||
</div><!-- | |||
-->|}} | |||
<!-- Item Tags --> | |||
<div style="padding: 10px 0; clear: both;"> | |||
<div style="float: left; width: 30%;font-weight:bold; color:rgb(234,226,176);">[[Items#Item_Tags|Tags]]</div> | |||
<div style="float: left; width: 70%;">{{Item Data|{{{name}}}|tags}}</div> | |||
</div> | </div> | ||
</div> | </div> | ||
Line 43: | Line 57: | ||
<pre> | <pre> | ||
{{Infobox Item | {{Infobox Item | ||
|name= | |name=Potato | ||
}}</pre> | }}</pre> | ||
results in... | results in... | ||
{{Infobox Item | {{Infobox Item | ||
|name= | |name=Potato | ||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 02:16, 7 November 2022
Usage
This template can \\n //n 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 Item |name=Acid }}
Example
{{Infobox Item |name=Potato }}
results in...
Stats
+3 Max HP
+2 HP Regeneration
+1 % Life Steal
+5 % Damage
+5 % Attack Speed
+3 % Speed
+3 % Dodge
+1 Armor
+5 Luck
+2 HP Regeneration
+1 % Life Steal
+5 % Damage
+5 % Attack Speed
+3 % Speed
+3 % Dodge
+1 Armor
+5 Luck
Price
95
Unlocked by
Win a run with Well Rounded