From Brotato Wiki

No edit summary
(Add support for item tags, and display in columns)
Line 14: Line 14:
<div class="line"></div>
<div class="line"></div>
<div class="stats-container">
<div class="stats-container">
<div style="font-weight:bold; color:rgb(234,226,176);">Stats</div>
        <!-- Stats -->
{{Item Data|{{{name}}}|stats}}
        <div style="padding: 10px 0; clear: both;">
<div style="font-weight:bold; color:rgb(234,226,176);">Price</div>
<div style="float: left; width: 20%;font-weight:bold; color:rgb(234,226,176);">Stats</div>
{{Item Data|{{{name}}}|price}}{{#if:{{Item Data|{{{name}}}|limit}}|<div style="font-weight:bold; color:rgb(234,226,176);">Limit:</div>{{Item Data|{{{name}}}|limit}}|}}{{#if:{{Item Data|{{{name}}}|unlockedby}}|<div style="font-weight:bold; color:rgb(234,226,176);">Unlocked by:</div>{{Item Data|{{{name}}}|unlockedby}}|}}
<div style="float: left; width: 80%;>{{Item Data|{{{name}}}|stats}}</div>
</div>
        </div>
        <!-- Price -->
        <div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 20%;font-weight:bold; color:rgb(234,226,176);">Price</div>
<div>{{Item Data|{{{name}}}|price}}{{#if:{{Item Data|{{{name}}}|limit}}|<div style="font-weight:bold; color:rgb(234,226,176);">Limit:</div>{{Item Data|{{{name}}}|limit}}|}}{{#if:{{Item Data|{{{name}}}|unlockedby}}|<div style="font-weight:bold; color:rgb(234,226,176);">Unlocked by:</div>{{Item Data|{{{name}}}|unlockedby}}|}}</div>
</div>
        <!-- Item Tags -->
        <div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 20%;font-weight:bold; color:rgb(234,226,176);">[[Items#Item_Tags|Tags]]</div>
<div>{{Item Data|{{{name}}}|tags}}</div>
</div>
</div>
</div></includeonly>
</div></includeonly>
<noinclude>
<noinclude>

Revision as of 00:33, 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=Acid
}}

results in...

Acid
Acid
Item
Tier 2
Stats
+8 Max HP
-2 % Dodge
-2 Knockback
Price
65