Difference between revisions of "Template:Item icon"
From Project: Gorgon Wiki
(Updating Item Icons to v397 using auto-wiki generator) |
(Missed a '}}' and broke everything. Fixed!) |
||
Line 1: | Line 1: | ||
− | <!-- Updated on Thu Nov 23 2023 13: | + | <!-- Updated on Thu Nov 23 2023 13:37:44 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/v397/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }} | + | {{ #replace: http://cdn.projectgorgon.com/v397/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }} |
| a = {{ #switch: {{{1}}} | | a = {{ #switch: {{{1}}} | ||
| Aberration Skull = 5367 | | Aberration Skull = 5367 | ||
Line 740: | Line 740: | ||
| Azure Dye = 6009 | | Azure Dye = 6009 | ||
| Azurite = 5716 | | Azurite = 5716 | ||
− | }} | + | }} |
| b = {{ #switch: {{{1}}} | | b = {{ #switch: {{{1}}} | ||
| BBQ Ribs = 5933 | | BBQ Ribs = 5933 | ||
Line 1,290: | Line 1,290: | ||
| Buttered Baked Potato = 5022 | | Buttered Baked Potato = 5022 | ||
| Butterscotch-Cream Candy = 5832 | | Butterscotch-Cream Candy = 5832 | ||
− | }} | + | }} |
| c = {{ #switch: {{{1}}} | | c = {{ #switch: {{{1}}} | ||
| Cabbage Leafling = 5104 | | Cabbage Leafling = 5104 | ||
Line 1,921: | Line 1,921: | ||
| Cutting Crossbow = 22001 | | Cutting Crossbow = 22001 | ||
| Cymbal Monkey = 5971 | | Cymbal Monkey = 5971 | ||
− | }} | + | }} |
| d = {{ #switch: {{{1}}} | | d = {{ #switch: {{{1}}} | ||
| Dahlia Bouquet = 5614 | | Dahlia Bouquet = 5614 | ||
Line 2,355: | Line 2,355: | ||
| Dye Making: Teal Dye = 4003 | | Dye Making: Teal Dye = 4003 | ||
| Dye Pot = 5378 | | Dye Pot = 5378 | ||
− | }} | + | }} |
| e = {{ #switch: {{{1}}} | | e = {{ #switch: {{{1}}} | ||
| Earrings of Community = 17004 | | Earrings of Community = 17004 | ||
Line 2,545: | Line 2,545: | ||
| Eyestalk = 5791 | | Eyestalk = 5791 | ||
| Eynophille = 5196 | | Eynophille = 5196 | ||
− | }} | + | }} |
| f = {{ #switch: {{{1}}} | | f = {{ #switch: {{{1}}} | ||
| Faded Blue Book = 5519 | | Faded Blue Book = 5519 | ||
Line 2,925: | Line 2,925: | ||
| Furpot = 5395 | | Furpot = 5395 | ||
| Fury Orb = 5381 | | Fury Orb = 5381 | ||
− | }} | + | }} |
| g = {{ #switch: {{{1}}} | | g = {{ #switch: {{{1}}} | ||
| Gadgeteering: Cryogenic Pet Crate = 6339 | | Gadgeteering: Cryogenic Pet Crate = 6339 | ||
Line 3,361: | Line 3,361: | ||
| Gutsaver Medallion = 17001 | | Gutsaver Medallion = 17001 | ||
| Gypsum = 5013 | | Gypsum = 5013 | ||
− | }} | + | }} |
| h = {{ #switch: {{{1}}} | | h = {{ #switch: {{{1}}} | ||
| Haerel Cheese = 5337 | | Haerel Cheese = 5337 | ||
Line 3,524: | Line 3,524: | ||
| Hydration Punch = 5395 | | Hydration Punch = 5395 | ||
| Hypnotic Shield = 14002 | | Hypnotic Shield = 14002 | ||
− | }} | + | }} |
| i = {{ #switch: {{{1}}} | | i = {{ #switch: {{{1}}} | ||
| I'd Rather Be Fletching = 4006 | | I'd Rather Be Fletching = 4006 | ||
Line 3,639: | Line 3,639: | ||
| Ivory Spoon = 5165 | | Ivory Spoon = 5165 | ||
| Ivyn's Family Pants = 11106 | | Ivyn's Family Pants = 11106 | ||
− | }} | + | }} |
| j = {{ #switch: {{{1}}} | | j = {{ #switch: {{{1}}} | ||
| Jack O' Lantern = 5408 | | Jack O' Lantern = 5408 | ||
Line 3,688: | Line 3,688: | ||
| Juniper Berries = 5725 | | Juniper Berries = 5725 | ||
| Juniper Wine = 5722 | | Juniper Wine = 5722 | ||
− | }} | + | }} |
| k = {{ #switch: {{{1}}} | | k = {{ #switch: {{{1}}} | ||
| Kagogi's Calling Card = 4005 | | Kagogi's Calling Card = 4005 | ||
Line 3,783: | Line 3,783: | ||
| Kuvou Poison Sack = 6409 | | Kuvou Poison Sack = 6409 | ||
| Kuvou Tongue = 6408 | | Kuvou Tongue = 6408 | ||
− | }} | + | }} |
| l = {{ #switch: {{{1}}} | | l = {{ #switch: {{{1}}} | ||
| Lac = 5551 | | Lac = 5551 | ||
Line 4,059: | Line 4,059: | ||
| Lydia's Soul = 5278 | | Lydia's Soul = 5278 | ||
| Lyramis Shoes = 10008 | | Lyramis Shoes = 10008 | ||
− | }} | + | }} |
| m = {{ #switch: {{{1}}} | | m = {{ #switch: {{{1}}} | ||
| MEGA Raffle Prize Token = 6326 | | MEGA Raffle Prize Token = 6326 | ||
Line 4,433: | Line 4,433: | ||
| Mysterious Monster Spine (Povus) = 6438 | | Mysterious Monster Spine (Povus) = 6438 | ||
| Mystery Jerky = 5033 | | Mystery Jerky = 5033 | ||
− | }} | + | }} |
| n = {{ #switch: {{{1}}} | | n = {{ #switch: {{{1}}} | ||
| Nameless Gauntlets = 13104 | | Nameless Gauntlets = 13104 | ||
Line 4,636: | Line 4,636: | ||
| Novice's Rat Belt = 20001 | | Novice's Rat Belt = 20001 | ||
| Numbered Ertrigard Painting = 5107 | | Numbered Ertrigard Painting = 5107 | ||
− | }} | + | }} |
| o = {{ #switch: {{{1}}} | | o = {{ #switch: {{{1}}} | ||
| Oak Dowels = 5275 | | Oak Dowels = 5275 | ||
Line 4,793: | Line 4,793: | ||
| Owl Jack O' Lantern = 5409 | | Owl Jack O' Lantern = 5409 | ||
| Oyster Knife = 5402 | | Oyster Knife = 5402 | ||
− | }} | + | }} |
| p = {{ #switch: {{{1}}} | | p = {{ #switch: {{{1}}} | ||
| Painting of Ema = 5108 | | Painting of Ema = 5108 | ||
Line 5,195: | Line 5,195: | ||
| PvP Juice = 5087 | | PvP Juice = 5087 | ||
| Pyrite = 5590 | | Pyrite = 5590 | ||
− | }} | + | }} |
| q = {{ #switch: {{{1}}} | | q = {{ #switch: {{{1}}} | ||
| Quality Aerosolizing Bat Harness = 20001 | | Quality Aerosolizing Bat Harness = 20001 | ||
Line 5,327: | Line 5,327: | ||
| Quarter Hoop = 5321 | | Quarter Hoop = 5321 | ||
| Quartz = 5201 | | Quartz = 5201 | ||
− | }} | + | }} |
| r = {{ #switch: {{{1}}} | | r = {{ #switch: {{{1}}} | ||
| Rabbit Boost Potion 20% = 5437 | | Rabbit Boost Potion 20% = 5437 | ||
Line 5,679: | Line 5,679: | ||
| Rusty Sword = 15009 | | Rusty Sword = 15009 | ||
| Ruxandra's Bite = 15403 | | Ruxandra's Bite = 15403 | ||
− | }} | + | }} |
| s = {{ #switch: {{{1}}} | | s = {{ #switch: {{{1}}} | ||
| Sacred Guardian Trident = 18019 | | Sacred Guardian Trident = 18019 | ||
Line 6,518: | Line 6,518: | ||
| Symbols of Darkness = 5115 | | Symbols of Darkness = 5115 | ||
| Syndra's Winter Coat = 12008 | | Syndra's Winter Coat = 12008 | ||
− | }} | + | }} |
| t = {{ #switch: {{{1}}} | | t = {{ #switch: {{{1}}} | ||
| Tabor's Blade of Supremacy = 15005 | | Tabor's Blade of Supremacy = 15005 | ||
Line 7,301: | Line 7,301: | ||
| Tyler's Shield = 14002 | | Tyler's Shield = 14002 | ||
| Typical Animal Fat = 6369 | | Typical Animal Fat = 6369 | ||
− | }} | + | }} |
| u = {{ #switch: {{{1}}} | | u = {{ #switch: {{{1}}} | ||
| Ugly Helm = 16104 | | Ugly Helm = 16104 | ||
Line 7,412: | Line 7,412: | ||
| Ursula's Ri-Shin Gift = 16007 | | Ursula's Ri-Shin Gift = 16007 | ||
| Utility Knife = 5401 | | Utility Knife = 5401 | ||
− | }} | + | }} |
| v = {{ #switch: {{{1}}} | | v = {{ #switch: {{{1}}} | ||
| VIP Token = 5876 | | VIP Token = 5876 | ||
Line 7,464: | Line 7,464: | ||
| Voile Muslin = 5328 | | Voile Muslin = 5328 | ||
| Vurrkan's Heart = 5168 | | Vurrkan's Heart = 5168 | ||
− | }} | + | }} |
| w = {{ #switch: {{{1}}} | | w = {{ #switch: {{{1}}} | ||
| Walleye Fillet = 5036 | | Walleye Fillet = 5036 | ||
Line 8,864: | Line 8,864: | ||
| Worm Tooth = 5290 | | Worm Tooth = 5290 | ||
| Written Book = 4006 | | Written Book = 4006 | ||
− | }} | + | }} |
| x = {{ #switch: {{{1}}} | | x = {{ #switch: {{{1}}} | ||
| Xedrite = 6235 | | Xedrite = 6235 | ||
| Xiphos = 15001 | | Xiphos = 15001 | ||
| Xogrite Chunk = 6405 | | Xogrite Chunk = 6405 | ||
− | }} | + | }} |
| y = {{ #switch: {{{1}}} | | y = {{ #switch: {{{1}}} | ||
| Yagreet's Staff = 18007 | | Yagreet's Staff = 18007 | ||
Line 8,913: | Line 8,913: | ||
| Yurra's Note = 4004 | | Yurra's Note = 4004 | ||
| Yyllastra = 5196 | | Yyllastra = 5196 | ||
− | }} | + | }} |
| z = {{ #switch: {{{1}}} | | z = {{ #switch: {{{1}}} | ||
| ZombieSkinColoration = 16001 | | ZombieSkinColoration = 16001 | ||
| Zombified Hand = 5407 | | Zombified Hand = 5407 | ||
| Zukelmux's Insignia Ring = 17002 | | Zukelmux's Insignia Ring = 17002 | ||
+ | }} | ||
| {{ #switch: {{{1}}} | | {{ #switch: {{{1}}} | ||
| "Always The Way" = 5110 | | "Always The Way" = 5110 |
Revision as of 15:38, 23 November 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.)