From Brotato Wiki

(Docs: minor cleanup of examples (restructured into a table))
(Add comments to break up the structure for improved readability when editing)
Line 1: Line 1:
<includeonly><div class="iconbox" style="display:inline-block;width:{{{size|80px}}}!important;"><div class="rarity{{{rarity|{{Rarity|{{{1}}}}}}}} rounded relative">[[File:{{{image|{{{1}}}}}}.png|{{{size|60px}}}|link={{{1}}}|{{{1}}}]]{{#if:{{{amount|}}}|<span class="iconamount">{{{amount}}}</span>|}}</div>{{#if:{{{top|}}}|{{{top}}}<br>|}}{{#ifeq: {{{caption}}} | no | |{{#if:{{{caption|}}}|[[{{{1}}}|<strong>{{{caption}}}</strong>]]|[[{{{1}}}|<strong>{{{1}}}</strong>]]}}}}</div></includeonly><noinclude>
<includeonly><!--
--><div class="iconbox" style="display:inline-block;"><!--
--><div class="rarity{{{rarity|{{Rarity|{{{1}}}}}}}} rounded relative"><!--
-->[[File:{{{image|{{{1}}}}}}.png|{{{size|60px}}}|link={{{1}}}|{{{1}}}]]<!--
-->{{#if:{{{amount|}}}|<span class="iconamount">{{{amount}}}</span>|}}<!--
--></div><!--
-->{{#if:{{{top|}}}|{{{top}}}<br>|}}<!--
-->{{#ifeq: {{{caption}}} | no | |<!--
-->{{#if:{{{caption|}}}|[[{{{1}}}|<strong>{{{caption}}}</strong>]]|[[{{{1}}}|<strong>{{{1}}}</strong>]]}}<!--
-->}}<!--
--></div><!--
--></includeonly>
 
<noinclude>


==Usage==
==Usage==

Revision as of 20:43, 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.

{{Iconbox|Acid|size=30px|caption=caption|amount=1|rarity=1}}

Examples

Code Preview
{{Iconbox|Acid}}


{{Iconbox|Acid|amount=1}}


{{Iconbox|Acid|caption=Foobar}}


{{Iconbox|Acid|caption=no}}
Acid


{{Iconbox|Acid|top=Foobar}}
Acid
Foobar
Acid


{{Iconbox|Acid|rarity=-1}}


{{Iconbox|Acid|rarity=1}}
{{Iconbox|Acid|rarity=2}}
{{Iconbox|Acid|rarity=3}}
{{Iconbox|Acid|rarity=4}}
{{Iconbox|Acid|rarity=5}}


{{Iconbox|Acid|size=30px}}