From Brotato Wiki

No edit summary
(Docs: minor cleanup of examples (restructured into a table))
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;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>
== Usage ==
 
==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.
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.
<pre>{{Iconbox|Acid|size=30px|caption=caption|amount=1}}
</pre>
==Example==
<pre>{{Iconbox|Acid|size=30px|caption=caption}}</pre>
results in...
{{Iconbox|Acid|size=30px|caption=caption}}
==Example==
<pre>{{Iconbox|Acid|amount=1|caption=Acid}}</pre>
results in...
{{Iconbox|Acid|amount=1|caption=Acid}}asd
==Example==
<pre>{{Iconbox|Acid}}</pre>
results in...
{{Iconbox|Acid}} ASD SADASD SA
==Example==
<pre>{{Iconbox|Acid|caption=no}}</pre>
results in...
{{Iconbox|Dynamite|top=Top name}}
<pre>{{Iconbox|Acid|rarity=1|caption=no}}</pre>
results in...


{{Iconbox|Acid|rarity=1|caption=no}}
<pre>{{Iconbox|Acid|size=30px|caption=caption|amount=1|rarity=1}}</pre>


<pre>{{Iconbox|Acid|rarity=-1|amount=1|caption=no}}</pre>
==Examples==
results in...
{| class="wikitable"
|+
!Code
!Preview
|-
|<code><nowiki>{{Iconbox|Acid}}</nowiki></code>
|{{Iconbox|Acid}}
|-
|<code><nowiki>{{Iconbox|Acid|amount=1}}</nowiki></code>
|{{Iconbox|Acid|amount=1}}
|-
|<code><nowiki>{{Iconbox|Acid|caption=Foobar}}</nowiki></code>
|{{Iconbox|Acid|caption=Foobar}}
|-
|<code><nowiki>{{Iconbox|Acid|caption=no}}</nowiki></code>
|{{Iconbox|Acid|caption=no}}
|-
|<code><nowiki>{{Iconbox|Acid|top=Foobar}}</nowiki></code>
|{{Iconbox|Acid|top=Foobar}}
|-
|<code><nowiki>{{Iconbox|Acid|rarity=-1}}</nowiki></code>
<br><code><nowiki>{{Iconbox|Acid|rarity=1}}</nowiki></code>
<br><code><nowiki>{{Iconbox|Acid|rarity=2}}</nowiki></code>
<br><code><nowiki>{{Iconbox|Acid|rarity=3}}</nowiki></code>
<br><code><nowiki>{{Iconbox|Acid|rarity=4}}</nowiki></code>
<br><code><nowiki>{{Iconbox|Acid|rarity=5}}</nowiki></code>
|{{Iconbox|Acid|rarity=-1}} {{Iconbox|Acid|rarity=1}} {{Iconbox|Acid|rarity=2}} {{Iconbox|Acid|rarity=3}} {{Iconbox|Acid|rarity=4}} {{Iconbox|Acid|rarity=5}}
|-
|<code><nowiki>{{Iconbox|Acid|size=30px}}</nowiki></code>
|{{Iconbox|Acid|size=30px}}
|}


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


<pre>{{Iconbox|Acid|rarity=0}}</pre>
results in...


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




</noinclude>
</noinclude>

Revision as of 02:20, 4 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}}