<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3APG%2FItem_icon%2Fdoc</id>
	<title>Template:PG/Item icon/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3APG%2FItem_icon%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:PG/Item_icon/doc&amp;action=history"/>
	<updated>2026-04-08T11:01:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Template:PG/Item_icon/doc&amp;diff=129&amp;oldid=prev</id>
		<title>imported&gt;BetaNotus: /* Code Required for other templates */</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:PG/Item_icon/doc&amp;diff=129&amp;oldid=prev"/>
		<updated>2026-02-22T06:14:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Code Required for other templates&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
==Description==&lt;br /&gt;
This template accepts an item name as input and returns the in-game icon. This template is used by both [[Template:Item]] and [[Template:Loot]]. See the Examples section below.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Item icon|&amp;lt;name&amp;gt;|&amp;lt;size selection&amp;gt;}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
; &amp;lt;name&amp;gt;&lt;br /&gt;
: The name of the icon. It must match exactly what is displayed in-game (e.g. &amp;quot;Red Apple&amp;quot;, not &amp;quot;Apple&amp;quot; or &amp;quot;red apple&amp;quot;)&lt;br /&gt;
: If omitted or empty, template returns a blank icon image.&lt;br /&gt;
: If no match is found, template returns an error.&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;size selection&amp;gt;&lt;br /&gt;
: 1 or 32 for 32x32.&lt;br /&gt;
: 2 or 64 for 64x64.&lt;br /&gt;
: If omitted, empty, or anything else, image isn&amp;#039;t resized.&lt;br /&gt;
&lt;br /&gt;
== Examples == &lt;br /&gt;
&lt;br /&gt;
=== Standard Use ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Item icon|Glowy Yellow Crystal}}&lt;br /&gt;
&lt;br /&gt;
{{Item icon|Ice Core}}&lt;br /&gt;
&lt;br /&gt;
{{Item icon}}&lt;br /&gt;
&lt;br /&gt;
{{Item icon|FakeItemReturnsError}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Item icon|Glowy Yellow Crystal}}&lt;br /&gt;
&lt;br /&gt;
{{Item icon|Ice Core}}&lt;br /&gt;
&lt;br /&gt;
{{Item icon}}&lt;br /&gt;
&lt;br /&gt;
{{Item icon|FakeItemReturnsError}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Resizing ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Item icon|Glowy Yellow Crystal}} &amp;lt;!-- default size is 64x64 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Item icon|Ice Core}} &amp;lt;!-- default size is 32x32 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Item icon|Glowy Yellow Crystal|32}}&lt;br /&gt;
&lt;br /&gt;
{{Item icon|Ice Core|64}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Item icon|Glowy Yellow Crystal}} &amp;lt;!-- default size is 64x64 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Item icon|Ice Core}} &amp;lt;!-- default size is 32x32 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Item icon|Glowy Yellow Crystal|32}}&lt;br /&gt;
&lt;br /&gt;
{{Item icon|Ice Core|64}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Alternative Resizing (old method) ===&lt;br /&gt;
You can also manually resize the images if you wish (using the template just wraps the image in this span automatically).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;extimage32px&amp;quot;&amp;gt;{{Item icon|Salt}}&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;extimage64px&amp;quot;&amp;gt;{{Item icon|Salt}}&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;extimage32px&amp;quot;&amp;gt;{{Item icon|Salt}}&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;extimage64px&amp;quot;&amp;gt;{{Item icon|Salt}}&amp;lt;/span&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Sometimes items appear in-game that share the same displayed name but have different internal names. Often future patches rename one of them to prevent conflicts, but a few persist. This wiki resolves the issue by renaming the less-likely to be searched for item.&lt;br /&gt;
&lt;br /&gt;
One example is {{Item|Daisy}} and {{Item|Daisy (Lute)}}. Both are called just &amp;quot;Daisy&amp;quot; in-game, but the Lute has an InternalName (found in the items json) of &amp;quot;Daisy&amp;quot; and the flower has an InternalName of &amp;quot;Flower5&amp;quot;.&lt;br /&gt;
==== Icon Codes for Items Sharing a Name ====&lt;br /&gt;
&amp;lt;pre&amp;gt;		| Daisy = 5283&lt;br /&gt;
		| Daisy (Lute) = 5380&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Code Required for other templates ====&lt;br /&gt;
These two lines are required for [[Template:NPC training row]], [[Template:NPC training unlock row]], and [[Template:Recipe]] to work properly. They must also be placed alongside other &amp;quot;s&amp;quot; and &amp;quot;u&amp;quot; items.&lt;br /&gt;
&amp;lt;pre&amp;gt;		| scroll = 4003&lt;br /&gt;
		| Unlock = 109&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:Template_documentation]]&lt;/div&gt;</summary>
		<author><name>imported&gt;BetaNotus</name></author>
	</entry>
</feed>