13 Articles
Project Nakagami

Template:ItemIcon: Difference between revisions

No edit summary
(Undo revision 269 by Macyler-Admin (talk))
Tag: Undo
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:ItemIcon|AddSprite|icon={{{icon|}}}|size={{{size|}}}|link={{{link|}}}}}</includeonly><noinclude>
<includeonly>{{#invoke:ItemIcon|AddSprite|icon={{{icon|}}}|size={{{size|}}}|link={{{link|}}}}}</includeonly><noinclude>
Shows an item icon, such as {{#invoke:ItemIcon|AddSprite|icon=apple}} an apple.
Shows an item icon, such as {{#invoke:ItemIcon|AddSprite|icon=minecraft:apple#0}} an apple.


The following parameters are supported (all are optional):
The following parameters are supported (all are optional):
Line 10: Line 10:
|-
|-
| icon
| icon
| The name of the icon to show. Names are defined in [[ItemIconData]]
| The name of the icon to show. Names are defined in [[Module:ItemIconData]]
| NONE
| none
|-
|-
| size
| size
| How large, in pixels, to show the icon
| How large, in pixels, to show the icon
| 16
| 32
|-
|-
| link
| link

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)