20,932
edits
Changes
m
→Icon Codes for Items Sharing a Name: Added a note about two lines required for other tempates to work.
__NOTOC__
==Description==
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.
==Syntax==
<span class="extimage64px">{{Item icon|Salt}}</span>
=== Notes ===
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.
One example is {{Item|Daisy}} and {{Item|Daisy (Lute)}}. Both are called just "Daisy" in-game, but the Lute has an InternalName (found in the items json) of "Daisy" and the flower has an InternalName of "Flower5".
==== Icon Codes for Items Sharing a Name ====
<pre> | Daisy = 5283
| Daisy (Lute) = 5380</pre>
==== Code Required for other templates ====
These two lines are required for [[Template:NPC training row]], [[Template:NPC training unlock row]], and [[Template:Recipe]] to work properly.
<pre> | scroll = 4003
| Unlock = 109</pre>
[[Category:Template_documentation]]