Template:Img item/name: Difference between revisions

From PZwiki
m (added saucepan)
m (Automated Formatting)
 
(9 intermediate revisions by 2 users not shown)
Line 6: Line 6:
| Bullets9mm|9mm Rounds|9mm Round = 9mm Round
| Bullets9mm|9mm Rounds|9mm Round = 9mm Round
| Bullets9mmBox|Box of 9mm Bullets|Box of 9mm Rounds = Box of 9mm Rounds
| Bullets9mmBox|Box of 9mm Bullets|Box of 9mm Rounds = Box of 9mm Rounds
| 9mmClip|9mm Magazine = 9mm Magazine
| 9mmClip|9mm Magazine|M9 Magazine = M9 Magazine
| Bullets45|.45 Auto|.45 Auto Round = .45 Auto Round
| Bullets45|.45 Auto|.45 Auto Round = .45 Auto Round
| Bullets45Box|Box of .45 Auto Bullets|Box of .45 Auto Rounds = Box of .45 Auto Rounds
| Bullets45Box|Box of .45 Auto Bullets|Box of .45 Auto Rounds = Box of .45 Auto Rounds
| 45Clip|.45 Auto Magazine = .45 Auto Magazine
| 45Clip|.45 Auto Magazine|M1911 Auto Magazine = M1911 Auto Magazine
| Bullets44|.44 Magnum Bullets|.44 Magnum Round = .44 Magnum Round
| Bullets44|.44 Magnum Bullets|.44 Magnum Round = .44 Magnum Round
| Bullets44Box|Box of .44 Magnum Bullets|Box of .44 Magnum Rounds = Box of .44 Magnum Rounds
| Bullets44Box|Box of .44 Magnum Bullets|Box of .44 Magnum Rounds = Box of .44 Magnum Rounds
| 44Clip|.44 Magazine = .44 Magazine
| 44Clip|.44 Magazine|D-E Magazine = D-E Magazine
| Bullets38|.38 Special Bullets = .38 Special Rounds
| Bullets38|.38 Special Bullets|.38 Special Round = .38 Special Round
| Bullets38Box|Box of .38 Special Bullets|Box of .38 Special Rounds = Box of .38 Special Rounds
| Bullets38Box|Box of .38 Special Bullets|Box of .38 Special Rounds = Box of .38 Special Rounds
| ShotgunShells|Shotgun Shells = Shotgun Shells
| ShotgunShells|Shotgun Shells = Shotgun Shells
Line 19: Line 19:
| 223Bullets|.223 Ammo|.223 Round = .223 Round
| 223Bullets|.223 Ammo|.223 Round = .223 Round
| 223Box|Box of .223 Bullets|Box of .223 Rounds = Box of .223 Rounds
| 223Box|Box of .223 Bullets|Box of .223 Rounds = Box of .223 Rounds
| 223Clip|.223 Magazine = .223 Magazine
| 223Clip|.223 Magazine|MSR700 Magazine = MSR700 Magazine
| 308Bullets|.308 Ammo|.308 Round = .308 Round
| 308Bullets|.308 Ammo|.308 Round = .308 Round
| 308Box|Box of .308 Bullets|Box of .308 Rounds = Box of .308 Rounds
| 308Box|Box of .308 Bullets|Box of .308 Rounds = Box of .308 Rounds
| 308Clip|.308 Magazine = .308 Magazine
| 308Clip|.308 Magazine|MSR788 Magazine = MSR788 Magazine
| 556Bullets|.556 Ammo = .556 Round
| 556Bullets|.556 Ammo|5.56mm Round = 5.56mm Round
| 556Box|Box of .556 Bullets|Box of .556 Rounds = Box of .556 Rounds
| 556Box|Box of .556 Bullets|Box of .556 Rounds|Box of 5.56mm Rounds = Box of 5.56mm Rounds
| 556Clip|.556 Magazine = .556 Magazine
| 556Clip|.556 Magazine|M16 Magazine = M16 Magazine
| M14Clip|.308 Magazine = .308 Magazine<!--
| M14Clip|.308 Magazine|M14 Magazine = M14 Magazine<!--


##  FIREARMS  ##
##  FIREARMS  ##
Line 44: Line 44:
| Revolver_Short|M36 Revolver = M36 Revolver
| Revolver_Short|M36 Revolver = M36 Revolver
| AssaultRifle|M16 Assault Rifle = M16 Assault Rifle
| AssaultRifle|M16 Assault Rifle = M16 Assault Rifle
| AssaultRifle2|M14 Single Shot Assault Rifle = M14 Single Shot Assault Rifle<!--
| AssaultRifle2|M14 Single Shot Assault Rifle|M14 Rifle = M14 Rifle<!--
 
##  WEAPON ATTACHMENTS  ##
 
-->
| IronSight|Iron Sight = Iron Sight
| x2Scope|x2 Scope = x2 Scope
| x4Scope|x4 Scope = x4 Scope
| x8Scope|x8 Scope = x8 Scope
| AmmoStraps|Ammo Straps = Ammo Straps
| Sling|Sling = Sling
| FiberglassStock|Fiberglass Stock = Fiberglass Stock
| RecoilPad|Recoil Pad = Recoil Pad
| Laser|Laser = Laser
| RedDot|Red Dot = Red Dot
| GunLight|Gun Light = Gun Light
| Bayonnet|Bayonnet|Bayonet = Bayonet
| ChokeTubeFull|Choke Tube Full|Choke Tube - Full = Choke Tube - Full
| ChokeTubeImproved|Choke Tube Improved|Choke Tube - Improved = Choke Tube - Improved<!--


##  TRAPS  ##
##  TRAPS  ##
Line 76: Line 94:
| Cotton|cotton = Ripped Sheets
| Cotton|cotton = Ripped Sheets
| Denim|denim = Ripped Denim
| Denim|denim = Ripped Denim
| Leather|leather = Ripped Leather<!--
| Leather|leather = Ripped Leather
| ElectronicsScrap|Electronics Scrap|Scrap Electronics|Electronics = Scrap Electronics <!--


##  LITERATURE  ##
##  LITERATURE  ##
Line 224: Line 243:
-->
-->
| Saucepan = Saucepan
| Saucepan = Saucepan
| Plank = Plank<!--
##  OTHER  ##
-->
| WaterDrop|Water Drop|Water = Water
| WaterSaucepan|Saucepan with Water = Saucepan with Water
| WaterSaucepan|Saucepan with Water = Saucepan with Water
| #default =  
| Pot|Cooking Pot = Cooking Pot
| WaterPot|Cooking Pot with Water = Cooking Pot with Water
| TreeBranch|Tree Branch = Tree Branch
| WoodenStick|Sturdy Stick = Sturdy Stick
| MortarPestle|Mortar and Pestle = Mortar and Pestle
| Lighter = Lighter
| Amplifier = Amplifier
| #default =
}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 14:08, 14 April 2024

[view] [edit] [history] [purge] Template documentation
{{Img item/name}} is a subtemplate of {{Img item}}. This functions as a name 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 the in-game display name for an item.

The input string should be the item's item ID (excluding the module) or the display name.

{{Img item/name|item=Item ID <!-- or DisplayName -->}}

Adding to index

The index can be added to by:

  1. Click "Edit" (top-right)
  2. Copy the following snippet and paste in a new line, after the switch (top) and before the default (bottom): | ID| DisplayName = Output
  3. Replace: ID with the Item's ID (excluding the module), DisplayName with the Item's display name (as it appears in-game), and Output with the file you want to display (without the file extension e.g. PNG).
    1. 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
    2. 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
  4. Also add to {{Img item/icon}} and {{Img_item/link}}

Example

Type Produces Explanation
{{Img item/name|item=ShotgunShellsBox}}
Box of Shotgun Shells Using the item ID
{{Img item/name|item=Box of Shotgun Shells}}
Box of Shotgun Shells Using the display name
Documentation transcluded from Template:Img item/name/doc.
Editors can experiment in this template's sandbox (create)