Template:Infobox weapon/doc: Difference between revisions

From PZwiki
(changed usage example (testing))
(Updated everything after changes to template)
Line 17: Line 17:
|alternate_name=alternate_name
|alternate_name=alternate_name
|alternate_link=
|alternate_link=
|category=category
|category=category
|weight=weight
|weight=weight
Line 22: Line 23:
|equipped=equipped
|equipped=equipped
|secondary_item=secondary_item
|secondary_item=secondary_item
|type=type
|type=type
|min_range=min_range
|min_range=min_range
Line 27: Line 29:
|swing_time=swing_time
|swing_time=swing_time
|condition_max=condition_max
|condition_max=condition_max
|min_damage=min_damage
|min_damage=min_damage
|max_damage=max_damage
|max_damage=max_damage
Line 32: Line 35:
|knockdown=knockdown
|knockdown=knockdown
|kill_move=kill_move
|kill_move=kill_move
|ammo_type=ammo_type
|ammo_type=ammo_type
|clip_size=clip_size
|clip_size=clip_size
Line 39: Line 43:
|reload_time=reload_time
|reload_time=reload_time
|aiming_time=aiming_time
|aiming_time=aiming_time
|effect_power=effect_power
|effect_power=effect_power
|effect_range=effect_range
|effect_range=effect_range
Line 44: Line 49:
|effect_type=effect_type
|effect_type=effect_type
|sensor_range=sensor_range
|sensor_range=sensor_range
|class_name=class_name
|class_name=class_name
}}<pre>
}}<pre>
{{Infobox weapon
{{Infobox weapon
|display_name=display_name
|display_name=
|name_colour=default
|name_colour=
|name_text_colour=default
|name_text_colour=
|image=image.png
|image=
|alternate_image=image.png
|alternate_image=
|alternate_name=alternate_name
|alternate_name=
|alternate_link=
|alternate_link=
|category=category
<!--GENERAL-->
|weight=weight
|category=
|function=function
|weight=
|equipped=equipped
|function=
|secondary_item=secondary_item
|equipped=
|type=type
|secondary_item=
|min_range=min_range
|condition_max=
|max_range=max_range
<!--CHARACTERISTICS-->
|swing_time=swing_time
|ammo_type=
|condition_max=condition_max
|clip_size=
|min_damage=min_damage
|sound_radius=
|max_damage=max_damage
|recoil_delay=
|push_back=push_back
|reload_time=
|knockdown=knockdown
|aiming_time=
|kill_move=kill_move
<!--DAMAGE-->
|ammo_type=ammo_type
|type=
|clip_size=clip_size
|swing_time=
|sound_radius=sound_radius
|min_range=
|hit_chance=hit_chance
|max_range=
|recoil_delay=recoil_delay
|hit_chance=
|reload_time=reload_time
|min_damage=
|aiming_time=aiming_time
|max_damage=
|effect_power=effect_power
|push_back=
|effect_range=effect_range
|knockdown=
|effect_timer=effect_timer
|kill_move=
|effect_type=effect_type
|effect_power=
|sensor_range=sensor_range
|effect_range=
|class_name=class_name
|effect_timer=
|effect_type=
|sensor_range=
<!--TECHNICAL DETAILS-->
|class_name=
}}</pre>
}}</pre>




==Parameters==
==Parameters==
===General===
===Heading/Image===
;display_name: The display name of the item as it appears in-game. Leaving blank will display the pagename.
;display_name: The display name of the item as it appears in-game. Leaving blank will display the pagename.
;name_colour: The background colour for the display name. Codes can be found at [[Template:Infobox nc]].
;name_text_colour: The text colour for the display name. Codes can be found at [[Template:Infobox nc]].
;image: An image of the icon displayed at 120px. A 120px variant should be used if it has one.
;image: An image of the icon displayed at 120px. A 120px variant should be used if it has one.
;alternate_image: An alternate image displayed at 32px. Can be an empty, packaged, open or any other variant.
;alternate_image: An alternate image displayed at 32px. Can be an empty, packaged, open or any other variant.
;alternate_name: The name of the alternate item image. Leaving blank will display no name when the image is hovered over.
;alternate_name: The name of the alternate item image. Leaving blank will display no name when the image is hovered over.
;alternate_link: An optional link to the alternate image page. Leaving blank will have no link.
;alternate_link: An optional link to the alternate image page. Leaving blank will have no link.
===General===
;Category: The in-game category the item is displayed as in the inventory. Usually "Categories" for weapons.
;weight: The base weight of the item.
;weight: The base weight of the item.
;"_bkg" suffix: Will display a slightly darker background over the row; used for simpler identification between each row. Leaving blank will leave white, whereas inserting ''anything'' will give the darkened background. (same for each parameter with ''_bkg'')
;Function: What the item is used for. Can usually be removed if the item isn't considered a tool by the wiki. (remove if value is empty)
;weapon_type: The skill this item belongs to, such as: blunt, blade or firearm. Any throwable weapon should be given the "Throwable" value.
;equipped: In which hand this item needs to be equipped: primary, secondary or both; one-handed or two-handed.  
;primary_use: The item's primary use. Can usually be removed if the item isn't considered a ''tool'' by the wiki. ''(remove if value is empty)''
;secondary_use: The item's secondary use if it has one. Can usually be removed if the item isn't considered a ''tool'' by the wiki. ''(remove if value is empty)''
;equipped: In which hand this item needs to be equipped: primary, secondary or both; one-hand or two-hands.  
;secondary_item: The item required in the secondary slot to use this item, such as the [[Molotov Cocktail]]. ''(remove if value is empty)''
;secondary_item: The item required in the secondary slot to use this item, such as the [[Molotov Cocktail]]. ''(remove if value is empty)''
;min_range: The item's minimum range, regardless of whether it's melee or ranged.
;condition_max: The item's maximum condition, i.e. when it's fully repaired.
;max_range: The item's maximum range, regardless of whether it's melee or ranged. ''(remove if value is empty)''
===Characteristics===
;ammo_type: The ammo type this weapon uses if it has one. ''(remove if value is empty)''
;clip_size: The amount of ammo/bullets in a single clip/magazine. ''(remove if value is empty)''
;sound_radius: The radius of sound that is given off from using the item. ''(remove if value is empty)''
;recoil_delay: The time required between each shot before maximum accuracy. ''remove if value is empty)''
;reload_time: The time it takes to reload the weapon. ''(remove if value is empty)''
;aiming_time: The time taken to aim the weapon. ''(remove if value is empty)''
===Damage===
;type: The damage type this weapon does, such as blunt and blade. Firearms should be "gunshot". Throwables should be the same is their "effect_type".
;swing_time: The time it takes to perform a full swing. ''(remove if value is empty)''
;min_range: The item's minimum range, regardless of whether it's melee or ranged. ''(make 0 if value is empty)''
;max_range: The item's maximum range, regardless of whether it's melee or ranged.
;hit_chance: The chance of hitting an enemy for a firearm. Should be the "HitChance" variable. ''(remove if value is empty)''
;min_damage: The item's minimum damage it can deal. ''(remove if value is empty)''
;min_damage: The item's minimum damage it can deal. ''(remove if value is empty)''
;max_damage: The item's maximum damage it can deal. ''(remove if value is empty)''
;max_damage: The item's maximum damage it can deal. ''(remove if value is empty)''
;class_name: The item's class name.
;push_back: The PushBackMod. ''(remove if value is empty)''
 
;knockdown: The KnockdownMod. ''(remove if value is empty)''
 
;kill_move: The special kill move a weapon has, such as Jaw Stab. ''(remove if value is empty)''
===Firearms===
;effect_power: The power of the effect caused by the item. ''(remove if value is empty)''
;ammo: The ammo type this weapon uses if it has one. ''(remove if value is empty)''
;effect_timer: Time before trap is triggered. Defined by the <code>ExplosionTimer</code> variable. ''(remove if value is empty)''
;clip_size: The amount of ammo/bullets in a single clip/magazine. ''(remove if value is empty)''
;sound_radius: The radius of sound that is given off from using the item. ''(remove if value is empty)''
 
 
===Throwables===
;secondary_item: The item that must be in the secondary hand/slot to use this weapon. ''(remove if value is empty)''
;explosion_power: The power of the explosion caused by the item. ''(remove if value is empty)''
;sensor_range: How close an entity needs to be before the trap is triggered. ''(remove if value is empty)''
;explosion_timer: Time before trap is triggered. Defined by the <code>ExplosionTimer</code> variable. ''(remove if value is empty)''
;effect_range: The range of the trap's effect. Defined by either <code>ExplosionRange</code>, <code>FireRange</code>, <code>SmokeRange</code> or <code>NoiseRange</code>. ''(remove if value is empty)''
;effect_range: The range of the trap's effect. Defined by either <code>ExplosionRange</code>, <code>FireRange</code>, <code>SmokeRange</code> or <code>NoiseRange</code>. ''(remove if value is empty)''
;effect_type: The effect given-off by the trap. Can be either: "explosion", "fire", "smoke" or "noise". Any other value will display as "Effect range". ''(remove if value is empty)''
;effect_type: The effect given-off by the trap. Can be either: "explosion", "fire", "smoke" or "noise". Any other value will display as "Effect range". ''(remove if value is empty)''
 
;sensor_range: How close an entity needs to be before the trap is triggered. ''(remove if value is empty)''
===Technical details===
;class_name: The item's class name.


==Examples==
==Examples==
Line 125: Line 141:
{{Infobox weapon
{{Infobox weapon
|display_name=Baseball Bat
|display_name=Baseball Bat
|image=Baseballbat.png
|name_colour=Weapon
|name_text_colour=Weapon
|image=BaseballBat_120px.png
|alternate_image=BaseballBatNails.png
|alternate_image=BaseballBatNails.png
|alternate_name=Spiked Baseball Bat
|alternate_name=Spiked Baseball Bat
|alternate_link=Spiked Baseball Bat
|alternate_link=Spiked Baseball Bat
|category=Blunt
|weight=2
|weight=2
|weight_bkg=1
|weapon_type=Blunt
|equipped=Two-handed
|equipped=Two-handed
|equipped_bkg=1
|type=Swinging
|condition_max=15
|min_range=0.61
|min_range=0.61
|max_range=1.5
|max_range=1.5
|range_bkg=1
|swing_time=3
|condition_max=15
|min_damage=0.8
|min_damage=0.8
|max_damage=1.5
|max_damage=1.2
|push_back=0.5
|knockdown=2
|class_name=Base.BaseballBat
|class_name=Base.BaseballBat
|class_name_bkg=1
}}<pre>
}}<pre>
{{Infobox weapon
{{Infobox weapon
|display_name=Baseball Bat
|display_name=Baseball Bat
|image=Baseballbat.png
|name_colour=Weapon
|name_text_colour=Weapon
|image=BaseballBat_120px.png
|alternate_image=BaseballBatNails.png
|alternate_image=BaseballBatNails.png
|alternate_name=Spiked Baseball Bat
|alternate_name=Spiked Baseball Bat
|alternate_link=Spiked Baseball Bat
|alternate_link=Spiked Baseball Bat
|category=Blunt
|weight=2
|weight=2
|weight_bkg=1
|weapon_type=Blunt
|equipped=Two-handed
|equipped=Two-handed
|equipped_bkg=1
|type=Swinging
|condition_max=15
|min_range=0.61
|min_range=0.61
|max_range=1.5
|max_range=1.5
|range_bkg=1
|swing_time=3
|condition_max=15
|min_damage=0.8
|min_damage=0.8
|max_damage=1.5
|max_damage=1.2
|push_back=0.5
|knockdown=2
|class_name=Base.BaseballBat
|class_name=Base.BaseballBat
|class_name_bkg=1
}}</pre>
}}</pre>
{{clear}}


<br><br><br><br>
'''Blade weapons, displaying the [[Kitchen Knife]] infobox'''
'''Blade weapons, displaying the [[Kitchen Knife]] infobox'''
{{Infobox weapon
{{Infobox weapon
|display_name=Kitchen Knife
|display_name=Kitchen Knife
|image=KnifeChopping.png
|name_colour=Weapon
|name_text_colour=Weapon
|image=KnifeChopping_120px.png
<!--GENERAL-->
|category=Blade
|weight=0.3
|weight=0.3
|weight_bkg=1
|function=[[Cooking]]
|weapon_type=Blade
|primary_use=Weapon
|primary_use_bkg=1
|secondary_use=Knife in recipes
|equipped=One-handed
|equipped=One-handed
|equipped_bkg=1
|condition_max=10
|condition_max=10
<!--DAMAGE-->
|type=Stab
|swing_time=2
|min_range=0.61
|min_range=0.61
|max_range=0.9
|max_range=0.9
|range_bkg=1
|min_damage=0.3
|min_damage=0.3
|max_damage=0.3
|max_damage=0.6
|push_back=0.3
|knockdown=0
|kill_move=Jaw stab
<!--TECHNICAL DETAILS-->
|class_name=Base.KitchenKnife
|class_name=Base.KitchenKnife
|class_name_bkg=1
}}<pre>
}}<pre>
{{Infobox weapon
{{Infobox weapon
|display_name=Kitchen Knife
|display_name=Kitchen Knife
|image=KnifeChopping.png
|name_colour=Weapon
|name_text_colour=Weapon
|image=KnifeChopping_120px.png
<!--GENERAL-->
|category=Blade
|weight=0.3
|weight=0.3
|weight_bkg=1
|function=[[Cooking]]
|weapon_type=Blade
|primary_use=Weapon
|primary_use_bkg=1
|secondary_use=Knife in recipes
|equipped=One-handed
|equipped=One-handed
|equipped_bkg=1
|condition_max=10
|condition_max=10
<!--DAMAGE-->
|sub_category=Stab
|swing_time=2
|min_range=0.61
|min_range=0.61
|max_range=0.9
|max_range=0.9
|range_bkg=1
|min_damage=0.3
|min_damage=0.3
|max_damage=0.3
|max_damage=0.6
|push_back=0.3
|knockdown=0
|kill_move=Jaw stab
<!--TECHNICAL DETAILS-->
|class_name=Base.KitchenKnife
|class_name=Base.KitchenKnife
|class_name_bkg=1
}}</pre>
}}</pre>
{{clear}}


<br><br><br><br>
'''Firearm weapons, displaying the [[Pistol]] infobox'''
'''Firearm weapons, displaying the [[Pistol]] infobox'''
{{Infobox weapon
{{Infobox weapon
|display_name=Pistol
|display_name=Pistol
|image=HandGun.png
|name_colour=Weapon
|name_text_colour=Weapon
|image=HandGun_120px.png
|alternate_image=40calAmmoBox.png
|alternate_image=40calAmmoBox.png
|alternate_name=9mm Rounds
|alternate_name=9mm Rounds
|alternate_link=9mm Rounds
|alternate_link=9mm Rounds
<!--GENERAL-->
|category=Firearm
|weight=2
|weight=2
|weight_bkg=1
|weapon_type=Firearm
|equipped=One-handed
|equipped=One-handed
|equipped_bkg=1
|condition_max=10
|ammo=[[9mm Rounds]]<br>[[9mm Magazine]]
<!--CHARACTERISTICS-->
|ammo_type=[[9mm Rounds]]
|clip_size=15
|clip_size=15
|clip_size_bkg=1
|sound_radius=150
|condition_max=10
|recoil_delay=20
|reload_time=20
|aiming_time=40
<!--DAMAGE-->
|type=Gunshot
|min_range=0.61
|min_range=0.61
|max_range=10
|max_range=10
|range_bkg=1
|hit_chance=45
|min_damage=1
|min_damage=1
|max_damage=1.6
|max_damage=1.6
|sound_radius=150
|push_back=0.3
|sound_radius_bkg=1
|knockdown=2
<!--TECHNICAL DETAILS-->
|class_name=Base.Pistol
|class_name=Base.Pistol
}}<pre>
}}<pre>
{{Infobox weapon
{{Infobox weapon
|display_name=Pistol
|display_name=Pistol
|image=HandGun.png
|name_colour=Weapon
|name_text_colour=Weapon
|image=HandGun_120px.png
|alternate_image=40calAmmoBox.png
|alternate_image=40calAmmoBox.png
|alternate_name=9mm Rounds
|alternate_name=9mm Rounds
|alternate_link=9mm Rounds
|alternate_link=9mm Rounds
<!--GENERAL-->
|category=Firearm
|weight=2
|weight=2
|weight_bkg=1
|weapon_type=Firearm
|equipped=One-handed
|equipped=One-handed
|equipped_bkg=1
|condition_max=10
|ammo=[[9mm Rounds]]<br>[[9mm Magazine]]
<!--CHARACTERISTICS-->
|ammo_type=[[9mm Rounds]]
|clip_size=15
|clip_size=15
|condition_max=10
|sound_radius=150
|clip_size_bkg=1
|recoil_delay=20
|reload_time=20
|aiming_time=40
<!--DAMAGE-->
|type=Gunshot
|min_range=0.61
|min_range=0.61
|max_range=10
|max_range=10
|range_bkg=1
|hit_chance=45
|min_damage=1
|min_damage=1
|max_damage=1.6
|max_damage=1.6
|sound_radius=150
|push_back=0.3
|sound_radius_bkg=1
|knockdown=2
<!--TECHNICAL DETAILS-->
|class_name=Base.Pistol
|class_name=Base.Pistol
}}</pre>
}}</pre>
{{clear}}


<br><br><br><br>
'''Throwable weapons, displaying the [[Molotov Cocktail]] infobox'''
'''Throwable weapons, displaying the [[Molotov Cocktail]] infobox'''
{{Infobox weapon
{{Infobox weapon
|display_name=Molotov Cocktail
|display_name=Molotov Cocktail
|name_colour=Weapon
|name_text_colour=Weapon
|image=Molotov_120px.png
|image=Molotov_120px.png
<!--GENERAL-->
|category=Weapon
|weight=1.5
|weight=1.5
|weight_bkg=1
|weapon_type=Throwable
|equipped=One-handed
|equipped=One-handed
|equipped_bkg=1
|secondary_item=[[Lighter]]
|secondary_item=[[Lighter]]
<!--DAMAGE-->
|type=Fire
|swing_time=1.5
|min_range=0
|min_range=0
|max_range=8
|max_range=8
|range_bkg=1
|min_damage=0
|effect_type=fire
|max_damage=0
|effect_power=90
|effect_range=4
|effect_range=4
|effect_type=Fire
<!--TECHNICAL DETAILS-->
|class_name=Base.Molotov
|class_name=Base.Molotov
|class_name_bkg=1
}}<pre>
}}<pre>
{{Infobox weapon
{{Infobox weapon
|display_name=Molotov Cocktail
|display_name=Molotov Cocktail
|name_colour=Weapon
|name_text_colour=Weapon
|image=Molotov_120px.png
|image=Molotov_120px.png
<!--GENERAL-->
|category=Weapon
|weight=1.5
|weight=1.5
|weight_bkg=1
|weapon_type=Throwable
|equipped=One-handed
|equipped=One-handed
|equipped_bkg=1
|secondary_item=[[Lighter]]
|secondary_item=[[Lighter]]
<!--DAMAGE-->
|type=[[Fire]]
|swing_time=1.5
|min_range=0
|min_range=0
|max_range=8
|max_range=8
|range_bkg=1
|min_damage=0
|effect_type=fire
|max_damage=0
|effect_power=90
|effect_range=4
|effect_range=4
|effect_type=Fire
<!--TECHNICAL DETAILS-->
|class_name=Base.Molotov
|class_name=Base.Molotov
|class_name_bkg=1
}}</pre>
}}</pre>
{{clear}}


<br><br><br><br>
'''Trap weapons, displaying the [[Aerosol Bomb|Aerosol Bomb with Sensor]] infobox'''
'''Trap weapons, displaying the [[Aerosol Bomb|Aerosol Bomb with Timer]] infobox'''
{{Infobox weapon
{{Infobox weapon
|display_name=Aerosol Bomb with Timer
|display_name=Aerosol Bomb with Sensor
|image=AerosolbombTimer.png
|name_colour=Weapon
|name_text_colour=Weapon
|image=AerosolbombTimer_120px.png
|alternate_image=Aerosolbomb.png
|alternate_image=Aerosolbomb.png
|alternate_name=Aerosol Bomb
|alternate_name=Aerosol Bomb
|alternate_link=Aerosol Bomb
|alternate_link=Aerosol Bomb
<!--GENERAL-->
|category=Weapon
|weight=1.5
|weight=1.5
|weight_bkg=1
|equipped=One-handed
|weapon_type=Throwable
<!--DAMAGE-->
|equipped=One-Handed
|type=[[Fire|Explosion]]
|equipped_bkg=1
|swing_time=1.5
|min_range=0
|min_range=0
|max_range=10
|max_range=10
|explosion_power=70
|min_damage=0
|explosion_power_bkg=1
|max_damage=0
|explosion_timer=10
|effect_power=70
|effect_type=explosion
|effect_range=6
|effect_range=6
|effect_range_bkg=1
|effect_timer=5
|class_name=Base.AerosolbombTriggered
|effect_type=Explosion
|sensor_range=V1: 3 tiles<br>V2: 4 tiles<br>V3: 6
<!--TECHNICAL DETAILS-->
|class_name=[[#Item IDs|Item IDs]]
}}<pre>
}}<pre>
{{Infobox weapon
{{Infobox weapon
|display_name=Aerosol Bomb with Timer
|display_name=Aerosol Bomb with Sensor
|image=AerosolbombTimer.png
|name_colour=Weapon
|name_text_colour=Weapon
|image=AerosolbombTimer_120px.png
|alternate_image=Aerosolbomb.png
|alternate_image=Aerosolbomb.png
|alternate_name=Aerosol Bomb
|alternate_name=Aerosol Bomb
|alternate_link=Aerosol Bomb
|alternate_link=Aerosol Bomb
<!--GENERAL-->
|category=Weapon
|weight=1.5
|weight=1.5
|weight_bkg=1
|equipped=One-handed
|weapon_type=Throwable
<!--DAMAGE-->
|equipped=One-Handed
|type=[[Fire|Explosion]]
|equipped_bkg=1
|swing_time=1.5
|min_range=0
|min_range=0
|max_range=10
|max_range=10
|explosion_power=70
|min_damage=0
|explosion_power_bkg=1
|max_damage=0
|explosion_timer=10
|effect_power=70
|effect_type=explosion
|effect_range=6
|effect_range=6
|effect_bkg=1
|effect_timer=5
|class_name=Base.AerosolbombTriggered
|effect_type=Explosion
|sensor_range=V1: 3 tiles<br>V2: 4 tiles<br>V3: 6
<!--TECHNICAL DETAILS-->
|class_name=[[#Item IDs|Item IDs]]
}}</pre>
}}</pre>
{{clear}}

Revision as of 16:53, 11 August 2018

Notebook.png
This is a documentation subpage for Template:Infobox weapon.
It contains usage information and other content that is not part of the original template page.

This template is used to create an infobox in an article about empty water container, medical, drying, remote controller and other miscellaneous items.

Usage

To use this template in an article, copy the template below, then paste the template into an article.

All parameters are optional – those you do not populate with data will not show up in the infobox when the article is saved.

It is strongly advised to only include variables that are relevant to the specific item in question, i.e. parameters that do not display as false or 0.

display_name
display_name
alternate_name
General
Category category
Encumbrance
Heavy Load
weight
Function function
Equipped equipped
Secondary Image.png
Condition max. condition_max
Skill type
Characteristics
Ammo type ammo_type
Magazine size clip_size
Noise radius sound_radius tiles
Recoil delay recoil_delay
Reload time reload_time
Aiming time aiming_time
Damage
Type type
Attack speed swing_time
Range min_range–max_range tiles
Damage min_damage–max_damage
Accuracy hit_chance
Knockback push_back
Knockdown knockdown
Execution kill_move
effect_type power effect_power
effect_type range effect_range tiles
effect_type timer effect_timer
Sensor range sensor_range tiles
Technical details
Base ID class_name
{{Infobox weapon
|display_name=
|name_colour=
|name_text_colour=
|image=
|alternate_image=
|alternate_name=
|alternate_link=
<!--GENERAL-->
|category=
|weight=
|function=
|equipped=
|secondary_item=
|condition_max=
<!--CHARACTERISTICS-->
|ammo_type=
|clip_size=
|sound_radius=
|recoil_delay=
|reload_time=
|aiming_time=
<!--DAMAGE-->
|type=
|swing_time=
|min_range=
|max_range=
|hit_chance=
|min_damage=
|max_damage=
|push_back=
|knockdown=
|kill_move=
|effect_power=
|effect_range=
|effect_timer=
|effect_type=
|sensor_range=
<!--TECHNICAL DETAILS-->
|class_name=
}}


Parameters

Heading/Image

display_name
The display name of the item as it appears in-game. Leaving blank will display the pagename.
name_colour
The background colour for the display name. Codes can be found at Template:Infobox nc.
name_text_colour
The text colour for the display name. Codes can be found at Template:Infobox nc.
image
An image of the icon displayed at 120px. A 120px variant should be used if it has one.
alternate_image
An alternate image displayed at 32px. Can be an empty, packaged, open or any other variant.
alternate_name
The name of the alternate item image. Leaving blank will display no name when the image is hovered over.
alternate_link
An optional link to the alternate image page. Leaving blank will have no link.

General

Category
The in-game category the item is displayed as in the inventory. Usually "Categories" for weapons.
weight
The base weight of the item.
Function
What the item is used for. Can usually be removed if the item isn't considered a tool by the wiki. (remove if value is empty)
equipped
In which hand this item needs to be equipped: primary, secondary or both; one-handed or two-handed.
secondary_item
The item required in the secondary slot to use this item, such as the Molotov Cocktail. (remove if value is empty)
condition_max
The item's maximum condition, i.e. when it's fully repaired.

Characteristics

ammo_type
The ammo type this weapon uses if it has one. (remove if value is empty)
clip_size
The amount of ammo/bullets in a single clip/magazine. (remove if value is empty)
sound_radius
The radius of sound that is given off from using the item. (remove if value is empty)
recoil_delay
The time required between each shot before maximum accuracy. remove if value is empty)
reload_time
The time it takes to reload the weapon. (remove if value is empty)
aiming_time
The time taken to aim the weapon. (remove if value is empty)

Damage

type
The damage type this weapon does, such as blunt and blade. Firearms should be "gunshot". Throwables should be the same is their "effect_type".
swing_time
The time it takes to perform a full swing. (remove if value is empty)
min_range
The item's minimum range, regardless of whether it's melee or ranged. (make 0 if value is empty)
max_range
The item's maximum range, regardless of whether it's melee or ranged.
hit_chance
The chance of hitting an enemy for a firearm. Should be the "HitChance" variable. (remove if value is empty)
min_damage
The item's minimum damage it can deal. (remove if value is empty)
max_damage
The item's maximum damage it can deal. (remove if value is empty)
push_back
The PushBackMod. (remove if value is empty)
knockdown
The KnockdownMod. (remove if value is empty)
kill_move
The special kill move a weapon has, such as Jaw Stab. (remove if value is empty)
effect_power
The power of the effect caused by the item. (remove if value is empty)
effect_timer
Time before trap is triggered. Defined by the ExplosionTimer variable. (remove if value is empty)
effect_range
The range of the trap's effect. Defined by either ExplosionRange, FireRange, SmokeRange or NoiseRange. (remove if value is empty)
effect_type
The effect given-off by the trap. Can be either: "explosion", "fire", "smoke" or "noise". Any other value will display as "Effect range". (remove if value is empty)
sensor_range
How close an entity needs to be before the trap is triggered. (remove if value is empty)

Technical details

class_name
The item's class name.

Examples

Blunt weapons, displaying the Baseball Bat infobox

Baseball Bat
Baseball Bat
Spiked Baseball Bat
General
Category Blunt
Encumbrance
Heavy Load
2
Equipped Two-handed
Condition max. 15
Skill Swinging
Damage
Type Swinging
Attack speed 3
Range 0.61–1.5 tiles
Damage 0.8–1.2
Knockback 0.5
Knockdown 2
Technical details
Base ID Base.BaseballBat
{{Infobox weapon
|display_name=Baseball Bat
|name_colour=Weapon
|name_text_colour=Weapon
|image=BaseballBat_120px.png
|alternate_image=BaseballBatNails.png
|alternate_name=Spiked Baseball Bat
|alternate_link=Spiked Baseball Bat
|category=Blunt
|weight=2
|equipped=Two-handed
|type=Swinging
|min_range=0.61
|max_range=1.5
|swing_time=3
|condition_max=15
|min_damage=0.8
|max_damage=1.2
|push_back=0.5
|knockdown=2
|class_name=Base.BaseballBat
}}

Blade weapons, displaying the Kitchen Knife infobox

Kitchen Knife
Kitchen Knife
General
Category Blade
Encumbrance
Heavy Load
0.3
Function Cooking
Equipped One-handed
Condition max. 10
Skill Stab
Damage
Type Stab
Attack speed 2
Range 0.61–0.9 tiles
Damage 0.3–0.6
Knockback 0.3
Knockdown 0
Execution Jaw stab
Technical details
Base ID Base.KitchenKnife
{{Infobox weapon
|display_name=Kitchen Knife
|name_colour=Weapon
|name_text_colour=Weapon
|image=KnifeChopping_120px.png
<!--GENERAL-->
|category=Blade
|weight=0.3
|function=[[Cooking]]
|equipped=One-handed
|condition_max=10
<!--DAMAGE-->
|sub_category=Stab
|swing_time=2
|min_range=0.61
|max_range=0.9
|min_damage=0.3
|max_damage=0.6
|push_back=0.3
|knockdown=0
|kill_move=Jaw stab
<!--TECHNICAL DETAILS-->
|class_name=Base.KitchenKnife
}}

Firearm weapons, displaying the Pistol (disambiguation) infobox

Pistol
Pistol
9mm Rounds
General
Category Firearm
Encumbrance
Heavy Load
2
Equipped One-handed
Condition max. 10
Skill Gunshot
Characteristics
Ammo type 9mm Round
Magazine size 15
Noise radius 150 tiles
Recoil delay 20
Reload time 20
Aiming time 40
Damage
Type Gunshot
Range 0.61–10 tiles
Damage 1–1.6
Accuracy 45
Knockback 0.3
Knockdown 2
Technical details
Base ID Base.Pistol
{{Infobox weapon
|display_name=Pistol
|name_colour=Weapon
|name_text_colour=Weapon
|image=HandGun_120px.png
|alternate_image=40calAmmoBox.png
|alternate_name=9mm Rounds
|alternate_link=9mm Rounds
<!--GENERAL-->
|category=Firearm
|weight=2
|equipped=One-handed
|condition_max=10
<!--CHARACTERISTICS-->
|ammo_type=[[9mm Rounds]]
|clip_size=15
|sound_radius=150
|recoil_delay=20
|reload_time=20
|aiming_time=40
<!--DAMAGE-->
|type=Gunshot
|min_range=0.61
|max_range=10
|hit_chance=45
|min_damage=1
|max_damage=1.6
|push_back=0.3
|knockdown=2
<!--TECHNICAL DETAILS-->
|class_name=Base.Pistol
}}

Throwable weapons, displaying the Molotov Cocktail infobox

Molotov Cocktail
Molotov Cocktail
General
Category Weapon
Encumbrance
Heavy Load
1.5
Equipped One-handed
Secondary Image.png
Skill Fire
Damage
Type Fire
Attack speed 1.5
Range 0–8 tiles
Damage 0–0
Fire power 90
Fire range 4 tiles
Technical details
Base ID Base.Molotov
{{Infobox weapon
|display_name=Molotov Cocktail
|name_colour=Weapon
|name_text_colour=Weapon
|image=Molotov_120px.png
<!--GENERAL-->
|category=Weapon
|weight=1.5
|equipped=One-handed
|secondary_item=[[Lighter]]
<!--DAMAGE-->
|type=[[Fire]]
|swing_time=1.5
|min_range=0
|max_range=8
|min_damage=0
|max_damage=0
|effect_power=90
|effect_range=4
|effect_type=Fire
<!--TECHNICAL DETAILS-->
|class_name=Base.Molotov
}}

Trap weapons, displaying the Aerosol Bomb with Sensor infobox

Aerosol Bomb with Sensor
Aerosol Bomb with Sensor
Aerosol Bomb
General
Category Weapon
Encumbrance
Heavy Load
1.5
Equipped One-handed
Skill Explosion
Damage
Type Explosion
Attack speed 1.5
Range 0–10 tiles
Damage 0–0
Explosion power 70
Explosion range 6 tiles
Explosion timer 5
Sensor range V1: 3 tiles
V2: 4 tiles
V3: 6 tiles
Technical details
Base ID Item IDs
{{Infobox weapon
|display_name=Aerosol Bomb with Sensor
|name_colour=Weapon
|name_text_colour=Weapon
|image=AerosolbombTimer_120px.png
|alternate_image=Aerosolbomb.png
|alternate_name=Aerosol Bomb
|alternate_link=Aerosol Bomb
<!--GENERAL-->
|category=Weapon
|weight=1.5
|equipped=One-handed
<!--DAMAGE-->
|type=[[Fire|Explosion]]
|swing_time=1.5
|min_range=0
|max_range=10
|min_damage=0
|max_damage=0
|effect_power=70
|effect_range=6
|effect_timer=5
|effect_type=Explosion
|sensor_range=V1: 3 tiles<br>V2: 4 tiles<br>V3: 6
<!--TECHNICAL DETAILS-->
|class_name=[[#Item IDs|Item IDs]]
}}