Difference between revisions of "Template:Item icon"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Updating)
m (Updating)
Line 1: Line 1:
 
{{ #if: {{{1|}}} |  
 
{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v332/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v333/icons/icon_{{ #switch: {{{1|None}}}
 
| "Always The Way" = 5110
 
| "Always The Way" = 5110
 
| "Battle of Fok" = 5793
 
| "Battle of Fok" = 5793
Line 186: Line 186:
 
| Amazing Harukita Talisman = 17101
 
| Amazing Harukita Talisman = 17101
 
| Amazing Holistic Ink = 5887
 
| Amazing Holistic Ink = 5887
| Amazing Ice Throwing Knife = 5654
 
 
| Amazing Ilth Hale Ring = 17202
 
| Amazing Ilth Hale Ring = 17202
 
| Amazing Ink = 5888
 
| Amazing Ink = 5888
Line 289: Line 288:
 
| Amulet of Piercing Mitigation 2 = 17001
 
| Amulet of Piercing Mitigation 2 = 17001
 
| Amulet of Piercing Mitigation 3 = 17001
 
| Amulet of Piercing Mitigation 3 = 17001
 +
| Amulet of Piercing Mitigation 4 = 17001
 
| Amulet of Piercing Mitigation 4 = 17001
 
| Amulet of Piercing Mitigation 4 = 17001
 
| Amulet of Piercing Mitigation 5 = 17001
 
| Amulet of Piercing Mitigation 5 = 17001
Line 307: Line 307:
 
| Ancient Silver Coin = 5423
 
| Ancient Silver Coin = 5423
 
| Ancient Sketchbook = 5115
 
| Ancient Sketchbook = 5115
 +
| Ancient Slacks = 11110
 
| Ancient Slacks = 11110
 
| Ancient Slacks = 11110
 
| Ancient Stencil = 5115
 
| Ancient Stencil = 5115
Line 319: Line 320:
 
| Antler = 5076
 
| Antler = 5076
 
| Apogi's Calling Card = 4005
 
| Apogi's Calling Card = 4005
 +
| Apology Cake = 5714
 
| Appenzeller Cheese = 5339
 
| Appenzeller Cheese = 5339
 
| Apple Juice = 5396
 
| Apple Juice = 5396
Line 399: Line 401:
 
| Astounding Forest Masquerade Mask = 16115
 
| Astounding Forest Masquerade Mask = 16115
 
| Astounding Frigid Masquerade Mask = 16116
 
| Astounding Frigid Masquerade Mask = 16116
| Astounding Ice Throwing Knife = 5655
 
 
| Astounding Leather Boots = 10005
 
| Astounding Leather Boots = 10005
 
| Astounding Leather Gloves = 13005
 
| Astounding Leather Gloves = 13005
Line 513: Line 514:
 
| Basic Dirk = 15401
 
| Basic Dirk = 15401
 
| Basic Enoyos Talisman = 17302
 
| Basic Enoyos Talisman = 17302
 +
| Basic Fae Wand of Cold = 18018
 +
| Basic Fae Wand of Cold = 18018
 
| Basic First Aid Bomb = 5549
 
| Basic First Aid Bomb = 5549
 
| Basic First Aid Kit = 5060
 
| Basic First Aid Kit = 5060
Line 525: Line 528:
 
| Basic Helm = 16029
 
| Basic Helm = 16029
 
| Basic Holistic Ink = 5885
 
| Basic Holistic Ink = 5885
| Basic Ice Throwing Knife = 5650
 
 
| Basic Ink = 5888
 
| Basic Ink = 5888
 
| Basic Lager = 5744
 
| Basic Lager = 5744
Line 1,598: Line 1,600:
 
| Dwarven Gouger = 15208
 
| Dwarven Gouger = 15208
 
| Dwarven Hammer = 21002
 
| Dwarven Hammer = 21002
 +
| Dwarven Maintenance Blade = 15403
 
| Dwarven Maintenance Blade = 15403
 
| Dwarven Maintenance Blade = 15403
 
| Dwarven Medic Staff = 18007
 
| Dwarven Medic Staff = 18007
Line 1,681: Line 1,684:
 
| Elven Plate Leggings = 11020
 
| Elven Plate Leggings = 11020
 
| Elven Shield = 14003
 
| Elven Shield = 14003
 +
| Elven Sketches = 5519
 
| Elven Staff = 18011
 
| Elven Staff = 18011
 
| Elven Verse = 5115
 
| Elven Verse = 5115
Line 1,698: Line 1,702:
 
| Empty Fletching Box = 5116
 
| Empty Fletching Box = 5116
 
| Empusa's Mask = 16009
 
| Empusa's Mask = 16009
 +
| Enchanted Amazing First Aid Kit = 6330
 +
| Enchanted Astounding First Aid Kit = 6330
 +
| Enchanted Autopsy Kit = 6330
 +
| Enchanted Basic First Aid Kit = 6330
 
| Enchanted Bear Claw = 5645
 
| Enchanted Bear Claw = 5645
 
| Enchanted Construction Nail = 5515
 
| Enchanted Construction Nail = 5515
 +
| Enchanted Expert's First Aid Kit = 6330
 +
| Enchanted Good First Aid Kit = 6330
 
| Enchanted Holly Seeds = 5045
 
| Enchanted Holly Seeds = 5045
 +
| Enchanted Master First Aid Kit = 6330
 
| Enchanted Mistletoe = 5045
 
| Enchanted Mistletoe = 5045
 
| Energy Resistance Potion = 5158
 
| Energy Resistance Potion = 5158
Line 1,718: Line 1,729:
 
| Eveline's Tailored Shirt = 12007
 
| Eveline's Tailored Shirt = 12007
 
| Event Loot Key (Universal) = 5349
 
| Event Loot Key (Universal) = 5349
 +
| Everpatching Shirt = 12104
 
| Everpatching Shirt = 12104
 
| Everpatching Shirt = 12104
 
| Evil Bone = 6231
 
| Evil Bone = 6231
Line 1,738: Line 1,750:
 
| Expert's First Aid Bomb = 5549
 
| Expert's First Aid Bomb = 5549
 
| Expert's First Aid Kit = 5060
 
| Expert's First Aid Kit = 5060
| Expert's Ice Throwing Knife = 5652
 
 
| Expert's Long Arrow = 5246
 
| Expert's Long Arrow = 5246
 
| Expert's Parchment = 5306
 
| Expert's Parchment = 5306
Line 1,768: Line 1,779:
 
| Fae Auger Shell = 6317
 
| Fae Auger Shell = 6317
 
| Fae Bead Necklace = 5197
 
| Fae Bead Necklace = 5197
 +
| Fae Beard Color Potion = 5441
 +
| Fae Beard Style Potion = 5441
 
| Fae Bee Stinger = 6273
 
| Fae Bee Stinger = 6273
 
| Fae Claw = 5410
 
| Fae Claw = 5410
 
| Fae Felt = 5940
 
| Fae Felt = 5940
 +
| Fae Hair Color Potion = 5441
 +
| Fae Hair Style Potion = 5441
 
| Fae Honeycomb = 6253
 
| Fae Honeycomb = 6253
 
| Fae Mollusc Slime = 6292
 
| Fae Mollusc Slime = 6292
Line 1,782: Line 1,797:
 
| Fae Ring of Healing = 17002
 
| Fae Ring of Healing = 17002
 
| Fae Silk = 6293
 
| Fae Silk = 6293
 +
| Fae Skin Color Potion = 5441
 
| Fae Skull = 5369
 
| Fae Skull = 5369
 
| Fae Wasp Stinger = 6277
 
| Fae Wasp Stinger = 6277
 +
| Fae Wing-Change Potion = 5441
 
| Fairwing Cheese = 5337
 
| Fairwing Cheese = 5337
 
| Fairy Bow = 5289
 
| Fairy Bow = 5289
 +
| Fairy Cake = 5714
 
| Fairy Cestus = 19001
 
| Fairy Cestus = 19001
 
| Fairy Chimes = 6291
 
| Fairy Chimes = 6291
 
| Fairy Dagger = 15208
 
| Fairy Dagger = 15208
 
| Fairy Dirk = 15402
 
| Fairy Dirk = 15402
 +
| Fairy Dust = 6329
 
| Fairy Honey = 5706
 
| Fairy Honey = 5706
 
| Fairy Iceheart = 6294
 
| Fairy Iceheart = 6294
 
| Fairy Lute = 5380
 
| Fairy Lute = 5380
 +
| Fairy Magic Topaz = 5213
 
| Fairy Peach Juice = 5396
 
| Fairy Peach Juice = 5396
 
| Fairy Puffs = 5127
 
| Fairy Puffs = 5127
| Fairy Wand of Cold = 18018
+
| Fairy Soul Anchor = 6328
 +
| Fairy Stew = 5816
 
| Fairy Wing = 5399
 
| Fairy Wing = 5399
 
| False Agaric = 5782
 
| False Agaric = 5782
Line 2,094: Line 2,115:
 
| Goblin Cutlass = 15012
 
| Goblin Cutlass = 15012
 
| Goblin Dirk = 15402
 
| Goblin Dirk = 15402
 +
| Goblin Fist Wraps = 13004
 
| Goblin Fist Wraps = 13004
 
| Goblin Fist Wraps = 13004
 
| Goblin Gloves = 13022
 
| Goblin Gloves = 13022
Line 2,100: Line 2,122:
 
| Goblin Kilt = 11004
 
| Goblin Kilt = 11004
 
| Goblin Leggings = 11022
 
| Goblin Leggings = 11022
 +
| Goblin Lifekeeper = 15203
 
| Goblin Lifekeeper = 15203
 
| Goblin Lifekeeper = 15203
 
| Goblin Lute = 5380
 
| Goblin Lute = 5380
Line 2,139: Line 2,162:
 
| Good First Aid Bomb = 5549
 
| Good First Aid Bomb = 5549
 
| Good First Aid Kit = 5060
 
| Good First Aid Kit = 5060
| Good Ice Throwing Knife = 5651
 
 
| Good Metal Slab = 5299
 
| Good Metal Slab = 5299
 
| Good Parchment = 5306
 
| Good Parchment = 5306
Line 2,151: Line 2,173:
 
| Gouda Cheese = 5337
 
| Gouda Cheese = 5337
 
| Gouging Stiletto = 15201
 
| Gouging Stiletto = 15201
 +
| Grand Fae Wand of Cold = 18018
 
| Grand Ring = 17002
 
| Grand Ring = 17002
 
| Grand Shaping Hammer = 5560
 
| Grand Shaping Hammer = 5560
Line 2,436: Line 2,459:
 
| I'd Rather Be Fletching = 4006
 
| I'd Rather Be Fletching = 4006
 
| I.O.U. Quest Reward = 4006
 
| I.O.U. Quest Reward = 4006
 +
| Ice Butcher Knife = 6331
 
| Ice Bypass Spell = 4004
 
| Ice Bypass Spell = 4004
 
| Ice Core = 5295
 
| Ice Core = 5295
Line 2,444: Line 2,468:
 
| Ice Fishing Gear (8 hour) = 5311
 
| Ice Fishing Gear (8 hour) = 5311
 
| Ice Hands = 13101
 
| Ice Hands = 13101
 +
| Ice Handsaw = 6332
 
| Ice Magic Boost Potion 20% = 5437
 
| Ice Magic Boost Potion 20% = 5437
 +
| Ice Skinning Knife = 6331
 
| Icebreeze Moth Wings = 6274
 
| Icebreeze Moth Wings = 6274
 
| Iceheart Sustenance Oil = 5441
 
| Iceheart Sustenance Oil = 5441
Line 2,530: Line 2,556:
 
| Janet Lew's Old Longsword = 15010
 
| Janet Lew's Old Longsword = 15010
 
| Jar of Explosions = 5085
 
| Jar of Explosions = 5085
 +
| Jaunty Hat of Despair = 16013
 
| Jaunty Hat of Despair = 16013
 
| Jaunty Hat of Despair = 16013
 
| Jellybeans = 6252
 
| Jellybeans = 6252
Line 2,910: Line 2,937:
 
| Master Parchment = 5306
 
| Master Parchment = 5306
 
| Master Skinning Knife = 5169
 
| Master Skinning Knife = 5169
| Master's Ice Throwing Knife = 5653
 
 
| Master's Throwing Knife = 5629
 
| Master's Throwing Knife = 5629
 
| Masterwork Armor Stake = 5565
 
| Masterwork Armor Stake = 5565
Line 3,331: Line 3,357:
 
| Orloaka's Staff = 18008
 
| Orloaka's Staff = 18008
 
| Ornately-Framed Painting = 5110
 
| Ornately-Framed Painting = 5110
 +
| Orran's Inventory Expander Potion = 6333
 +
| Orran's Super Inventory Expander Potion = 6334
 +
| Orran's Ultra Inventory Expander Potion = 6335
 
| Otalgg's Calling Card = 4005
 
| Otalgg's Calling Card = 4005
 
| Otart's Calling Card = 4005
 
| Otart's Calling Card = 4005
Line 3,524: Line 3,553:
 
| Preservative Rune = 5309
 
| Preservative Rune = 5309
 
| PretendBow = 5289
 
| PretendBow = 5289
 +
| PretendColdWand = 18018
 
| PretendCrossbow8 = 15001
 
| PretendCrossbow8 = 15001
 
| PretendFlask = 5086
 
| PretendFlask = 5086
Line 3,846: Line 3,876:
 
| Ring Augment = 5490
 
| Ring Augment = 5490
 
| Ring Ornament (Legacy) = 5499
 
| Ring Ornament (Legacy) = 5499
 +
| Ring of Accuracy = 17002
 
| Ring of Accuracy = 17002
 
| Ring of Accuracy = 17002
 
| Ring of Acid Blasting = 17002
 
| Ring of Acid Blasting = 17002
Line 4,174: Line 4,205:
 
| Simple First Aid Kit = 5060
 
| Simple First Aid Kit = 5060
 
| Simple Free Item Raffler = 5513
 
| Simple Free Item Raffler = 5513
| Simple Ice Throwing Knife = 5649
+
| Simple Ice Shield = 14008
 
| Simple Item Dispenser = 5513
 
| Simple Item Dispenser = 5513
 
| Simple Item Vendor = 5513
 
| Simple Item Vendor = 5513
Line 4,464: Line 4,495:
 
| Super-Shoddy Chair = 5099
 
| Super-Shoddy Chair = 5099
 
| Super-Shoddy Meditation Stool = 5100
 
| Super-Shoddy Meditation Stool = 5100
| Superb Ice Throwing Knife = 5656
 
 
| Superb Metal Slab = 5578
 
| Superb Metal Slab = 5578
 
| Superb Ri-Shin Hat = 16110
 
| Superb Ri-Shin Hat = 16110
Line 4,647: Line 4,677:
 
| Thick Armor Potion = 5154
 
| Thick Armor Potion = 5154
 
| Thick Cranium Lotion = 5152
 
| Thick Cranium Lotion = 5152
 +
| Thick Fae Energy Potion = 5154
 +
| Thick Ice Shield = 14008
 
| Thickened Chainmail Shirt = 12108
 
| Thickened Chainmail Shirt = 12108
 
| ThiefLeatherChest01 = 13001
 
| ThiefLeatherChest01 = 13001
Line 4,660: Line 4,692:
 
| Thimble Pete's Awful Cap = 16108
 
| Thimble Pete's Awful Cap = 16108
 
| Thin Cranium Lotion = 5152
 
| Thin Cranium Lotion = 5152
 +
| Thin Fae Energy Potion = 5154
 
| Thin Mesh Grate = 5565
 
| Thin Mesh Grate = 5565
 
| Thistle Dye = 6085
 
| Thistle Dye = 6085
Line 5,119: Line 5,152:
 
| Windstep Shoes = 10102
 
| Windstep Shoes = 10102
 
| Wing Rings of Glowy Crystal Resistance = 17004
 
| Wing Rings of Glowy Crystal Resistance = 17004
 +
| Wing Tassels of Beefriending = 17006
 +
| Wing Tassels of Fae Energy = 17006
 +
| Wing Tassels of Swift Wings = 17006
 
| Winged Witch Staff = 18010
 
| Winged Witch Staff = 18010
 
| WingsOffAppearance = 16001
 
| WingsOffAppearance = 16001
Line 6,333: Line 6,369:
 
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Item not found</span> }}
 
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Item not found</span> }}
 
}}.png |  
 
}}.png |  
http://cdn.projectgorgon.com/v332/icons/icon_<span style="color:red">Error: Item not found</span>.png |  
+
http://cdn.projectgorgon.com/v333/icons/icon_<span style="color:red">Error: Item not found</span>.png |  
 
<span style="color:red">Error: Item not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude>
 
<span style="color:red">Error: Item not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude>
 
{{Item icon/Explanation}}
 
{{Item icon/Explanation}}
 
[[Category:Formatting templates|ItemT]]
 
[[Category:Formatting templates|ItemT]]
 
</noinclude>
 
</noinclude>

Revision as of 21:47, 12 March 2020

Item-icon-none.png

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}}

icon_5702.png

icon_5295.png

Item-icon-none.png

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}}

icon_5702.png

icon_5295.png

icon_5702.png

icon_5295.png


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>

icon_5013.png

icon_5013.png

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
icon_5380.png
 
and
Error: Item not found
 
. 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