Template:Item icon/doc
From Project: Gorgon Wiki
< Template:Item icon
Revision as of 14:31, 3 April 2021 by Extractum11 (talk | contribs) (Extractum11 moved page Template:Item icon/Explanation to Template:Item icon/doc: To use {{Documentation}})
Description
This accepts an item name as input and returns the in-game icon. Be aware that icons have various sizes, and you can use CSS to easily resize them. 99% of the time, you'll want 32x32. If you do NEED 64x64, remember that some icons are not inherently that big so you'll lose image quality. 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}} {{Item icon|Ice Core}}
Forcing 32x32 size
<span class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</span>
Forcing 64x64 size
<span class="extimage64px">{{Item icon|Ice Core}}</span>