Difference between revisions of "Template:Item icon"
From Project: Gorgon Wiki
Extractum11 (talk | contribs) m (Updating) |
Extractum11 (talk | contribs) m (Updating) |
||
Line 1: | Line 1: | ||
{{ #if: {{{1|}}} | | {{ #if: {{{1|}}} | | ||
− | {{ #replace: http://cdn.projectgorgon.com/ | + | {{ #replace: http://cdn.projectgorgon.com/v342/icons/icon_{{ #switch: {{{1|None}}} |
| "Always The Way" = 5110 | | "Always The Way" = 5110 | ||
| "Battle of Fok" = 5793 | | "Battle of Fok" = 5793 | ||
Line 55: | Line 55: | ||
| 'Norala And Tast' = 4006 | | 'Norala And Tast' = 4006 | ||
| 'Treatment of The Poor' = 17001 | | 'Treatment of The Poor' = 17001 | ||
+ | | 3-Year Steamed Cake = 5692 | ||
| Aberration Skull = 5367 | | Aberration Skull = 5367 | ||
| Accuracy Circuit = 6351 | | Accuracy Circuit = 6351 | ||
Line 1,784: | Line 1,785: | ||
| Energy Resistance Potion = 5158 | | Energy Resistance Potion = 5158 | ||
| Engineering Deck Key = 6354 | | Engineering Deck Key = 6354 | ||
+ | | Enhanced Amulet of the Rugged Traveler = 17001 | ||
| Enhanced Cranium Powder = 5281 | | Enhanced Cranium Powder = 5281 | ||
| Enhanced Pineal Juice = 5898 | | Enhanced Pineal Juice = 5898 | ||
+ | | Enhanced Windstep Shoes = 10102 | ||
| EnlargedAppearance = 16001 | | EnlargedAppearance = 16001 | ||
| Epic Crop Mushroom Box = 5311 | | Epic Crop Mushroom Box = 5311 | ||
Line 1,800: | Line 1,803: | ||
| Event Loot Key (Universal) = 5349 | | Event Loot Key (Universal) = 5349 | ||
| Event: Small Box of Space = 5792 | | Event: Small Box of Space = 5792 | ||
− | |||
| Event: Vendor Fox in a Box = 5792 | | Event: Vendor Fox in a Box = 5792 | ||
| Ever-Glaring Jack O' Lantern = 16107 | | Ever-Glaring Jack O' Lantern = 16107 | ||
Line 2,895: | Line 2,897: | ||
| Lime Dye = 6059 | | Lime Dye = 6059 | ||
| Linen Dye = 6015 | | Linen Dye = 6015 | ||
+ | | Liquid Soul Anchor = 6397 | ||
| Live Event Token = 6345 | | Live Event Token = 6345 | ||
| Loaded Baked Potato = 5022 | | Loaded Baked Potato = 5022 | ||
Line 3,563: | Line 3,566: | ||
| Peltast Shield = 14007 | | Peltast Shield = 14007 | ||
| Pemphredo Eye = 5186 | | Pemphredo Eye = 5186 | ||
+ | | Pennoc's Pendant = 17001 | ||
+ | | Pennoc's Pendulous Pendant = 17001 | ||
+ | | Pennoc's Penknife = 5402 | ||
+ | | Pennoc's Pension = 5475 | ||
| Pepper Jack Cheese = 5337 | | Pepper Jack Cheese = 5337 | ||
| Pepper Venison = 5033 | | Pepper Venison = 5033 | ||
Line 4,935: | Line 4,942: | ||
| Title: 'Accomplished Hobo' = 5851 | | Title: 'Accomplished Hobo' = 5851 | ||
| Title: 'Adequate Gamer' = 5851 | | Title: 'Adequate Gamer' = 5851 | ||
+ | | Title: 'Adherent of the Patient Mistress' = 5851 | ||
| Title: 'Alharth Rebel' = 5851 | | Title: 'Alharth Rebel' = 5851 | ||
+ | | Title: 'Alharth's Beastmaster' = 5851 | ||
| Title: 'Ambassador of Ri-Shin' = 5851 | | Title: 'Ambassador of Ri-Shin' = 5851 | ||
| Title: 'Angry Skeleton' = 5851 | | Title: 'Angry Skeleton' = 5851 | ||
| Title: 'Anti-Savior of the Goats' = 5851 | | Title: 'Anti-Savior of the Goats' = 5851 | ||
+ | | Title: 'Arcane Enthusiast' = 5851 | ||
| Title: 'Artifex' = 5851 | | Title: 'Artifex' = 5851 | ||
| Title: 'BIPED OUTREACH PROGRAM!' = 5851 | | Title: 'BIPED OUTREACH PROGRAM!' = 5851 | ||
Line 4,944: | Line 4,954: | ||
| Title: 'Bearer of Hope' = 5851 | | Title: 'Bearer of Hope' = 5851 | ||
| Title: 'Blade Runner' = 5851 | | Title: 'Blade Runner' = 5851 | ||
+ | | Title: 'Burmese Assassin' = 5851 | ||
| Title: 'Cheese Hoarder' = 5851 | | Title: 'Cheese Hoarder' = 5851 | ||
| Title: 'Chomp Chomp' = 5851 | | Title: 'Chomp Chomp' = 5851 | ||
+ | | Title: 'Chooser of the Slain' = 5851 | ||
| Title: 'Civil Servant' = 5851 | | Title: 'Civil Servant' = 5851 | ||
| Title: 'Concubine' = 5851 | | Title: 'Concubine' = 5851 | ||
Line 4,961: | Line 4,973: | ||
| Title: 'Disciple of The Fist' = 5851 | | Title: 'Disciple of The Fist' = 5851 | ||
| Title: 'Doesn't Want A Title' = 5851 | | Title: 'Doesn't Want A Title' = 5851 | ||
+ | | Title: 'Domesticated Animal' = 5851 | ||
| Title: 'Dragonmaster' = 5851 | | Title: 'Dragonmaster' = 5851 | ||
| Title: 'Dreadnaught' = 5851 | | Title: 'Dreadnaught' = 5851 | ||
Line 4,966: | Line 4,979: | ||
| Title: 'Drunken Champion' = 5851 | | Title: 'Drunken Champion' = 5851 | ||
| Title: 'Duck Prophet' = 5851 | | Title: 'Duck Prophet' = 5851 | ||
+ | | Title: 'Dwarven King' = 5851 | ||
| Title: 'Eater of Tasty Stuff' = 5851 | | Title: 'Eater of Tasty Stuff' = 5851 | ||
| Title: 'Ebonysouled' = 5851 | | Title: 'Ebonysouled' = 5851 | ||
Line 4,973: | Line 4,987: | ||
| Title: 'Elven Orgy Lube Dispenser' = 5851 | | Title: 'Elven Orgy Lube Dispenser' = 5851 | ||
| Title: 'Ember Mage' = 5851 | | Title: 'Ember Mage' = 5851 | ||
+ | | Title: 'Emo Makeout Party Finalist' = 5851 | ||
| Title: 'Endlessly confused' = 5851 | | Title: 'Endlessly confused' = 5851 | ||
| Title: 'Enemy of Enoyos' = 5851 | | Title: 'Enemy of Enoyos' = 5851 | ||
Line 4,978: | Line 4,993: | ||
| Title: 'Expert Cave Explorer' = 5851 | | Title: 'Expert Cave Explorer' = 5851 | ||
| Title: 'Extra Medium' = 5851 | | Title: 'Extra Medium' = 5851 | ||
+ | | Title: 'Fae Pride' = 5851 | ||
| Title: 'Fairy Fish' = 5851 | | Title: 'Fairy Fish' = 5851 | ||
| Title: 'First Lord Commander' = 5851 | | Title: 'First Lord Commander' = 5851 | ||
| Title: 'Foehammer' = 5851 | | Title: 'Foehammer' = 5851 | ||
| Title: 'Force of Nature' = 5851 | | Title: 'Force of Nature' = 5851 | ||
+ | | Title: 'Forsaken by the RNGeezus' = 5851 | ||
+ | | Title: 'Fox on the Run' = 5851 | ||
| Title: 'Foxfyre' = 5851 | | Title: 'Foxfyre' = 5851 | ||
| Title: 'Free Folk' = 5851 | | Title: 'Free Folk' = 5851 | ||
Line 4,989: | Line 5,007: | ||
| Title: 'Geomancer' = 5851 | | Title: 'Geomancer' = 5851 | ||
| Title: 'Ghostbuster' = 5851 | | Title: 'Ghostbuster' = 5851 | ||
+ | | Title: 'Glorious Red Leader' = 5851 | ||
| Title: 'Goatbuster' = 5851 | | Title: 'Goatbuster' = 5851 | ||
| Title: 'God Slayer' = 5851 | | Title: 'God Slayer' = 5851 | ||
Line 5,038: | Line 5,057: | ||
| Title: 'Meow' = 5851 | | Title: 'Meow' = 5851 | ||
| Title: 'Meowx Fanclub' = 5851 | | Title: 'Meowx Fanclub' = 5851 | ||
+ | | Title: 'Moulder of Death' = 5851 | ||
| Title: 'My common sense is tingling' = 5851 | | Title: 'My common sense is tingling' = 5851 | ||
| Title: 'NO MA'AM' = 5851 | | Title: 'NO MA'AM' = 5851 | ||
Line 5,048: | Line 5,068: | ||
| Title: 'Order of the White Lotus' = 5851 | | Title: 'Order of the White Lotus' = 5851 | ||
| Title: 'Originator of the Longsword' = 5851 | | Title: 'Originator of the Longsword' = 5851 | ||
+ | | Title: 'Packrats R Us' = 5851 | ||
+ | | Title: 'Pleb' = 5851 | ||
+ | | Title: 'Prince of the Alharth Rebels' = 5851 | ||
| Title: 'Private Detective' = 5851 | | Title: 'Private Detective' = 5851 | ||
| Title: 'Project Gorgon Benefactor' = 5851 | | Title: 'Project Gorgon Benefactor' = 5851 | ||
Line 5,073: | Line 5,096: | ||
| Title: 'Sir' = 5851 | | Title: 'Sir' = 5851 | ||
| Title: 'Slayer of Chickens' = 5851 | | Title: 'Slayer of Chickens' = 5851 | ||
+ | | Title: 'Smells of Rich Mahogany' = 5851 | ||
| Title: 'Sorcerer Supreme' = 5851 | | Title: 'Sorcerer Supreme' = 5851 | ||
| Title: 'Spider Hater' = 5851 | | Title: 'Spider Hater' = 5851 | ||
Line 5,083: | Line 5,107: | ||
| Title: 'The Dark Huntress' = 5851 | | Title: 'The Dark Huntress' = 5851 | ||
| Title: 'The Elder Goat' = 5851 | | Title: 'The Elder Goat' = 5851 | ||
+ | | Title: 'The Fool On The Hill' = 5851 | ||
| Title: 'The Goonies' = 5851 | | Title: 'The Goonies' = 5851 | ||
| Title: 'The Great Deceiver' = 5851 | | Title: 'The Great Deceiver' = 5851 | ||
Line 5,088: | Line 5,113: | ||
| Title: 'The Hive Queen' = 5851 | | Title: 'The Hive Queen' = 5851 | ||
| Title: 'The Insane' = 5851 | | Title: 'The Insane' = 5851 | ||
+ | | Title: 'The Jynx' = 5851 | ||
| Title: 'The Legend' = 5851 | | Title: 'The Legend' = 5851 | ||
| Title: 'The Legendary' = 5851 | | Title: 'The Legendary' = 5851 | ||
Line 5,316: | Line 5,342: | ||
| Vague Sun Vale Treasure Rumor: Small Treasure = 4004 | | Vague Sun Vale Treasure Rumor: Small Treasure = 4004 | ||
| Vague Sun Vale Treasure Rumor: Vast Riches = 4004 | | Vague Sun Vale Treasure Rumor: Vast Riches = 4004 | ||
+ | | Vanity Pet: Summon Death on a Leash = 5792 | ||
+ | | Vanity Pet: Summon Fae Dragon = 5792 | ||
+ | | Vanity Pet: Summon Gargoyle = 5792 | ||
+ | | Vanity Pet: Summon Kraken = 5792 | ||
+ | | Vanity Pet: Summon Worghest = 5792 | ||
| Vegan Nut Barley Bread = 5111 | | Vegan Nut Barley Bread = 5111 | ||
| Vegetable Masterpiece = 5131 | | Vegetable Masterpiece = 5131 | ||
Line 6,644: | Line 6,675: | ||
| #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/ | + | http://cdn.projectgorgon.com/v342/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:00, 26 March 2021
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