Template:Img item/icon: Difference between revisions
m (Vaileasys moved page Template:Img item/definitions icon to Template:Img item/icon without leaving a redirect: simpler name) |
(added all literature) |
||
Line 76: | Line 76: | ||
| Cotton|cotton = Rag | | Cotton|cotton = Rag | ||
| Denim|denim = DenimStrips | | Denim|denim = DenimStrips | ||
| Leather|leather = LeatherStrips | | Leather|leather = LeatherStrips<!-- | ||
## 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 = FarmingMag1 | |||
| 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 = MagazineWelding4 | |||
| 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 | |||
| Notebook|Empty Notebook = Notebook | |||
| Doodle|Paper = Doodle | |||
| Journal|Journal = Notebook | |||
| Magazine|Magazine = Magazine | |||
| HottieZ|HottieZ = MagazineNudie1 | |||
| Newspaper|Newspaper = Newspaper | |||
| SheetPaper2|Sheet of Paper = Paper | |||
| ComicBook|Comic Book = ComicBook | |||
| #default = image | | #default = image | ||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 12:12, 31 July 2021
{{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)