Difference between revisions of "Template:Item icon"
From Project: Gorgon Wiki
m |
(v427 update) |
||
| Line 1: | Line 1: | ||
| − | <noinclude><!-- Updated on | + | <noinclude><!-- Updated on Sat May 10 2025 23:51:14 GMT-0600 (Mountain Daylight Time) using FoxnEagle's auto-wiki-generator --> |
</noinclude><includeonly>{{ #switch: {{{2}}} | 1 | 32 = <span class="extimage32px">| 2 | 64 = <span class="extimage64px"> | }}{{ #if: {{{1|}}} | | </noinclude><includeonly>{{ #switch: {{{2}}} | 1 | 32 = <span class="extimage32px">| 2 | 64 = <span class="extimage64px"> | }}{{ #if: {{{1|}}} | | ||
| − | {{ #replace: http://cdn.projectgorgon.com/ | + | {{ #replace: http://cdn.projectgorgon.com/v427/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }} |
| a = {{ #switch: {{{1}}} | | a = {{ #switch: {{{1}}} | ||
| Aberration Skull = 5367 | | Aberration Skull = 5367 | ||
| Line 398: | Line 398: | ||
| Animal Skull = 5773 | | Animal Skull = 5773 | ||
| Anti-Booping Cream = 6400 | | Anti-Booping Cream = 6400 | ||
| + | | Anti-Infernal Earrings = 17004 | ||
| + | | Anti-Infernal Mandible Dye = 5891 | ||
| + | | Anti-Infernal Navel Ring = 17005 | ||
| + | | Anti-Infernal Nose Ring = 17002 | ||
| + | | Anti-Infernal Tail Ring = 17003 | ||
| + | | Anti-Infernal Wing Rings = 17004 | ||
| Anti-Invincibility Poison = 5163 | | Anti-Invincibility Poison = 5163 | ||
| Antimagic Sand = 6594 | | Antimagic Sand = 6594 | ||
| Line 1,082: | Line 1,088: | ||
| Beginner's Ungulate Genetics Analyzer = 6343 | | Beginner's Ungulate Genetics Analyzer = 6343 | ||
| Beginner's Weather Wand = 18022 | | Beginner's Weather Wand = 18022 | ||
| + | | Behemoth Brain = 6823 | ||
| + | | Behemoth Ulnar Spike = 6818 | ||
| Beige Dye = 6012 | | Beige Dye = 6012 | ||
| Bellema's Old Pledge Ring = 17002 | | Bellema's Old Pledge Ring = 17002 | ||
| Line 1,562: | Line 1,570: | ||
| Cavefish Sushi Roll = 5675 | | Cavefish Sushi Roll = 5675 | ||
| Cavefish = 5442 | | Cavefish = 5442 | ||
| + | | Cedar Butterfly Harness = 20001 | ||
| Cedar Dowels = 5277 | | Cedar Dowels = 5277 | ||
| Cedar Lattice = 6342 | | Cedar Lattice = 6342 | ||
| Line 1,579: | Line 1,588: | ||
| Charged Mycelium = 5784 | | Charged Mycelium = 5784 | ||
| Chargeman's Ring = 17002 | | Chargeman's Ring = 17002 | ||
| + | | Charm of the Azure Sky = 17001 | ||
| Charto's Calling Card = 4005 | | Charto's Calling Card = 4005 | ||
| Chartreuse Dye = 6055 | | Chartreuse Dye = 6055 | ||
| Line 2,058: | Line 2,068: | ||
| Crude Wooden Deer Shoes = 5304 | | Crude Wooden Deer Shoes = 5304 | ||
| Crude Woodland Candle = 6377 | | Crude Woodland Candle = 6377 | ||
| + | | Cruder Undershirt = 12105 | ||
| Cruel Club = 21001 | | Cruel Club = 21001 | ||
| Crushing Club = 21001 | | Crushing Club = 21001 | ||
| Line 2,382: | Line 2,393: | ||
| Demonic Roast = 6813 | | Demonic Roast = 6813 | ||
| Demonic Skull = 5352 | | Demonic Skull = 5352 | ||
| + | | Demonic Statement = 6728 | ||
| Demonic Wisp = 6670 | | Demonic Wisp = 6670 | ||
| Deployable Dance Pole = 6577 | | Deployable Dance Pole = 6577 | ||
| Line 3,706: | Line 3,718: | ||
| Herbal Soap = 5992 | | Herbal Soap = 5992 | ||
| Herbed Salmon Steak = 5132 | | Herbed Salmon Steak = 5132 | ||
| + | | Hexacoin = 5070 | ||
| Hexagonal Trendsetter = 17001 | | Hexagonal Trendsetter = 17001 | ||
| Hexameat Soup = 6223 | | Hexameat Soup = 6223 | ||
| Line 3,895: | Line 3,908: | ||
| Industry Textbook (Levels 96-100) = 6399 | | Industry Textbook (Levels 96-100) = 6399 | ||
| Infallible Conch = 5296 | | Infallible Conch = 5296 | ||
| + | | Infernal Animal Brain = 6821 | ||
| Infernal Egg = 6801 | | Infernal Egg = 6801 | ||
| Infernal Meat = 6802 | | Infernal Meat = 6802 | ||
| Line 3,918: | Line 3,932: | ||
| InteriorEntityAppearance = 16001 | | InteriorEntityAppearance = 16001 | ||
| Invasive Ice Fish = 6490 | | Invasive Ice Fish = 6490 | ||
| + | | Invisible Boots = 10110 | ||
| + | | Invisible Gloves = 13112 | ||
| + | | Invisible Hat = 16120 | ||
| + | | Invisible Pants = 11113 | ||
| + | | Invisible Shirt = 12114 | ||
| Invoice for Tal-Saka = 5115 | | Invoice for Tal-Saka = 5115 | ||
| + | | Invulnerable Ring = 17002 | ||
| Iocaine Mushroom = 5008 | | Iocaine Mushroom = 5008 | ||
| Iocaine Powder = 5019 | | Iocaine Powder = 5019 | ||
| Line 3,991: | Line 4,011: | ||
| Juniper Berries = 5725 | | Juniper Berries = 5725 | ||
| Juniper Wine = 5722 | | Juniper Wine = 5722 | ||
| + | | Justiciar Brain = 6823 | ||
| + | | Justiciar Spinal Fluid = 6820 | ||
}} | }} | ||
| k = {{ #switch: {{{1}}} | | k = {{ #switch: {{{1}}} | ||
| Line 4,261: | Line 4,283: | ||
| Lemonade = 5396 | | Lemonade = 5396 | ||
| Lenses of Fear = 16025 | | Lenses of Fear = 16025 | ||
| + | | Lesser Behemoth Brain = 6822 | ||
| + | | Lesser Behemoth Wing = 6817 | ||
| Letter From Ivyn = 4005 | | Letter From Ivyn = 4005 | ||
| Letter from Sir Arif = 4004 | | Letter from Sir Arif = 4004 | ||
| Line 4,465: | Line 4,489: | ||
| Mantis-Stuffed Mushroom = 5075 | | Mantis-Stuffed Mushroom = 5075 | ||
| Mantis-Style Pumpkin Pie = 5768 | | Mantis-Style Pumpkin Pie = 5768 | ||
| + | | Maple Butterfly Harness = 20001 | ||
| Maple Carrots = 6222 | | Maple Carrots = 6222 | ||
| Maple Dowels = 5276 | | Maple Dowels = 5276 | ||
| Line 4,979: | Line 5,004: | ||
}} | }} | ||
| o = {{ #switch: {{{1}}} | | o = {{ #switch: {{{1}}} | ||
| + | | Oak Butterfly Harness = 20001 | ||
| Oak Dowels = 5275 | | Oak Dowels = 5275 | ||
| Oak Lattice = 6342 | | Oak Lattice = 6342 | ||
| Line 4,984: | Line 5,010: | ||
| Oak Wood Chips = 5142 | | Oak Wood Chips = 5142 | ||
| Oak Wood = 5093 | | Oak Wood = 5093 | ||
| − | | Oaken Shield = | + | | Oaken Shield = 14003 |
| Oakhorn = 5296 | | Oakhorn = 5296 | ||
| Obsidian = 5211 | | Obsidian = 5211 | ||
| Line 5,143: | Line 5,169: | ||
| Overgoblinized Bow = 5289 | | Overgoblinized Bow = 5289 | ||
| Overloaded Dronefire = 6709 | | Overloaded Dronefire = 6709 | ||
| + | | Overseer Brain = 6822 | ||
| + | | Overseer Eyeball = 6819 | ||
| Oversized Mandible = 5082 | | Oversized Mandible = 5082 | ||
| Owl Jack O' Lantern = 5409 | | Owl Jack O' Lantern = 5409 | ||
| Line 5,248: | Line 5,276: | ||
| Personal Teleportation Device - Serbule = 6388 | | Personal Teleportation Device - Serbule = 6388 | ||
| Personal Teleportation Device - Sun Vale = 6388 | | Personal Teleportation Device - Sun Vale = 6388 | ||
| + | | Personal Teleportation Device - Vidaria = 6388 | ||
| Petrified Bone Claw = 15505 | | Petrified Bone Claw = 15505 | ||
| Phase Duractor = 6560 | | Phase Duractor = 6560 | ||
| Line 5,975: | Line 6,004: | ||
| Ring of Projectile Expression = 17002 | | Ring of Projectile Expression = 17002 | ||
| Ring of Psychiatric Abuse = 17002 | | Ring of Psychiatric Abuse = 17002 | ||
| + | | Ring of Quick Hangovers = 17002 | ||
| Ring of Snakelike Behavior = 17002 | | Ring of Snakelike Behavior = 17002 | ||
| Ring of Snow = 17002 | | Ring of Snow = 17002 | ||
| Line 5,980: | Line 6,010: | ||
| Ring of Strong Ankles = 17002 | | Ring of Strong Ankles = 17002 | ||
| Ring of Sudden Doom = 17002 | | Ring of Sudden Doom = 17002 | ||
| + | | Ring of Swimming = 17002 | ||
| Ring of Swording = 17002 | | Ring of Swording = 17002 | ||
| Ring of Telepathic Pestering = 17002 | | Ring of Telepathic Pestering = 17002 | ||
| Line 6,163: | Line 6,194: | ||
| Scorpion Stinger = 5426 | | Scorpion Stinger = 5426 | ||
| Scorpion's Revenge = 15210 | | Scorpion's Revenge = 15210 | ||
| + | | Scout Eyeball = 6816 | ||
| Scrambled Egg = 5575 | | Scrambled Egg = 5575 | ||
| Scray Egg = 5478 | | Scray Egg = 5478 | ||
| Line 6,567: | Line 6,599: | ||
| Soggy Map = 6547 | | Soggy Map = 6547 | ||
| Soil Sample Container = 5890 | | Soil Sample Container = 5890 | ||
| + | | Soldier Horn = 6815 | ||
| Soldier's Pugeo = 15208 | | Soldier's Pugeo = 15208 | ||
| Solid Eltibule Treasure Rumor: Incredible Wealth = 4004 | | Solid Eltibule Treasure Rumor: Incredible Wealth = 4004 | ||
| Line 6,924: | Line 6,957: | ||
| Swampweed = 5672 | | Swampweed = 5672 | ||
| Swarmer Brain = 6682 | | Swarmer Brain = 6682 | ||
| + | | Swarmer Claw = 6814 | ||
| Sweet Butter = 5794 | | Sweet Butter = 5794 | ||
| Sweet and Numb Chicken = 5225 | | Sweet and Numb Chicken = 5225 | ||
| Line 7,195: | Line 7,229: | ||
| Tentakiller Tentacle = 6407 | | Tentakiller Tentacle = 6407 | ||
| Tequila = 5722 | | Tequila = 5722 | ||
| + | | Test Bread = 5111 | ||
| Textiles: Fae Linen = 4003 | | Textiles: Fae Linen = 4003 | ||
| Textiles: Sturdy Linen = 4003 | | Textiles: Sturdy Linen = 4003 | ||
| Line 8,251: | Line 8,286: | ||
| White Dye = 6010 | | White Dye = 6010 | ||
| White-Tail Ring = 17002 | | White-Tail Ring = 17002 | ||
| + | | Whittling: Cedar Butterfly Harness = 4003 | ||
| + | | Whittling: Maple Butterfly Harness = 4003 | ||
| + | | Whittling: Oak Butterfly Harness = 4003 | ||
| + | | Whittling: Yew Butterfly Harness = 4003 | ||
| Willpower Gel = 5157 | | Willpower Gel = 5157 | ||
| Wind Crawler's Webs = 16027 | | Wind Crawler's Webs = 16027 | ||
| Line 9,597: | Line 9,636: | ||
| YetiLegs = 11001 | | YetiLegs = 11001 | ||
| YetiLegs2 = 11001 | | YetiLegs2 = 11001 | ||
| + | | Yew Butterfly Harness = 20001 | ||
| Yew Wood Chips = 6680 | | Yew Wood Chips = 6680 | ||
| Yew Wood = 6626 | | Yew Wood = 6626 | ||
| Line 9,692: | Line 9,732: | ||
}} | }} | ||
}}.png | }}.png | ||
| − | | http://cdn.projectgorgon.com/ | + | | http://cdn.projectgorgon.com/v427/icons/icon_.png <!-- result when no match is found, will be #replaced --> |
| <span style="color:red">Error: Item not found</span> }} | [[File:Item-icon-none.png]] }}{{ #switch: {{{2}}} | 1 | 2 | 32 | 64 = </span> | }}</includeonly><noinclude> | | <span style="color:red">Error: Item not found</span> }} | [[File:Item-icon-none.png]] }}{{ #switch: {{{2}}} | 1 | 2 | 32 | 64 = </span> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Formatting templates|ItemT]] | [[Category:Formatting templates|ItemT]] | ||
</noinclude> | </noinclude> | ||
Revision as of 01:46, 11 May 2025
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
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
{{Item icon|<name>|<size selection>}}
Parameters
- <name>
- The name of the icon. It must match exactly what is displayed in-game (e.g. "Red Apple", not "Apple" or "red apple")
- If omitted or empty, template returns a blank icon image.
- If no match is found, template returns an error.
- <size selection>
- 1 or 32 for 32x32.
- 2 or 64 for 64x64.
- If omitted, empty, or anything else, image isn't resized.
Examples
Standard Use
{{Item icon|Glowy Yellow Crystal}}
{{Item icon|Ice Core}}
{{Item icon}}
{{Item icon|FakeItemReturnsError}}
Error: Item not found
Resizing
{{Item icon|Glowy Yellow Crystal}} <!-- default size is 64x64 -->
{{Item icon|Ice Core}} <!-- default size is 32x32 -->
{{Item icon|Glowy Yellow Crystal|32}}
{{Item icon|Ice Core|64}}
Alternative Resizing (old method)
You can also manually resize the images if you wish (using the template just wraps the image in this span automatically).
<span class="extimage32px">{{Item icon|Salt}}</span>
<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 and . 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
| Daisy = 5283 | Daisy (Lute) = 5380
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.
| scroll = 4003 | Unlock = 109
The above text is transcluded from Template:Item icon/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Item icon/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Item icon/doc. (View all subpages of this page.)