Template:Img item/link: Difference between revisions
(added missing magazines) |
(Added medical items) |
||
Line 174: | Line 174: | ||
| Newspaper|Newspaper = Newspaper | | Newspaper|Newspaper = Newspaper | ||
| SheetPaper2|Sheet of Paper = Sheet of Paper | | SheetPaper2|Sheet of Paper = Sheet of Paper | ||
| ComicBook|Comic Book = Comic Book | | ComicBook|Comic Book = Comic Book<!-- | ||
## MEDICAL ## | |||
--> | |||
| Bandaid|Adhesive Bandages = Adhesive Bandages | |||
| Bandage = Bandage | |||
| AlcoholBandage|Sterilized Bandage = Bandage | |||
| BandageDirty|Dirty Bandage = Bandage | |||
| DenimStrips|Denim Strips = Denim Strips | |||
| DenimStripsDirty|Dirty Denim Strips = Denim Strips | |||
| LeatherStrips|Leather Strips = Leather Strips | |||
| LeatherStripsDirty|Dirty Leather Strips = Leather Strips | |||
| RippedSheets|Ripped Sheets = Ripped Sheets | |||
| AlcoholRippedSheets|Sterilized Rag = Ripped Sheets | |||
| RippedSheetsDirty|Dirty Rag = Ripped Sheets | |||
| Splint = Splint | |||
| AlcoholWipes|Alcohol Wipes = Alcohol Wipes | |||
| Disinfectant|Bottle of Disinfectant = Bottle of Disinfectant | |||
| AlcoholedCottonBalls|Cotton Balls Doused in Alcohol = Cotton Balls | |||
| WhiskeyFull|Bourbon = Bourbon | |||
| BlackSage|Black Sage = Black Sage | |||
| Comfrey = Comfrey | |||
| CommonMallow|Common Mallow = Common Mallow | |||
| Ginseng = Ginseng | |||
| LemonGrass|Lemongrass = Lemongrass | |||
| Plantain = Plantain | |||
| WildGarlic|Wild Garlic = Wild Garlic | |||
| ComfreyCataplasm|Comfrey Poultice = Comfrey Poultice | |||
| PlantainCataplasm|Plantain Poultice = Plantain Poultice | |||
| WildGarlicCataplasm|Wild Garlic Poultice = Wild Garlic Poultice | |||
| BathTowel|Bath Towel = Bath Towel | |||
| CottonBalls|Cotton Balls = Cotton Balls | |||
| DishCloth|Dish Cloth = Dish Cloth | |||
| SutureNeedle|Suture Needle = Suture Needle | |||
| SutureNeedleHolder|Suture Needle Holder = Suture Needle Holder | |||
| Tissue = Tissue | |||
| Tweezers = Tweezers | |||
| Antibiotics = Antibiotics | |||
| PillsAntiDep|Antidepressants = Antidepressants | |||
| PillsBeta|Beta Blockers = Beta Blockers | |||
| Cigarettes = Cigarettes | |||
| Pills|Painkillers = Painkillers | |||
| PillsSleepingTablets|Sleeping Tablets = Sleeping Tablets | |||
| PillsVitamins|Vitamins = Vitamins | |||
| #default = | | #default = | ||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 15:46, 6 August 2021
{{Img item/link}}
is a subtemplate of {{Img item}}
. This functions as a link 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 a link for an item.
The input string should be the item's item ID (excluding the module) or the display name.
{{Img item/link|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 page you want to link to.- 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/icon}}
Example
Type | Produces | Explanation |
---|---|---|
{{Img item/link|item=ShotgunShellsBox}} |
Shotgun Shells | Using the item ID |
{{Img item/link|item=Box of Shotgun Shells}} |
Shotgun Shells | Using the display name |
Editors can experiment in this template's sandbox (create)