Template:Img item: Difference between revisions

From PZwiki
m (fix)
(added throwable trap weapons)
Line 51: Line 51:
| AssaultRifle|M16 Assault Rifle = AssaultRifle
| AssaultRifle|M16 Assault Rifle = AssaultRifle
| AssaultRifle2|M14 Single Shot Assault Rifle = AssaultRifle2<!--
| AssaultRifle2|M14 Single Shot Assault Rifle = AssaultRifle2<!--
##  TRAPS  ##
-->
| Molotov|Molotov Cocktail = Molotov
| Aerosolbomb|Aerosol Bomb = Aerosolbomb
| AerosolbombTriggered|Aerosol Bomb with Timer = AerosolbombTimer
| AerosolbombSensorV1|AerosolbombSensorV2|AerosolbombSensorV3|Aerosol Bomb with Sensor = AerosolbombTimer
| AerosolbombRemote|Remote Aerosol Bomb = AerosolbombTimer
| FlameTrap|Flame Trap|Fire Bomb = BottleWithGas
| FlameTrapTriggered|Flame Trap with Timer|Fire Bomb with Timer = FireBomb
| FlameTrapSensorV1|FlameTrapSensorV2|FlameTrapSensorV3|Flame Trap with Sensor|Fire Bomb with Sensor = FireBomb
| FlameTrapRemote|Remote Flame Trap|Remote Fire Bomb = FireBomb
| SmokeBomb|Smoke Bomb = Smokebomb
| SmokeBombRemote|Remote Smoke Bomb = SmokebombTimer
| SmokeBombSensorV1|SmokeBombSensorV2|SmokeBombSensorV3|Smoke Bomb with Sensor = SmokebombTimer
| SmokeBombTriggered|Smoke Bomb with Timer = SmokebombTimer
| NoiseTrap|Noise Maker = NoiseMaker
| NoiseTrapTriggered|Noise Generator with Timer = NoiseGenerator
| NoiseTrapSensorV1|NoiseTrapSensorV2|NoiseTrapSensorV3|Noise Generator with Sensor = NoiseGenerator
| NoiseTrapRemote|Remote Noise Generator = NoiseGenerator
| PipeBomb|Pipe Bomb = PipeBomb
| PipeBombTriggered|Pipe Bomb with Timer = PipeBomb
| PipeBombSensorV1|PipeBombSensorV2|PipeBombSensorV3|Pipe Bomb with Sensor = PipeBomb
| PipeBombRemote|Remote Pipe Bomb = PipeBomb<!--


##  FABRIC  ##
##  FABRIC  ##
Line 111: Line 136:
| 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 Single Shot Assault Rifle<!--
##  TRAPS  ##
-->
| Molotov|Molotov Cocktail = Molotov Cocktail
| Aerosolbomb|Aerosol Bomb = Aerosol Bomb
| AerosolbombTriggered|Aerosol Bomb with Timer = Aerosol Bomb
| AerosolbombSensorV1|AerosolbombSensorV2|AerosolbombSensorV3|Aerosol Bomb with Sensor = Aerosol Bomb
| AerosolbombRemote|Remote Aerosol Bomb = Aerosol Bomb
| FlameTrap|Flame Trap|Fire Bomb = Fire Bomb
| FlameTrapTriggered|Flame Trap with Timer|Fire Bomb with Timer = Fire Bomb
| FlameTrapSensorV1|FlameTrapSensorV2|FlameTrapSensorV3|Flame Trap with Sensor|Fire Bomb with Sensor = Fire Bomb
| FlameTrapRemote|Remote Flame Trap|Remote Fire Bomb = Fire Bomb
| SmokeBomb|Smoke Bomb = Smoke Bomb
| SmokeBombRemote|Remote Smoke Bomb = Smoke Bomb
| SmokeBombSensorV1|SmokeBombSensorV2|SmokeBombSensorV3|Smoke Bomb with Sensor = Smoke Bomb
| SmokeBombTriggered|Smoke Bomb with Timer = Smoke Bomb
| NoiseTrap|Noise Maker = Noise Maker
| NoiseTrapTriggered|Noise Generator with Timer = Noise Maker
| NoiseTrapSensorV1|NoiseTrapSensorV2|NoiseTrapSensorV3|Noise Generator with Sensor = Noise Maker
| NoiseTrapRemote|Remote Noise Generator = Noise Maker
| PipeBomb|Pipe Bomb = Pipe Bomb
| PipeBombTriggered|Pipe Bomb with Timer = Pipe Bomb
| PipeBombSensorV1|PipeBombSensorV2|PipeBombSensorV3|Pipe Bomb with Sensor = Pipe Bomb
| PipeBombRemote|Remote Pipe Bomb = Pipe Bomb<!--


##  FABRIC  ##
##  FABRIC  ##
Line 171: Line 221:
| 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 Single Shot Assault Rifle<!--
##  TRAPS  ##
-->
| Molotov|Molotov Cocktail = Molotov Cocktail
| Aerosolbomb|Aerosol Bomb = Aerosol Bomb
| AerosolbombTriggered|Aerosol Bomb with Timer = Aerosol Bomb with Timer
| AerosolbombSensorV1|AerosolbombSensorV2|AerosolbombSensorV3|Aerosol Bomb with Sensor = Aerosol Bomb with Sensor
| AerosolbombRemote|Remote Aerosol Bomb = Remote Aerosol Bomb
| FlameTrap|Flame Trap|Fire Bomb = Fire Bomb
| FlameTrapTriggered|Flame Trap with Timer|Fire Bomb with Timer = Fire Bomb with Timer
| FlameTrapSensorV1|FlameTrapSensorV2|FlameTrapSensorV3|Flame Trap with Sensor|Fire Bomb with Sensor = Fire Bomb with Sensor
| FlameTrapRemote|Remote Flame Trap|Remote Fire Bomb = Remote Fire Bomb
| SmokeBomb|Smoke Bomb = Smoke Bomb
| SmokeBombRemote|Remote Smoke Bomb = Remote Smoke Bomb
| SmokeBombSensorV1|SmokeBombSensorV2|SmokeBombSensorV3|Smoke Bomb with Sensor = Smoke Bomb with Sensor
| SmokeBombTriggered|Smoke Bomb with Timer = Smoke Bomb with Timer
| NoiseTrap|Noise Maker = Noise Maker
| NoiseTrapTriggered|Noise Generator with Timer = Noise Generator with Timer
| NoiseTrapSensorV1|NoiseTrapSensorV2|NoiseTrapSensorV3|Noise Generator with Sensor = Noise Generator with Sensor
| NoiseTrapRemote|Remote Noise Generator = Remote Noise Generator
| PipeBomb|Pipe Bomb = Pipe Bomb
| PipeBombTriggered|Pipe Bomb with Timer = Pipe Bomb with Timer
| PipeBombSensorV1|PipeBombSensorV2|PipeBombSensorV3|Pipe Bomb with Sensor = Pipe Bomb with Sensor
| PipeBombRemote|Remote Pipe Bomb = Remote Pipe Bomb<!--


##  FABRIC  ##
##  FABRIC  ##

Revision as of 10:02, 30 July 2021

[view] [edit] [history] [purge] Template documentation
The {{Img item}} template is used to generate an item image by simply knowing the display name or item ID.

Editing

To add new definitions or edit an existing one, please go to the following subpages:

Usage

{{Img item
|item = <!-- or {{{1}}} (first anonymous parameter) -->
|size = <!-- optional -->
|icon = <!-- or |img = --> <!-- optional -->
|link = <!-- optional -->
|name = <!-- optional -->
}}

Image.png

Parameters

item
Determines the item image, name, and link. Can be the item's display name, item ID (without module) or previous names (so long as there are no conflicts). Can be replaced with the first anonymous parameter. Default: File:image.png
size
The size of the image. This can be left blank unless needed to be customized. Default: 32px
icon
Manually set the image to be displayed. This will normally be left blank. Can be replaced with img.
link
Manually set the link for the image. This will normally be left blank.
name
Manually set the "name" to show when hovering over. This will normally be left blank.

Anonymous parameters

See more: Anonymous parameters
{{{1}}}
Alternative to item, for simplified markup. Determines the item image, name, and link. Can be the item's display name, item ID (without module) or previous names (so long as there are no conflicts). Default: File:image.png
{{{2}}}
Adding "name" will remove the image and only display the name and link. Alternative to using {{Img item/link}} and {{Img item/name}}.

Examples

Type Produces Explanation
{{Img item|item=ShotgunShellsBox|size=32px}}
Box of Shotgun Shells Using the item ID with the item and size parameters.
{{Img item|ShotgunShellsBox}}
Image.png The markup can be simplified by removing the item and size parameters, and just including the item ID as the first anonymous parameter. This produces the same result as the above example.
{{Img item|icon=Chainsaw_Model|size=64px|name=Zombie slayer|link=Zombie}}
Zombie slayer The icon, size, name and link can be manually adjusted. Here it's showing the Chainsaw model as the icon at size 64px, "Zombie slayer" as the name, and Zombie as the link.
{{Img item|ShotgunShellsBox|name}}
Image.png Using just the first and second anonymous parameters, with the second being "name", display just the indexed name and link.
Documentation transcluded from Template:Img item/doc.
Editors can experiment in this template's sandbox (create)