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. | ||
{{Iconbox|Acid| | <pre>{{Iconbox|Acid|size=30px|caption=caption|amount=1|rarity=1}}</pre> | ||
< | ==Examples== | ||
{| 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}} | |||
|} | |||
</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}}
|
|
{{Iconbox|Acid|top=Foobar}}
|
|
{{Iconbox|Acid|rarity=-1}}
|
|
{{Iconbox|Acid|size=30px}}
|