From Brotato Wiki
(Revert test edit. It worked as presumed, but I don't know what other unforeseen effects this might cause) Tag: Manual revert |
(Add rarity "0" (which is just a fallback for when no valid rarity was provided)) |
||
Line 52: | Line 52: | ||
|{{Iconbox|Acid|top=Foobar}} | |{{Iconbox|Acid|top=Foobar}} | ||
|- | |- | ||
|<code><nowiki>{{Iconbox|Acid|rarity=-1}}</nowiki></code> | |<code><nowiki>{{Iconbox|Acid|rarity=-1}}</nowiki></code> (none) | ||
<br><code><nowiki>{{Iconbox|Acid|rarity=1}}</nowiki></code> | <code><nowiki>{{Iconbox|Acid|rarity=0}}</nowiki></code> (empty) | ||
<br><code><nowiki>{{Iconbox|Acid|rarity=2}}</nowiki></code> | <br><code><nowiki>{{Iconbox|Acid|rarity=1}}</nowiki></code> (common) | ||
<br><code><nowiki>{{Iconbox|Acid|rarity=3}}</nowiki></code> | <br><code><nowiki>{{Iconbox|Acid|rarity=2}}</nowiki></code> (rare) | ||
<br><code><nowiki>{{Iconbox|Acid|rarity=4}}</nowiki></code> | <br><code><nowiki>{{Iconbox|Acid|rarity=3}}</nowiki></code> (epic) | ||
<br><code><nowiki>{{Iconbox|Acid|rarity=5}}</nowiki></code> | <br><code><nowiki>{{Iconbox|Acid|rarity=4}}</nowiki></code> (legendary) | ||
|{{Iconbox|Acid|rarity=-1}} {{Iconbox|Acid|rarity=1}} {{Iconbox|Acid|rarity=2}} {{Iconbox|Acid|rarity=3}} {{Iconbox|Acid|rarity=4}} {{Iconbox|Acid|rarity=5}} | <br><code><nowiki>{{Iconbox|Acid|rarity=5}}</nowiki></code> (unused) | ||
|{{Iconbox|Acid|rarity=-1}} {{Iconbox|Acid|rarity=0}} {{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> | |<code><nowiki>{{Iconbox|Acid|size=30px}}</nowiki></code> |
Revision as of 21:46, 9 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}} (none)
|
|
{{Iconbox|Acid|size=30px}}
|
|
{{Iconbox|Acid|size=30px|nobr=1}}
|
|
{{Iconbox|Acid|size=30px|nobr=1|top=Foobar}}
|
Foobar Acid
|
Other Options
The maxwidth
option lets you restrain text that would otherwise be very long:
{{Iconbox|Acid|size=60px|top=This text is quite long but maxwidth restrains it|maxwidth=120px}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name 1 | Name of the character/item/weapon | String | required |
Rarity | rarity | Options: -1, 1, 2, 3, 4 | Number | suggested |
Size | size | Size with px, eg. "30px" | String | suggested |
Amount | amount | Shows a number on the bottom right corner | Number | optional |
Image Override | image | If not set, uses the image that matches the name | String | suggested |
Caption Override | caption | If not set, uses the specified name. Always links to the name. Use "no" to hide the caption | String | suggested |
Top Text | top | Shown above the caption | Unknown | suggested |
Prevent Line Breaks? | nobr | If enabled, removes the line break, putting the icon and text on a single line. Use 1 to enable | Boolean | suggested |
Max Width | maxwidth | If set, constrains the box to the specified width. Accepts any valid CSS width (60px, 60%). If not set, uses max-width:initial.
| String | suggested |