Difference between revisions of "Template:Item icon"
From Project: Gorgon Wiki
Bobsjobisfob (talk | contribs) m |
(Updating Item Icons to v399 using auto-wiki generator) |
||
Line 1: | Line 1: | ||
− | <!-- Updated on | + | <!-- Updated on Tue Dec 05 2023 14:53:41 GMT-0700 (Mountain Standard Time) using FoxnEagle's auto-wiki-generator --> |
<includeonly>{{ #switch: {{{2}}} | 1 | 32 = <span class="extimage32px">| 2 | 64 = <span class="extimage64px"> | }}{{ #if: {{{1|}}} | | <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/v399/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }} |
| a = {{ #switch: {{{1}}} | | a = {{ #switch: {{{1}}} | ||
| Aberration Skull = 5367 | | Aberration Skull = 5367 | ||
Line 94: | Line 94: | ||
| Alchemy: Strong Antivenom = 4003 | | Alchemy: Strong Antivenom = 4003 | ||
| Alchemy: Swimming Potion = 4003 | | Alchemy: Swimming Potion = 4003 | ||
+ | | Alchemy: Tempest in a Teapot = 4003 | ||
| Alchemy: The Hows and Whys of Acid = 4003 | | Alchemy: The Hows and Whys of Acid = 4003 | ||
| Alchemy: Trollbane Oil = 4003 | | Alchemy: Trollbane Oil = 4003 | ||
Line 723: | Line 724: | ||
| Awesome Spider Casing = 12025 | | Awesome Spider Casing = 12025 | ||
| Awesome Spring Fairy Leggings = 11011 | | Awesome Spring Fairy Leggings = 11011 | ||
+ | | Awesome Spring Fairy Shoes = 10011 | ||
| Awesome Spring Fairy Top = 12011 | | Awesome Spring Fairy Top = 12011 | ||
| Awesome Tannin Powder = 5180 | | Awesome Tannin Powder = 5180 | ||
Line 1,928: | Line 1,930: | ||
| Daisy Bouquet = 5606 | | Daisy Bouquet = 5606 | ||
| Daisy Seeds = 5463 | | Daisy Seeds = 5463 | ||
− | | Daisy = | + | | Daisy = 5380 |
| Danablu Cheese = 5342 | | Danablu Cheese = 5342 | ||
| Danburite = 5453 | | Danburite = 5453 | ||
Line 2,348: | Line 2,350: | ||
| Dye Making: Chartreuse Dye = 4003 | | Dye Making: Chartreuse Dye = 4003 | ||
| Dye Making: Dark Sea Green Dye = 4003 | | Dye Making: Dark Sea Green Dye = 4003 | ||
+ | | Dye Making: Electric Cyan Dye = 4003 | ||
| Dye Making: Electric Yellow Dye = 4003 | | Dye Making: Electric Yellow Dye = 4003 | ||
| Dye Making: Medium Aquamarine Dye = 4003 | | Dye Making: Medium Aquamarine Dye = 4003 | ||
Line 2,464: | Line 2,467: | ||
| Enhanced Pineal Juice = 5898 | | Enhanced Pineal Juice = 5898 | ||
| Enhanced Windstep Shoes = 10102 | | Enhanced Windstep Shoes = 10102 | ||
+ | | Enhanced Yarn = 6573 | ||
| EnlargedAppearance = 16001 | | EnlargedAppearance = 16001 | ||
| Enticing Wax = 6448 | | Enticing Wax = 6448 | ||
Line 3,665: | Line 3,669: | ||
| Jewelry Crafting: Amazing Battle-Priest's Pendant = 4003 | | Jewelry Crafting: Amazing Battle-Priest's Pendant = 4003 | ||
| Jewelry Crafting: Amazing Darkness Medallion = 4003 | | Jewelry Crafting: Amazing Darkness Medallion = 4003 | ||
− | |||
| Jewelry Crafting: Astounding Battle-Priest's Pendant = 4003 | | Jewelry Crafting: Astounding Battle-Priest's Pendant = 4003 | ||
| Jewelry Crafting: Astounding Darkness Medallion = 4003 | | Jewelry Crafting: Astounding Darkness Medallion = 4003 | ||
+ | | Jewelry Crafting: Astounding Enchanted Necklace = 4003 | ||
| Jewelry Crafting: Astounding Magic Ring = 4003 | | Jewelry Crafting: Astounding Magic Ring = 4003 | ||
| Jewelry Crafting: Astounding Porcine Blast Disperser = 4003 | | Jewelry Crafting: Astounding Porcine Blast Disperser = 4003 | ||
Line 4,117: | Line 4,121: | ||
| Magic Ooze Syrup = 6249 | | Magic Ooze Syrup = 6249 | ||
| Magic Sand = 5516 | | Magic Sand = 5516 | ||
+ | | Magic Teapot = 6572 | ||
| Magic Tooth = 5184 | | Magic Tooth = 5184 | ||
| Magical Candy Cane = 5691 | | Magical Candy Cane = 5691 | ||
Line 4,671: | Line 4,676: | ||
| Orange Cat = 5225 | | Orange Cat = 5225 | ||
| Orange Dye = 6029 | | Orange Dye = 6029 | ||
+ | | Orange Hubris = 6569 | ||
| Orange Juice = 5395 | | Orange Juice = 5395 | ||
| Orange Perch = 5132 | | Orange Perch = 5132 | ||
Line 5,191: | Line 5,197: | ||
| Pure Pineal Juice = 5897 | | Pure Pineal Juice = 5897 | ||
| Purple Dye = 6095 | | Purple Dye = 6095 | ||
+ | | Purple Firework = 6528 | ||
| PvP Juice (30 minutes) = 5087 | | PvP Juice (30 minutes) = 5087 | ||
| PvP Juice (60 minutes) = 5087 | | PvP Juice (60 minutes) = 5087 | ||
Line 5,469: | Line 5,476: | ||
| Recall Stone = 5199 | | Recall Stone = 5199 | ||
| Recipe: Large Confetti Bomb = 4006 | | Recipe: Large Confetti Bomb = 4006 | ||
+ | | Recipe: Magic Teapot = 4006 | ||
+ | | Recipe: Purple Fireworks = 4006 | ||
| Recipe: Small Fireworks = 4006 | | Recipe: Small Fireworks = 4006 | ||
| Recipe: Words of Power 2 (transcribed) = 4003 | | Recipe: Words of Power 2 (transcribed) = 4003 | ||
Line 6,686: | Line 6,695: | ||
| Telka's Teeth (Clean Sample) = 6248 | | Telka's Teeth (Clean Sample) = 6248 | ||
| Temperature Control Gloves = 13101 | | Temperature Control Gloves = 13101 | ||
+ | | Tempest in a Teapot = 6572 | ||
| Tench Fillet = 5036 | | Tench Fillet = 5036 | ||
| Tench = 6501 | | Tench = 6501 | ||
Line 6,691: | Line 6,701: | ||
| Tentakiller Tentacle = 6407 | | Tentakiller Tentacle = 6407 | ||
| Tequila = 5722 | | Tequila = 5722 | ||
+ | | Thank You Cake = 5714 | ||
| The Alchemist's Screams = 4003 | | The Alchemist's Screams = 4003 | ||
| The Blasting Ultimator = 5296 | | The Blasting Ultimator = 5296 | ||
Line 6,861: | Line 6,872: | ||
| Title: 'Force of Nature' = 5851 | | Title: 'Force of Nature' = 5851 | ||
| Title: 'Forsaken by the RNGeezus' = 5851 | | Title: 'Forsaken by the RNGeezus' = 5851 | ||
+ | | Title: 'Fox Rox' = 5851 | ||
| Title: 'Fox on the Run' = 5851 | | Title: 'Fox on the Run' = 5851 | ||
| Title: 'Foxfyre' = 5851 | | Title: 'Foxfyre' = 5851 | ||
Line 6,937: | Line 6,949: | ||
| Title: 'Lemony Fresh' = 5851 | | Title: 'Lemony Fresh' = 5851 | ||
| Title: 'Living the dream within a dream.' = 5851 | | Title: 'Living the dream within a dream.' = 5851 | ||
+ | | Title: 'Lone Wolf' = 5851 | ||
| Title: 'Longs For The Sea' = 5851 | | Title: 'Longs For The Sea' = 5851 | ||
| Title: 'Longshot' = 5851 | | Title: 'Longshot' = 5851 | ||
Line 7,044: | Line 7,057: | ||
| Title: 'Sir' = 5851 | | Title: 'Sir' = 5851 | ||
| Title: 'Skeleton Knight' = 5851 | | Title: 'Skeleton Knight' = 5851 | ||
+ | | Title: 'Slaughterer Extraordinaire' = 5851 | ||
| Title: 'Slayer of Chickens' = 5851 | | Title: 'Slayer of Chickens' = 5851 | ||
| Title: 'Slayer of Old Snouty' = 5851 | | Title: 'Slayer of Old Snouty' = 5851 | ||
Line 7,175: | Line 7,189: | ||
| Toolcrafting Textbook (Levels 96-100) = 6399 | | Toolcrafting Textbook (Levels 96-100) = 6399 | ||
| Toolcrafting: Amazing Arachnid Harness = 4003 | | Toolcrafting: Amazing Arachnid Harness = 4003 | ||
− | |||
| Toolcrafting: Astounding Arachnid Harness = 4003 | | Toolcrafting: Astounding Arachnid Harness = 4003 | ||
| Toolcrafting: Astounding Skinning Knife = 4003 | | Toolcrafting: Astounding Skinning Knife = 4003 | ||
Line 7,195: | Line 7,208: | ||
| Toolcrafting: Awesome Snail Helm = 4003 | | Toolcrafting: Awesome Snail Helm = 4003 | ||
| Toolcrafting: Awesome Spring Fairy Leggings = 4003 | | Toolcrafting: Awesome Spring Fairy Leggings = 4003 | ||
+ | | Toolcrafting: Awesome Spring Fairy Shoes = 4003 | ||
| Toolcrafting: Awesome Spring Fairy Top = 4003 | | Toolcrafting: Awesome Spring Fairy Top = 4003 | ||
| Toolcrafting: Carbon-Form Scrutinizer Array = 4003 | | Toolcrafting: Carbon-Form Scrutinizer Array = 4003 | ||
Line 7,234: | Line 7,248: | ||
| Transport Security Card = 6361 | | Transport Security Card = 6361 | ||
| Trarto's Calling Card = 4005 | | Trarto's Calling Card = 4005 | ||
+ | | Trasen's Refined Wand = 18022 | ||
+ | | Trasen's Wand = 18022 | ||
| Treachery Trooper Armor = 12010 | | Treachery Trooper Armor = 12010 | ||
| Treachery Trooper Boots = 10010 | | Treachery Trooper Boots = 10010 | ||
Line 9,000: | Line 9,016: | ||
}} | }} | ||
}}.png | }}.png | ||
− | | http://cdn.projectgorgon.com/ | + | | http://cdn.projectgorgon.com/v399/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 12:16, 6 December 2023
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
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.)