13 Articles
Project Nakagami

Template:ItemIcon: Difference between revisions

No edit summary
(Undo revision 269 by Macyler-Admin (talk))
Tag: Undo
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="item-icon" style="height:{{{size|16}}}px; width:{{{size|16}}}px;"></span>
<includeonly>{{#invoke:ItemIcon|AddSprite|icon={{{icon|}}}|size={{{size|}}}|link={{{link|}}}}}</includeonly><noinclude>
Shows an item icon, such as {{#invoke:ItemIcon|AddSprite|icon=minecraft:apple#0}} an apple.
 
The following parameters are supported (all are optional):
{| class="wikitable"
|-
! scope="col"| Parameter
! scope="col"| Use
! scope="col"| Default
|-
| icon
| The name of the icon to show. Names are defined in [[Module:ItemIconData]]
| none
|-
| size
| How large, in pixels, to show the icon
| 32
|-
| link
| An internal link (like <code>Fluxduct</code>), or an external link
| (none)
|}
 
</noinclude>

Latest revision as of 05:22, 16 August 2024

Shows an item icon, such as an apple.

The following parameters are supported (all are optional):

Parameter Use Default
icon The name of the icon to show. Names are defined in Module:ItemIconData none
size How large, in pixels, to show the icon 32
link An internal link (like Fluxduct), or an external link (none)