From Brotato Wiki

No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div class="iconbox" style="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>
<includeonly>
<div class="iconbox" style="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>
<noinclude>
== Usage ==
== Usage ==
Line 18: Line 20:
results in...
results in...


{{Iconbox|Acid|amount=1|caption=Acid}}
{{Iconbox|Acid|amount=1|caption=Acid}}asd


==Example==
==Example==

Revision as of 15:49, 5 October 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}}

Example

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

results in...



Example

{{Iconbox|Acid|amount=1|caption=Acid}}

results in...


asd

Example

{{Iconbox|Acid}}

results in...



Example

{{Iconbox|Acid|caption=no}}

results in...


Acid


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

results in...


Acid


{{Iconbox|Acid|rarity=-1|amount=1|caption=no}}

results in...


Acid1


{{Iconbox|Acid|rarity=0}}

results in...