Difference between revisions of "Template:Item icon"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Restructuring to reduce the size, hopefully edits on this page will work now. Functionality lost: using {{Item icon|None}} to get the blank image. Can only use {{Item icon}} or {{Item icon|}} instead)
m (Updating)
Line 1: Line 1:
 
{{ #if: {{{1|}}} |  
 
{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v282/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v284/icons/icon_{{ #switch: {{{1|None}}}
 
| "Always The Way" = 5110
 
| "Always The Way" = 5110
 
| "Battle of Fok" = 4006
 
| "Battle of Fok" = 4006
Line 75: Line 75:
 
| Alchemy: Behold the Fire Shield = 4003
 
| Alchemy: Behold the Fire Shield = 4003
 
| Alchemy: Better Pick-Me-Ups = 4003
 
| Alchemy: Better Pick-Me-Ups = 4003
| Alchemy: Cauldron of Vile Thoughts = 5113
+
| Alchemy: Cauldron of Vile Thoughts = 4003
 
| Alchemy: Concentrated Wolfen Speed Potion = 4003
 
| Alchemy: Concentrated Wolfen Speed Potion = 4003
 
| Alchemy: Dangerous Poison For Knives = 4003
 
| Alchemy: Dangerous Poison For Knives = 4003
Line 86: Line 86:
 
| Alchemy: Inks for Special Occasions Pt 3 = 4003
 
| Alchemy: Inks for Special Occasions Pt 3 = 4003
 
| Alchemy: Inks for Special Occasions Pt 4 = 4003
 
| Alchemy: Inks for Special Occasions Pt 4 = 4003
| Alchemy: Kraken Power Potion = 5430
+
| Alchemy: Kraken Power Potion = 4003
 
| Alchemy: Mercury = 4003
 
| Alchemy: Mercury = 4003
 
| Alchemy: Modest Poison For Knives = 4003
 
| Alchemy: Modest Poison For Knives = 4003
| Alchemy: Orcish Thickskin Potion = 5436
+
| Alchemy: Orcish Thickskin Potion = 4003
 
| Alchemy: Overclock Your Heart and Mind = 4003
 
| Alchemy: Overclock Your Heart and Mind = 4003
 
| Alchemy: Potent Acids: Facts and Myths = 4003
 
| Alchemy: Potent Acids: Facts and Myths = 4003
Line 95: Line 95:
 
| Alchemy: Safe Brain Boosts For Beginners = 4003
 
| Alchemy: Safe Brain Boosts For Beginners = 4003
 
| Alchemy: So You Want To Be An Alchemist = 4003
 
| Alchemy: So You Want To Be An Alchemist = 4003
| Alchemy: Swimming Potion = 5436
+
| Alchemy: Swimming Potion = 4003
 
| Alchemy: The Hows and Whys of Acid = 4003
 
| Alchemy: The Hows and Whys of Acid = 4003
| Alchemy: Water Lung Potion = 5436
+
| Alchemy: Water Lung Potion = 4003
 
| Alchemy: Weak Poison For Knives = 4003
 
| Alchemy: Weak Poison For Knives = 4003
 
| Alchemy: Why Not Leap Into the Sky? = 4003
 
| Alchemy: Why Not Leap Into the Sky? = 4003
Line 136: Line 136:
 
| Amazing Evasion Leggings = 11012
 
| Amazing Evasion Leggings = 11012
 
| Amazing Evasion Shirt = 12016
 
| Amazing Evasion Shirt = 12016
 +
| Amazing Familiar Controller = 16008
 
| Amazing First Aid Bomb = 5549
 
| Amazing First Aid Bomb = 5549
 
| Amazing First Aid Kit = 5060
 
| Amazing First Aid Kit = 5060
Line 240: Line 241:
 
| Anguish Orb = 5382
 
| Anguish Orb = 5382
 
| Anhinda's Flask = 5086
 
| Anhinda's Flask = 5086
| Animal Skull = 5365
+
| Animal Skull = 5773
 
| Antique Spatha = 15001
 
| Antique Spatha = 15001
 
| Antique White Dye = 5377
 
| Antique White Dye = 5377
Line 271: Line 272:
 
| Ashk's Tail-Ring of Remembrance = 17002
 
| Ashk's Tail-Ring of Remembrance = 17002
 
| Asterion's Hammer = 21002
 
| Asterion's Hammer = 21002
| Astonishing Animal Skull = 5365
+
| Astonishing Animal Skull = 5773
 
| Astonishing Elf Skull = 5364
 
| Astonishing Elf Skull = 5364
 
| Astonishing Fae Skull = 5369
 
| Astonishing Fae Skull = 5369
Line 277: Line 278:
 
| Astonishing Goblin Skull = 5368
 
| Astonishing Goblin Skull = 5368
 
| Astonishing Human Skull = 5293
 
| Astonishing Human Skull = 5293
| Astonishing Large Animal Skull = 5374
+
| Astonishing Large Animal Skull = 5772
 
| Astonishing Orc Skull = 5371
 
| Astonishing Orc Skull = 5371
 
| Astonishing Rakshasa Skull = 5366
 
| Astonishing Rakshasa Skull = 5366
Line 482: Line 483:
 
| Bone Spoon = 5165
 
| Bone Spoon = 5165
 
| Bonfire Summoner = 18001
 
| Bonfire Summoner = 18001
| Bonnet = 5174
+
| Bonnet = 5776
 
| Bonnie's Earrings = 17004
 
| Bonnie's Earrings = 17004
 
| Bonus Fishy Surprise = 5039
 
| Bonus Fishy Surprise = 5039
Line 571: Line 572:
 
| Buckle of Swift Slagging = 20005
 
| Buckle of Swift Slagging = 20005
 
| Buckle of Unburdened Hammering = 20002
 
| Buckle of Unburdened Hammering = 20002
 +
| Bunny Juice = 5087
 
| Burial Poem = 5115
 
| Burial Poem = 5115
 
| Burning Orb = 5382
 
| Burning Orb = 5382
Line 652: Line 654:
 
| Cheap Goblinized Bow = 5289
 
| Cheap Goblinized Bow = 5289
 
| Cheesecloth = 5329
 
| Cheesecloth = 5329
 +
| Cheesy Baked Potato = 5022
 
| Cheesy Veggie Delight = 5127
 
| Cheesy Veggie Delight = 5127
 
| Cheesy Veggie Delight = 5127
 
| Cheesy Veggie Delight = 5127
Line 690: Line 693:
 
| Cleanliness Display #5 = 5601
 
| Cleanliness Display #5 = 5601
 
| Cleanliness Display #6 = 5601
 
| Cleanliness Display #6 = 5601
| Cloth Handkerchief = 5174
+
| Cloth Handkerchief = 5776
 
| Clownfish = 5052
 
| Clownfish = 5052
 
| Clownfish Fillet = 5036
 
| Clownfish Fillet = 5036
Line 803: Line 806:
 
| Crude Evasion Leggings = 11007
 
| Crude Evasion Leggings = 11007
 
| Crude Evasion Shirt = 12024
 
| Crude Evasion Shirt = 12024
 +
| Crude Familiar Controller = 16008
 
| Crude Hardcore Belt = 20001
 
| Crude Hardcore Belt = 20001
 
| Crude Leather Boots = 10007
 
| Crude Leather Boots = 10007
Line 881: Line 885:
 
| Decent Evasion Leggings = 11008
 
| Decent Evasion Leggings = 11008
 
| Decent Evasion Shirt = 12029
 
| Decent Evasion Shirt = 12029
 +
| Decent Familiar Controller = 16008
 
| Decent Leather Boots = 10009
 
| Decent Leather Boots = 10009
 
| Decent Leather Gloves = 13005
 
| Decent Leather Gloves = 13005
Line 1,233: Line 1,238:
 
| Firkin of Brie Cheese = 5324
 
| Firkin of Brie Cheese = 5324
 
| Firkin of Camembert Cheese = 5324
 
| Firkin of Camembert Cheese = 5324
| Firkin of Emmental Cheese = 5324
+
| Firkin of Emmentaler Cheese = 5324
 
| Firkin of Limburger Cheese = 5324
 
| Firkin of Limburger Cheese = 5324
 
| Firkin of Sour Cream = 5324
 
| Firkin of Sour Cream = 5324
Line 1,624: Line 1,629:
 
| Great Animal Skin = 5084
 
| Great Animal Skin = 5084
 
| Great Arachnid Harness = 20001
 
| Great Arachnid Harness = 20001
 +
| Great Bacon = 5069
 
| Great Bard Boots = 10013
 
| Great Bard Boots = 10013
 
| Great Bard Cap = 16005
 
| Great Bard Cap = 16005
Line 1,653: Line 1,659:
 
| Great Evasion Leggings = 11011
 
| Great Evasion Leggings = 11011
 
| Great Evasion Shirt = 12017
 
| Great Evasion Shirt = 12017
 +
| Great Familiar Controller = 16008
 
| Great Gauntlets of the Winter Court = 13004
 
| Great Gauntlets of the Winter Court = 13004
 
| Great Greaves of the Winter Court = 11006
 
| Great Greaves of the Winter Court = 11006
Line 1,672: Line 1,679:
 
| Great Pig Porkpie Hat = 16009
 
| Great Pig Porkpie Hat = 16009
 
| Great Pocket Belt = 20001
 
| Great Pocket Belt = 20001
 +
| Great Pork Shoulder = 5068
 
| Great Rabbit Meat = 5648
 
| Great Rabbit Meat = 5648
 
| Great Snail Boots = 10011
 
| Great Snail Boots = 10011
Line 1,702: Line 1,710:
 
| Green Game Chip = 5315
 
| Green Game Chip = 5315
 
| Green Pepper = 5455
 
| Green Pepper = 5455
| Green Pepper Seeds = 5460
+
| Green Pepper Seeds = 5461
 
| Green Thumb Potion = 5430
 
| Green Thumb Potion = 5430
 
| Green Vexfish = 5693
 
| Green Vexfish = 5693
Line 1,820: Line 1,828:
 
| Ilmari Treasure Map: Vast Riches = 5305
 
| Ilmari Treasure Map: Vast Riches = 5305
 
| Impressive Aberration Skull = 5367
 
| Impressive Aberration Skull = 5367
| Impressive Animal Skull = 5365
+
| Impressive Animal Skull = 5773
 
| Impressive Elf Skull = 5364
 
| Impressive Elf Skull = 5364
 
| Impressive Fae Skull = 5369
 
| Impressive Fae Skull = 5369
Line 1,826: Line 1,834:
 
| Impressive Goblin Skull = 5368
 
| Impressive Goblin Skull = 5368
 
| Impressive Human Skull = 5293
 
| Impressive Human Skull = 5293
| Impressive Large Animal Skull = 5374
+
| Impressive Large Animal Skull = 5772
 
| Impressive Orc Skull = 5371
 
| Impressive Orc Skull = 5371
 
| Impressive Rakshasa Skull = 5366
 
| Impressive Rakshasa Skull = 5366
| Impressive Small Animal Skull = 5373
+
| Impressive Small Animal Skull = 5774
 
| Incense = 5659
 
| Incense = 5659
 
| Incinerating Orb = 5382
 
| Incinerating Orb = 5382
Line 1,915: Line 1,923:
 
| Lapis Lazuli = 5204
 
| Lapis Lazuli = 5204
 
| Laressa's Cheese = 5338
 
| Laressa's Cheese = 5338
| Large Animal Skull = 5374
+
| Large Animal Skull = 5772
 
| Large Coin Sack = 5475
 
| Large Coin Sack = 5475
 
| Large Dinosaur Scale = 5294
 
| Large Dinosaur Scale = 5294
Line 2,303: Line 2,311:
 
| Nice Evasion Leggings = 11009
 
| Nice Evasion Leggings = 11009
 
| Nice Evasion Shirt = 12021
 
| Nice Evasion Shirt = 12021
 +
| Nice Familiar Controller = 16008
 
| Nice Hardcore Belt = 20001
 
| Nice Hardcore Belt = 20001
 
| Nice Leather Boots = 10011
 
| Nice Leather Boots = 10011
Line 2,367: Line 2,376:
 
| Old Party Invitation = 5115
 
| Old Party Invitation = 5115
 
| Old Worn Bow = 5289
 
| Old Worn Bow = 5289
 +
| Olive Oil = 5778
 
| Olot's Calling Card = 4005
 
| Olot's Calling Card = 4005
 
| On Becoming Great Again = 4003
 
| On Becoming Great Again = 4003
Line 2,707: Line 2,717:
 
| Quarter Hoop = 5321
 
| Quarter Hoop = 5321
 
| Quartz = 5201
 
| Quartz = 5201
 +
| Rabbit Malachite = 5208
 
| Rabbit Meat = 5647
 
| Rabbit Meat = 5647
 +
| Rabbit Treat = 5682
 
| Rabbit's Foot = 5646
 
| Rabbit's Foot = 5646
 
| Raclette Cheese = 5337
 
| Raclette Cheese = 5337
Line 2,740: Line 2,752:
 
| Raw Chicken = 5223
 
| Raw Chicken = 5223
 
| Raw Egg Blend = 5397
 
| Raw Egg Blend = 5397
 +
| Raw Great Chicken = 5223
 
| Raw Paralytic Chicken = 5223
 
| Raw Paralytic Chicken = 5223
 
| Rawhide Liner = 5174
 
| Rawhide Liner = 5174
Line 2,757: Line 2,770:
 
| Red Game Chip = 5314
 
| Red Game Chip = 5314
 
| Red Pepper = 5457
 
| Red Pepper = 5457
| Red Pepper Seeds = 5461
+
| Red Pepper Seeds = 5460
 
| Red Rose = 5287
 
| Red Rose = 5287
 
| Red Rose Bouquet = 5604
 
| Red Rose Bouquet = 5604
Line 2,844: Line 2,857:
 
| Rough Cow Shoes = 5304
 
| Rough Cow Shoes = 5304
 
| Rough Deer Shoes = 5304
 
| Rough Deer Shoes = 5304
 +
| Rough Familiar Controller = 16008
 
| Rough Leather Boots = 10010
 
| Rough Leather Boots = 10010
 
| Rough Leather Gloves = 13007
 
| Rough Leather Gloves = 13007
Line 2,903: Line 2,917:
 
| Selaxi's Cactus Mixer = 5397
 
| Selaxi's Cactus Mixer = 5397
 
| Selaxi's Scorpion Stinger = 5126
 
| Selaxi's Scorpion Stinger = 5126
| Semi-Loaded Baked Potato = 5022
 
 
| Serbule Blue Mineral Survey = 5305
 
| Serbule Blue Mineral Survey = 5305
 
| Serbule Green Mineral Survey = 5305
 
| Serbule Green Mineral Survey = 5305
Line 2,944: Line 2,957:
 
| Shoddy Deer Shoes = 5304
 
| Shoddy Deer Shoes = 5304
 
| Shoddy Dragon Statue = 5099
 
| Shoddy Dragon Statue = 5099
 +
| Shoddy Familiar Controller = 16008
 +
| Shoddy Familiar Controller = 16008
 
| Shoddy Fighting Claw = 5410
 
| Shoddy Fighting Claw = 5410
 
| Shoddy Forgery = 5110
 
| Shoddy Forgery = 5110
Line 3,005: Line 3,020:
 
| Sinewy Beast Meat = 5530
 
| Sinewy Beast Meat = 5530
 
| Sinewy Cat Meat = 5538
 
| Sinewy Cat Meat = 5538
 +
| Sinewy Dinosaur Meat = 5526
 
| Sinewy Dog Meat = 5534
 
| Sinewy Dog Meat = 5534
 
| Sinewy Insect Meat = 5542
 
| Sinewy Insect Meat = 5542
Line 3,023: Line 3,039:
 
| Slime Ring = 17002
 
| Slime Ring = 17002
 
| Slimy Shoes = 10013
 
| Slimy Shoes = 10013
| Small Animal Skull = 5373
+
| Small Animal Skull = 5774
 
| Small Blue Dragon Scale = 5420
 
| Small Blue Dragon Scale = 5420
 
| Small Confetti Bomb = 5522
 
| Small Confetti Bomb = 5522
Line 3,184: Line 3,200:
 
| Suicide Orb = 5382
 
| Suicide Orb = 5382
 
| Sulfur = 5182
 
| Sulfur = 5182
 +
| Summer Apple Pie = 5768
 
| Sun Vale Tea = 5397
 
| Sun Vale Tea = 5397
 
| Sun Warden = 18001
 
| Sun Warden = 18001
Line 3,370: Line 3,387:
 
| Un-Aged Whisky = 5722
 
| Un-Aged Whisky = 5722
 
| Un-Bat Juice = 5089
 
| Un-Bat Juice = 5089
 +
| Un-Bunny Juice = 5089
 
| Un-Deer Juice = 5089
 
| Un-Deer Juice = 5089
 
| Un-Pig Juice = 5089
 
| Un-Pig Juice = 5089
Line 3,420: Line 3,438:
 
| Vegan Nut Barley Bread = 5111
 
| Vegan Nut Barley Bread = 5111
 
| Vegetable Masterpiece = 5132
 
| Vegetable Masterpiece = 5132
 +
| Vegetable Oil = 5777
 
| Veil of Twighlight Pain = 16005
 
| Veil of Twighlight Pain = 16005
 
| Velkort's Classy Gloves = 13005
 
| Velkort's Classy Gloves = 13005
Line 3,583: Line 3,602:
 
| Work Order for Cabbages (Gardening) = 4003
 
| Work Order for Cabbages (Gardening) = 4003
 
| Work Order for Camembert Cheese (Cheesemaking) = 4003
 
| Work Order for Camembert Cheese (Cheesemaking) = 4003
 +
| Work Order for Camouflaged Crude Shirts (Tailoring) = 4003
 +
| Work Order for Camouflaged Decent Shirts (Tailoring) = 4003
 
| Work Order for Camouflaged Great Pants (Tailoring) = 4003
 
| Work Order for Camouflaged Great Pants (Tailoring) = 4003
 
| Work Order for Camouflaged Great Shirts (Tailoring) = 4003
 
| Work Order for Camouflaged Great Shirts (Tailoring) = 4003
 +
| Work Order for Camouflaged Nice Shirts (Tailoring) = 4003
 
| Work Order for Candied Lemons (Cooking) = 4003
 
| Work Order for Candied Lemons (Cooking) = 4003
 
| Work Order for Candle Stumps = 4003
 
| Work Order for Candle Stumps = 4003
Line 3,598: Line 3,620:
 
| Work Order for Cedar Wood Chips (Carpentry) = 4003
 
| Work Order for Cedar Wood Chips (Carpentry) = 4003
 
| Work Order for Cheesecloth (Textiles) = 4003
 
| Work Order for Cheesecloth (Textiles) = 4003
 +
| Work Order for Cheesy Baked Potatoes (Cooking) = 4003
 
| Work Order for Cheesy Veggie Delights (Cooking) = 4003
 
| Work Order for Cheesy Veggie Delights (Cooking) = 4003
 
| Work Order for Cheshire Cheese (Cheesemaking) = 4003
 
| Work Order for Cheshire Cheese (Cheesemaking) = 4003
Line 3,896: Line 3,919:
 
| Work Order for Oversized Mandibles = 4003
 
| Work Order for Oversized Mandibles = 4003
 
| Work Order for Pairs of Camouflaged Crude Pants (Tailoring) = 4003
 
| Work Order for Pairs of Camouflaged Crude Pants (Tailoring) = 4003
| Work Order for Pairs of Camouflaged Crude Shirts (Tailoring) = 4003
 
 
| Work Order for Pairs of Camouflaged Decent Pants (Tailoring) = 4003
 
| Work Order for Pairs of Camouflaged Decent Pants (Tailoring) = 4003
| Work Order for Pairs of Camouflaged Decent Shirts (Tailoring) = 4003
 
 
| Work Order for Pairs of Camouflaged Nice Pants (Tailoring) = 4003
 
| Work Order for Pairs of Camouflaged Nice Pants (Tailoring) = 4003
| Work Order for Pairs of Camouflaged Nice Shirts (Tailoring) = 4003
 
 
| Work Order for Pairs of Crude Cloth Pants (Tailoring) = 4003
 
| Work Order for Pairs of Crude Cloth Pants (Tailoring) = 4003
 
| Work Order for Pairs of Crude Evasion Boots (Leatherworking) = 4003
 
| Work Order for Pairs of Crude Evasion Boots (Leatherworking) = 4003
Line 4,042: Line 4,062:
 
| Work Order for Sausages (Cooking) = 4003
 
| Work Order for Sausages (Cooking) = 4003
 
| Work Order for Scrambled Eggs (Cooking) = 4003
 
| Work Order for Scrambled Eggs (Cooking) = 4003
| Work Order for Semi-Loaded Baked Potatoes (Cooking) = 4003
 
 
| Work Order for Serpentines (Surveying) = 4003
 
| Work Order for Serpentines (Surveying) = 4003
 
| Work Order for Sets of Crude Cow Shoes (Blacksmithing) = 4003
 
| Work Order for Sets of Crude Cow Shoes (Blacksmithing) = 4003
Line 4,169: Line 4,188:
 
| Yagreet's Staff = 18001
 
| Yagreet's Staff = 18001
 
| Yalogi's Calling Card = 4005
 
| Yalogi's Calling Card = 4005
| Yarn Doll = 5174
+
| Yarn Doll = 5775
| Yarn Mittens = 5174
+
| Yarn Mittens = 13005
 
| Yarn Socks = 10017
 
| Yarn Socks = 10017
 
| Yellow Game Chip = 5316
 
| Yellow Game Chip = 5316
Line 4,192: Line 4,211:
 
| #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/v282/icons/icon_<span style="color:red">Error: Item not found</span>.png |  
+
http://cdn.projectgorgon.com/v284/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 22:25, 10 June 2017

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