Template:Item icon: Difference between revisions
Add icons for the 4 Aegis-Etched Metal Slab tiers (6994-6997) from game data v482 (fixes last errors on Leon Dasterre) |
Add 41 item icons from game data v482: 5 shield families (all tiers), Fae Soldier Shield, Viper Halberd, Orcish mining picks, Battle-Priest Pendant, Ring of Unwavering Support (fixes Shield, Druid, Hammer, Priest, Staff skill pages) |
||
| Line 3: | Line 3: | ||
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }} | {{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }} | ||
| a = {{ #switch: {{{1}}} | | a = {{ #switch: {{{1}}} | ||
| Amazing Shipwright's Shield = 14011 | |||
| Astounding Shipwright's Shield = 14011 | |||
| Awesome Shipwright's Shield = 14011 | |||
| Amazing Ranger Shield = 14013 | |||
| Astounding Ranger Shield = 14013 | |||
| Awesome Ranger Shield = 14013 | |||
| Amazing Deathspike Shield = 14014 | |||
| Astounding Deathspike Shield = 14014 | |||
| Awesome Deathspike Shield = 14014 | |||
| Amazing Embersteel Shield = 14015 | |||
| Astounding Embersteel Shield = 14015 | |||
| Awesome Embersteel Shield = 14015 | |||
| Amazing Vitriolic Shield = 14016 | |||
| Astounding Vitriolic Shield = 14016 | |||
| Awesome Vitriolic Shield = 14016 | |||
| Accelerated Orcpick Mk. 6 = 21003 | |||
| Amazing Graveyard Shield = 14012 | | Amazing Graveyard Shield = 14012 | ||
| Astounding Graveyard Shield = 14012 | | Astounding Graveyard Shield = 14012 | ||
| Line 2,946: | Line 2,962: | ||
}} | }} | ||
| f = {{ #switch: {{{1}}} | | f = {{ #switch: {{{1}}} | ||
| Fae Soldier Shield = 14008 | |||
| Foxtail Ring of Fire = 17002 | | Foxtail Ring of Fire = 17002 | ||
| Foxtail Ring of Blazes = 17002 | | Foxtail Ring of Blazes = 17002 | ||
| Line 3,377: | Line 3,394: | ||
}} | }} | ||
| g = {{ #switch: {{{1}}} | | g = {{ #switch: {{{1}}} | ||
| Great Shipwright's Shield = 14011 | |||
| Great Ranger Shield = 14013 | |||
| Great Deathspike Shield = 14014 | |||
| Great Embersteel Shield = 14015 | |||
| Great Vitriolic Shield = 14016 | |||
| Great Graveyard Shield = 14012 | | Great Graveyard Shield = 14012 | ||
| Gadgeteering: Cryogenic Pet Crate = 6339 | | Gadgeteering: Cryogenic Pet Crate = 6339 | ||
| Line 4,068: | Line 4,090: | ||
}} | }} | ||
| i = {{ #switch: {{{1}}} | | i = {{ #switch: {{{1}}} | ||
| Incredible Shipwright's Shield = 14011 | |||
| Incredible Ranger Shield = 14013 | |||
| Incredible Deathspike Shield = 14014 | |||
| Incredible Embersteel Shield = 14015 | |||
| Incredible Vitriolic Shield = 14016 | |||
| Incredible Orcish Mining Pick = 21003 | |||
| Incredible Battle-Priest's Pendant = 17303 | |||
| Ilth Hale Blood Staff = 18016 | | Ilth Hale Blood Staff = 18016 | ||
| Incredible Darkness Medallion = 17101 | | Incredible Darkness Medallion = 17101 | ||
| Line 4,810: | Line 4,839: | ||
}} | }} | ||
| m = {{ #switch: {{{1}}} | | m = {{ #switch: {{{1}}} | ||
| Marvelous Shipwright's Shield = 14011 | |||
| Marvelous Ranger Shield = 14013 | |||
| Marvelous Deathspike Shield = 14014 | |||
| Marvelous Embersteel Shield = 14015 | |||
| Marvelous Vitriolic Shield = 14016 | |||
| Marvelous Aegis-Etched Metal Slab = 6995 | | Marvelous Aegis-Etched Metal Slab = 6995 | ||
| Minimizer Staff = 18001 | | Minimizer Staff = 18001 | ||
| Line 6,236: | Line 6,270: | ||
}} | }} | ||
| q = {{ #switch: {{{1}}} | | q = {{ #switch: {{{1}}} | ||
| Quality Shipwright's Shield = 14011 | |||
| Quality Ranger Shield = 14013 | |||
| Quality Deathspike Shield = 14014 | |||
| Quality Embersteel Shield = 14015 | |||
| Quality Vitriolic Shield = 14016 | |||
| Quality Graveyard Shield = 14012 | | Quality Graveyard Shield = 14012 | ||
| Quality Aerosolizing Bat Harness = 20001 | | Quality Aerosolizing Bat Harness = 20001 | ||
| Line 6,392: | Line 6,431: | ||
}} | }} | ||
| r = {{ #switch: {{{1}}} | | r = {{ #switch: {{{1}}} | ||
| Ring of Unwavering Support = 17002 | |||
| Rabbit Boost Potion 20% = 5437 | | Rabbit Boost Potion 20% = 5437 | ||
| Rabbit Malachite = 5208 | | Rabbit Malachite = 5208 | ||
| Line 8,875: | Line 8,915: | ||
}} | }} | ||
| v = {{ #switch: {{{1}}} | | v = {{ #switch: {{{1}}} | ||
| Viper Halberd = 18017 | |||
| VIP Token = 5876 | | VIP Token = 5876 | ||
| Vagreef's Anti-Burn Hat = 16026 | | Vagreef's Anti-Burn Hat = 16026 | ||
Revision as of 09:42, 13 August 2026
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. They must also be placed alongside other "s" and "u" items.
| scroll = 4003 | Unlock = 109
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.)