1,690
edits
Changes
Created page with "__NOTOC__ ==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. Se..."
__NOTOC__
==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==
<pre>
{{Item icon|<name>}}
</pre>
== 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 ===
<pre>{{Item icon|Glowy Yellow Crystal}}</pre>
{{Item icon|Glowy Yellow Crystal}}
=== Forcing 32x32 size ===
<pre><div class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</div></pre>
<div class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</div>
=== Forcing 64x64 size ===
<pre><div class="extimage64px">{{Item icon|Glowy Yellow Crystal}}</div></pre>
<div class="extimage64px">{{Item icon|Glowy Yellow Crystal}}</div>
==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==
<pre>
{{Item icon|<name>}}
</pre>
== 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 ===
<pre>{{Item icon|Glowy Yellow Crystal}}</pre>
{{Item icon|Glowy Yellow Crystal}}
=== Forcing 32x32 size ===
<pre><div class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</div></pre>
<div class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</div>
=== Forcing 64x64 size ===
<pre><div class="extimage64px">{{Item icon|Glowy Yellow Crystal}}</div></pre>
<div class="extimage64px">{{Item icon|Glowy Yellow Crystal}}</div>