Template:Img item/icon: Difference between revisions
(Created page with "<includeonly>{{#switch: {{{item}}}<!-- ## AMMO ## --> | Bullets9mm|9mm Rounds|9mm Round = 40calAmmoBox | Bullets9mmBox|Box of 9mm Bullets = HandgunAmmoBox | 9mmClip|9mm...") |
m (Add Coldpack) |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
| Bullets9mm|9mm Rounds|9mm Round = 40calAmmoBox | | Bullets9mm|9mm Rounds|9mm Round = 40calAmmoBox | ||
| Bullets9mmBox|Box of 9mm Bullets = HandgunAmmoBox | | Bullets9mmBox|Box of 9mm Bullets = HandgunAmmoBox | ||
| 9mmClip|9mm Magazine = BerettaClip | | 9mmClip|9mm Magazine|M9 Magazine = BerettaClip | ||
| Bullets45|.45 Auto|.45 Auto Round = 40calAmmoBox | | Bullets45|.45 Auto|.45 Auto Round = 40calAmmoBox | ||
| Bullets45Box|Box of .45 Auto Bullets|Box of .45 Auto Rounds = HandgunAmmoBox | | Bullets45Box|Box of .45 Auto Bullets|Box of .45 Auto Rounds = HandgunAmmoBox | ||
| 45Clip|.45 Auto Magazine = BerettaClip | | 45Clip|.45 Auto Magazine|M1911 Auto Magazine = BerettaClip | ||
| Bullets44|.44 Magnum Bullets|.44 Magnum Round = 40calAmmoBox | | Bullets44|.44 Magnum Bullets|.44 Magnum Round = 40calAmmoBox | ||
| Bullets44Box|Box of .44 Magnum Bullets|Box of .44 Magnum Rounds = HandgunAmmoBox | | Bullets44Box|Box of .44 Magnum Bullets|Box of .44 Magnum Rounds = HandgunAmmoBox | ||
| 44Clip|.44 Magazine = BerettaClip | | 44Clip|.44 Magazine|D-E Magazine = BerettaClip | ||
| Bullets38|.38 Special Bullets|.38 Special Round = 40calAmmoBox | | Bullets38|.38 Special Bullets|.38 Special Round = 40calAmmoBox | ||
| Bullets38Box|Box of .38 Special Bullets|Box of .38 Special Rounds = HandgunAmmoBox | | Bullets38Box|Box of .38 Special Bullets|Box of .38 Special Rounds = HandgunAmmoBox | ||
Line 19: | Line 19: | ||
| 223Bullets|.223 Ammo|.223 Round = RifleAmmo223loose | | 223Bullets|.223 Ammo|.223 Round = RifleAmmo223loose | ||
| 223Box|Box of .223 Bullets|Box of .223 Rounds = RifleAmmo223 | | 223Box|Box of .223 Bullets|Box of .223 Rounds = RifleAmmo223 | ||
| 223Clip|.223 Magazine = BerettaClip | | 223Clip|.223 Magazine|MSR700 Magazine = BerettaClip | ||
| 308Bullets|.308 Ammo|.308 Round = RifleAmmo308loose | | 308Bullets|.308 Ammo|.308 Round = RifleAmmo308loose | ||
| 308Box|Box of .308 Bullets|Box of .308 Rounds = RifleAmmo308 | | 308Box|Box of .308 Bullets|Box of .308 Rounds = RifleAmmo308 | ||
| 308Clip|.308 Magazine = BerettaClip | | 308Clip|.308 Magazine|MSR788 Magazine = BerettaClip | ||
| 556Bullets|.556 Ammo|. | | 556Bullets|.556 Ammo|5.56mm Round = RifleAmmo308loose | ||
| 556Box|Box of .556 Bullets|Box of .556 Rounds = RifleAmmo308 | | 556Box|Box of .556 Bullets|Box of .556 Rounds = RifleAmmo308 | ||
| 556Clip|.556 Magazine = BerettaClip | | 556Clip|.556 Magazine|M16 Magazine = BerettaClip | ||
| M14Clip|.308 Magazine = BerettaClip<!-- | | M14Clip|.308 Magazine|M14 Magazine = BerettaClip<!-- | ||
## FIREARMS ## | ## FIREARMS ## | ||
Line 44: | Line 44: | ||
| Revolver_Short|M36 Revolver = RevolverShort | | Revolver_Short|M36 Revolver = RevolverShort | ||
| AssaultRifle|M16 Assault Rifle = AssaultRifle | | AssaultRifle|M16 Assault Rifle = AssaultRifle | ||
| AssaultRifle2|M14 Single Shot Assault Rifle = AssaultRifle2<!-- | | AssaultRifle2|M14 Single Shot Assault Rifle|M14 Rifle = AssaultRifle2<!-- | ||
## WEAPON ATTACHMENTS ## | |||
--> | |||
| IronSight|Iron Sight = ScopeIronSight | |||
| x2Scope|x2 Scope = Scope2x | |||
| x4Scope|x4 Scope = Scope4x | |||
| x8Scope|x8 Scope = Scope8x | |||
| AmmoStraps|Ammo Straps = AmmoStrap | |||
| Sling|Sling = GunSling | |||
| FiberglassStock|Fiberglass Stock = RifleFibreglassStock | |||
| RecoilPad|Recoil Pad = RifleRecoilPad | |||
| Laser|Laser = HandgunLaser | |||
| RedDot|Red Dot = RedDot | |||
| GunLight|Gun Light = RedDot | |||
| Bayonnet|Bayonnet|Bayonet = HuntingKnife | |||
| ChokeTubeFull|Choke Tube Full|Choke Tube - Full = ShotgunChoke | |||
| ChokeTubeImproved|Choke Tube Improved|Choke Tube - Improved = ShotgunChoke<!-- | |||
## TRAPS ## | ## TRAPS ## | ||
Line 77: | Line 95: | ||
| Denim|denim = DenimStrips | | Denim|denim = DenimStrips | ||
| Leather|leather = LeatherStrips | | Leather|leather = LeatherStrips | ||
| ElectronicsScrap|Electronics Scrap|Scrap Electronics|Electronics = ElectronicsScrap <!-- | |||
## LITERATURE ## | |||
--> | |||
| Book|book = Book | |||
| BookTrapping1|Trapping for Beginners = Book4 | |||
| BookTrapping2|Trapping for Intermediates = Book4 | |||
| BookTrapping3|Advanced Trapping = Book4 | |||
| BookTrapping4|Expert Trapping = Book4 | |||
| BookTrapping5|Master Trapping = Book4 | |||
| BookFishing1|Fishing for Beginners = Book5 | |||
| BookFishing2|Fishing for Intermediates = Book5 | |||
| BookFishing3|Advanced Fishing = Book5 | |||
| BookFishing4|Expert Fishing = Book5 | |||
| BookFishing5|Master Fishing = Book5 | |||
| BookCarpentry1|Carpentry for Beginners = Book6 | |||
| BookCarpentry2|Carpentry for Intermediates = Book6 | |||
| BookCarpentry3|Advanced Carpentry = Book6 | |||
| BookCarpentry4|Expert Carpentry = Book6 | |||
| BookCarpentry5|Master Carpentry = Book6 | |||
| BookFirstAid1|First Aid for Beginners = Book2 | |||
| BookFirstAid2|First Aid for Intermediates = Book2 | |||
| BookFirstAid3|Advanced First Aid = Book2 | |||
| BookFirstAid4|Expert First Aid = Book2 | |||
| BookFirstAid5|Master First Aid = Book2 | |||
| BookBlacksmith1|Blacksmith for Beginners = Book6 | |||
| BookBlacksmith2|Blacksmith for Intermediates = Book6 | |||
| BookBlacksmith3|Advanced Blacksmith = Book6 | |||
| BookBlacksmith4|Expert Blacksmith = Book6 | |||
| BookBlacksmith5|Master Blacksmith = Book6 | |||
| BookMetalWelding1|Metalwork for Beginners = Book7 | |||
| BookMetalWelding2|Metalwork for Intermediates = Book7 | |||
| BookMetalWelding3|Advanced Metalwork = Book7 | |||
| BookMetalWelding4|Expert Metalwork = Book7 | |||
| BookMetalWelding5|Master Metalwork = Book7 | |||
| BookElectrician1|Electricity for Beginners = Book6 | |||
| BookElectrician2|Electricity for Intermediates = Book6 | |||
| BookElectrician3|Advanced Electricity = Book6 | |||
| BookElectrician4|Expert Electricity = Book6 | |||
| BookElectrician5|Master Electricity = Book6 | |||
| BookCooking1|Cooking for Beginners = Book9 | |||
| BookCooking2|Cooking for Intermediates = Book9 | |||
| BookCooking3|Advanced Cooking = Book9 | |||
| BookCooking4|Expert Cooking = Book9 | |||
| BookCooking5|Master Cooking = Book9 | |||
| BookFarming1|Farming for Beginners = Book3 | |||
| BookFarming2|Farming for Intermediates = Book3 | |||
| BookFarming3|Advanced Farming = Book3 | |||
| BookFarming4|Expert Farming = Book3 | |||
| BookFarming5|Master Farming = Book3 | |||
| BookForaging1|Foraging for Beginners = Book10 | |||
| BookForaging2|Foraging for Intermediates = Book10 | |||
| BookForaging3|Advanced Foraging = Book10 | |||
| BookForaging4|Expert Foraging = Book10 | |||
| BookForaging5|Master Foraging = Book10 | |||
| BookTailoring1|Tailoring for Beginners = Book11 | |||
| BookTailoring2|Tailoring for Intermediates = Book11 | |||
| BookTailoring3|Advanced Tailoring = Book11 | |||
| BookTailoring4|Expert Tailoring = Book11 | |||
| BookTailoring5|Master Tailoring = Book11 | |||
| FarmingMag1|The Farming Magazine = MagazineFish | |||
| FishingMag1|Angler USA Magazine Vol. 1 = MagazineFish | |||
| FishingMag2|Angler USA Magazine Vol. 2 = MagazineFish2 | |||
| HuntingMag1|The Hunter Magazine Vol. 1 = MagazineHunting | |||
| HuntingMag2|The Hunter Magazine Vol. 2 = MagazineHunting2 | |||
| HuntingMag3|The Hunter Magazine Vol. 3 = MagazineHunting3 | |||
| HerbalistMag|The Herbalist = MagazineFood | |||
| MetalworkMag1|The Metalwork Magazine Vol. 1 = MagazineWelding1 | |||
| MetalworkMag2|The Metalwork Magazine Vol. 2 = MagazineWelding2 | |||
| MetalworkMag3|The Metalwork Magazine Vol. 3 = MagazineWelding3 | |||
| MetalworkMag4|The Metalwork Magazine Vol. 4 = MagazineWelding3 | |||
| SmithingMag1|The Smithing Magazine Vol. 1 = MagazineBlacksmith1 | |||
| SmithingMag2|The Smithing Magazine Vol. 2 = MagazineBlacksmith2 | |||
| SmithingMag3|The Smithing Magazine Vol. 3 = MagazineBlacksmith3 | |||
| SmithingMag4|The Smithing Magazine Vol. 4 = MagazineBlacksmith4 | |||
| CookingMag1|Good Cooking Magazine Vol. 1 = MagazineFood | |||
| CookingMag2|Good Cooking Magazine Vol. 2 = MagazineFood2 | |||
| ElectronicsMag1|Electronics Magazine Vol. 1 = MagazineElectronics01 | |||
| ElectronicsMag2|Electronics Magazine Vol. 2 = MagazineElectronics03 | |||
| ElectronicsMag3|Electronics Magazine Vol. 3 = MagazineElectronics04 | |||
| ElectronicsMag4|How to Use Generators = MagazineElectronics02 | |||
| ElectronicsMag5|Electronics Magazine Vol. 4 = MagazineElectronics03 | |||
| EngineerMagazine1|Engineer Magazine Vol. 1 = MagazineMechanics | |||
| EngineerMagazine2|Engineer Magazine Vol. 2 = MagazineMechanics | |||
| RadioMag1|Guerilla Radio Vol. 1 = MagazineElectronics01 | |||
| RadioMag2|EGuerilla Radio Vol. 2 = MagazineElectronics04 | |||
| RadioMag3|Guerilla Radio Vol. 3 = MagazineMechanics | |||
| MechanicMag1|Laines Auto Manual - Standard Models = MagazineMechanic1 | |||
| MechanicMag2|Laines Auto Manual - Commercial Models = MagazineMechanic2 | |||
| MechanicMag3|Laines Auto Manual - Performance Models = MagazineMechanic3 | |||
| Notebook|Empty Notebook = Notebook | |||
| Doodle|Doodle = Paper | |||
| Journal|Journal = Notebook | |||
| Magazine|Magazine = Magazine | |||
| HottieZ|HottieZ = MagazineNudie1 | |||
| Newspaper|Newspaper = Newspaper | |||
| SheetPaper2|Sheet of Paper = Paper | |||
| ComicBook|Comic Book = ComicBook<!-- | |||
## MEDICAL ## | |||
--> | |||
| Coldpack = Coldpack | |||
| Bandaid|Adhesive Bandages = Bandaid | |||
| Bandage = Bandage | |||
| AlcoholBandage|Sterilized Bandage = Bandage | |||
| BandageDirty|Dirty Bandage = BandageDirty | |||
| DenimStrips|Denim Strips = DenimStrips | |||
| DenimStripsDirty|Dirty Denim Strips = DenimStrips | |||
| LeatherStrips|Leather Strips = LeatherStrips | |||
| LeatherStripsDirty|Dirty Leather Strips = LeatherStrips | |||
| RippedSheets|Ripped Sheets = Rag | |||
| AlcoholRippedSheets|Sterilized Rag = Rag | |||
| RippedSheetsDirty|Dirty Rag = RagDirty | |||
| Splint = Splint | |||
| AlcoholWipes|Alcohol Wipes = AlcoholWipes | |||
| Disinfectant|Bottle of Disinfectant = Alcohol | |||
| AlcoholedCottonBalls|Cotton Balls Doused in Alcohol = CottonBalls | |||
| WhiskeyFull|Bourbon = WhiskeyFull | |||
| BlackSage|Black Sage = BlackSage | |||
| Comfrey = Comfrey | |||
| CommonMallow|Common Mallow = CommonMallow | |||
| Ginseng = Ginseng | |||
| LemonGrass|Lemongrass = LemonGrass | |||
| Plantain = Plantain | |||
| WildGarlic|Wild Garlic = WildGarlic | |||
| ComfreyCataplasm|Comfrey Poultice = MashedHerbs | |||
| PlantainCataplasm|Plantain Poultice = MashedHerbs | |||
| WildGarlicCataplasm|Wild Garlic Poultice = MashedHerbs | |||
| BathTowel|Bath Towel = Bathtowel | |||
| CottonBalls|Cotton Balls = CottonBalls | |||
| DishCloth|Dish Cloth = Dishtowel | |||
| SutureNeedle|Suture Needle = SutureNeedle | |||
| SutureNeedleHolder|Suture Needle Holder = SutureNeedleHolder | |||
| Tissue = Tissue | |||
| Tweezers = Tweezers | |||
| Antibiotics = Antibiotics | |||
| PillsAntiDep|Antidepressants = PillsAntidepressant | |||
| PillsBeta|Beta Blockers = PillsBetablocker | |||
| Cigarettes = IckySticks | |||
| Pills|Painkillers = PillsPainkiller | |||
| PillsSleepingTablets|Sleeping Tablets = PillsSleeping | |||
| PillsVitamins|Vitamins = Vitamins<!-- | |||
## WEAPONS ## | |||
--> | |||
| Saucepan = SaucepanEmpty | |||
| Plank = Plank<!-- | |||
## OTHER ## | |||
--> | |||
| WaterDrop|Water Drop|Water = WaterDrop | |||
| WaterSaucepan|Saucepan with Water = SaucepanEmpty | |||
| Pot|Cooking Pot = Pot | |||
| WaterPot|Cooking Pot with Water = Pot_Water | |||
| TreeBranch|Tree Branch = Branch | |||
| WoodenStick|Sturdy Stick = TZ_WoodenStick | |||
| MortarPestle|Mortar and Pestle = MortarPestle | |||
| Lighter = Lighter | |||
| #default = image | | #default = image | ||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 15:47, 19 November 2023
{{Img item/icon}}
is a subtemplate of {{Img item}}
. This functions as an icon index for all items.
This template uses a switch, searching for a matching input string, returning an output string.
Usage
Although a subtemplate, this can function as a standalone template to lookup an icon for an item.
The input string should be the item's item ID (excluding the module) or the display name.
{{Img item/icon|item=Item ID <!-- or DisplayName -->}}
Adding to index
The index can be added to by:
- Click "Edit" (top-right)
- Copy the following snippet and paste in a new line, after the switch (top) and before the default (bottom):
| ID| DisplayName = Output
- Replace:
ID
with the Item's ID (excluding the module),DisplayName
with the Item's display name (as it appears in-game), andOutput
with the file you want to display (without the file extension e.g. PNG).- Additional input strings can be added by placing a pipe
|
followed by the string after the last input string, but before the equals symbol=
- Example:
| LemonGrass| Lemongrass| Lemon Grass = Lemongrass
- Example:
- Any additional input strings should be:
- Previous item names, e.g. Whiskey Bottle or Bourbon
- Alternate item names, i.e. name in script file may be different to in-game item name (this is contained in ItemName_EN.txt), e.g. Lemon Grass or Lemongrass
- UK vs US spelling, e.g. Tire or Tyre
- Additional input strings can be added by placing a pipe
- Also add to
{{Img item/name}}
and{{Img_item/link}}
Example
Type | Produces | Explanation |
---|---|---|
{{Img item/icon|item=ShotgunShellsBox}} |
ShotgunAmmoBox | Using the item ID |
{{Img item/icon|item=Box of Shotgun Shells}} |
ShotgunAmmoBox | Using the display name |
Editors can experiment in this template's sandbox (create)