From Brotato Wiki

(INITIAL \o/)
 
(support for leave the image field blank (added for Beta patch notes))
 
Line 3: Line 3:
ICON
ICON
--><span class="rarity{{{rarity|{{{2|}}}}}} rounded relative"><!--
--><span class="rarity{{{rarity|{{{2|}}}}}} rounded relative"><!--
-->[[File:{{{image|{{{3|}}}}}}|30px]]<!--
-->{{#if: {{{image|{{{3|}}}}}}|[[File:{{{image|{{{3|}}}}}}|30px]]|[[File:{{{name|{{{1|}}}}}}.png|30px]]}}<!--
--></span><!--
--></span><!--
CAPTION
CAPTION
Line 16: Line 16:
== Examples ==
== Examples ==


=== Standard ===


Code: <code><nowiki>{{MiniModIconbox|Godhead|2|Mod-Isaac-godhead_icon.png}}</nowiki></code>
Code: <code><nowiki>{{MiniModIconbox|Godhead|2|Mod-Isaac-godhead_icon.png}}</nowiki></code>


Result: {{MiniModIconbox|Godhead|2|Mod-Isaac-godhead_icon.png}}
Result: {{MiniModIconbox|Godhead|2|Mod-Isaac-godhead_icon.png}}
=== Empty Image ===
You can leave the image field blank if the image matches the name:
Code: <code><nowiki>{{MiniModIconbox|Anvil|4}}</nowiki></code>
Result: {{MiniModIconbox|Anvil|4}}


<templatedata>
<templatedata>

Latest revision as of 02:27, 13 February 2023


Edit of Template:MiniIconbox that lets you set a custom image and no link. Fixed size (30px).

Intended for use on mod pages, which won't have item links.

Examples

Standard

Code: {{MiniModIconbox|Godhead|2|Mod-Isaac-godhead_icon.png}}

Result: Mod-Isaac-godhead icon.png Godhead

Empty Image

You can leave the image field blank if the image matches the name:

Code: {{MiniModIconbox|Anvil|4}}

Result: Anvil.png Anvil

No description.

Template parameters

ParameterDescriptionTypeStatus
Namename 1

Name of the item or weapon

Example
Acid
Stringsuggested
Rarityrarity 2

Rarity (1, 2, 3, 4, or -1)

Example
2
Stringsuggested
Imageimage 3

Image filename, including extension

Example
MyImage.png
Stringsuggested