Template:Item icon: Difference between revisions
(Created page with "<includeonly>[[File:{{#ifexist: File:{{{1}}} icon.png|{{{1}}} icon.png|{{#ifexist: File:{{{1}}} icon.gif|{{{1}}} icon.gif|missing icon.png}}}}|{{#switch:{{{2}}}|big=50|huge=100|#default=32}}px|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude> == Description == <pre>{{item icon|<item name>}}</pre> Displays a link to the item and adds an icon in front of it. === Parameters === ;1 ''(unnamed parameter)'' : Item name. ;2 ''(unnamed parameter)'' : Icon size. Options: "bi...") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[File:{{#ifexist: File:{{{1}}} icon.png|{{{1}}} icon.png|{{#ifexist: File:{{{1}}} icon.gif|{{{1}}} icon.gif|missing icon.png}}}}|{{#switch:{{{ | <includeonly>[[File:{{#ifexist: File:{{{1}}} icon.png|{{{1}}} icon.png|{{#ifexist: File:{{{1}}} icon.gif|{{{1}}} icon.gif|{{#ifexist: File:{{{2}}} icon.gif|{{{2}}} icon.gif|missing icon.png}}}}}}|{{#switch:{{{3}}}|big=50|huge=100|#default=32}}px|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude> | ||
== Description == | == Description == | ||
<pre>{{item icon|<item name>}}</pre> | <pre>{{item icon|<item name>}}</pre> | ||
Line 9: | Line 9: | ||
: Item name. | : Item name. | ||
;2 ''(unnamed parameter)'' | ;2 ''(unnamed parameter)'' | ||
: Optional. Monster item type. (e.g. bone, green slime small, green slime chunk, etc.) | |||
;3 ''(unnamed parameter)'' | |||
: Icon size. Options: "big" (48px), "huge" (100px), or, blank (32px) - which is the default size. | : Icon size. Options: "big" (48px), "huge" (100px), or, blank (32px) - which is the default size. | ||
== Examples == | == Examples == | ||
* {{item icon|Crude Copper}} is produced from <code><nowiki>{{item icon|Crude Copper}}</nowiki></code> | * {{item icon|Crude Copper}} is produced from <code><nowiki>{{item icon|Crude Copper}}</nowiki></code> | ||
* {{item icon|Crude Copper||huge}} is produced from <code><nowiki>{{item icon|Crude Copper||huge}}}</nowiki></code> | |||
* {{item icon|Skeleton Leg|bone}} is produced from <code><nowiki>{{item icon|Skeleton Leg|bone}}</nowiki></code> | |||
</noinclude> | </noinclude> |
Revision as of 23:02, 30 June 2024
Description
{{item icon|<item name>}}
Displays a link to the item and adds an icon in front of it.
Parameters
- 1 (unnamed parameter)
- Item name.
- 2 (unnamed parameter)
- Optional. Monster item type. (e.g. bone, green slime small, green slime chunk, etc.)
- 3 (unnamed parameter)
- Icon size. Options: "big" (48px), "huge" (100px), or, blank (32px) - which is the default size.
Examples
- Crude Copper is produced from
{{item icon|Crude Copper}}
- Crude Copper is produced from
{{item icon|Crude Copper||huge}}}
- Skeleton Leg is produced from
{{item icon|Skeleton Leg|bone}}