Template:Item icon/doc
Jump to navigation
Jump to search
Description
This accepts an item name as input and returns the in-game icon. Be aware that icons have various sizes, you should use CSS to easily resize them. See the Examples section below.
Syntax
{{Item icon|<name>}}
Parameters
- <name>
- The name of the item. It must match exactly what is displayed in-game (e.g. "Red Apple", not "Apple" or "red apple")
Examples
Basic Use
{{Item icon|Glowy Yellow Crystal}}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_5702.png | http://cdn.projectgorgon.com/v456/icons/icon_.png | Error: Item not found }}
Forcing 32x32 size
<div class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</div>
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_5702.png
| http://cdn.projectgorgon.com/v456/icons/icon_.png
| Error: Item not found }}
Forcing 64x64 size
<div class="extimage64px">{{Item icon|Glowy Yellow Crystal}}</div>
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_5702.png
| http://cdn.projectgorgon.com/v456/icons/icon_.png
| Error: Item not found }}