Template:ItemIcon: Difference between revisions
From Project Nakagami
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{#invoke:ItemIcon|AddSprite|icon={{{icon|}}}|size={{{size|}}}|link={{{link|}}}}} | <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. | |||
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 [[ItemIconData]] | |||
| NONE | |||
|- | |||
| size | |||
| How large, in pixels, to show the icon | |||
| 16 | |||
|- | |||
| link | |||
| An internal link (like <code>Fluxduct</code>), or an external link | |||
| (none) | |||
|} | |||
</noinclude> | |||
Revision as of 05:20, 21 January 2022
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 ItemIconData | NONE |
| size | How large, in pixels, to show the icon | 16 |
| link | An internal link (like Fluxduct), or an external link
|
(none) |