Template:Gun

From HBM's Nuclear Tech Wiki

Infobox for displaying information about a gun in the mod.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

Title bar of the infobox, most likely the same as the page's name

Suggested values
{{PAGENAME}}
Default
{{PAGENAME}}
Example
{{PAGENAME}}
Stringrequired
Captioncaption

Caption for the image, optional.

Stringoptional
Imageimage

An image of the gun to add, such as a rendered model of it.

Example
lil_pip_render.png
Filerequired
Image sizeimage_size

Custom size of the image.

Default
256x256
Example
256x256
Stringoptional
Alt textalt

Image alt text.

Stringoptional
Calibercaliber

Caliber that this gun is chambered in.

Suggested values
.22 LR 9mm Parabellum .45 ACP .357 Magnum .44 Magnum 4 gauge 20 gauge 12 gauge 5mm 5.56x45mm NATO 7.62x51mm NATO .50 BMG 20x155mm Lunatic N/A
Example
.357 Magnum
Stringsuggested
Capacitycapacity

Capacity of the magazine, if applicable

Example
15
Numbersuggested
Reload typereload

The way the firearm is reloaded. This should give an idea of the speed of reloading - be as specific as needed

Suggested values
Magazine Stripper clip Round-by-round Shell-by-shell Multiple at once Other
Example
Magazine
Stringsuggested
Base damagebase damage

Base damage, in hearts, using the default ammunition type. One heart is equal to two points of damage.

Example
5.5 hearts
Stringsuggested
Fireratefirerate

Firerate of the gun's primary fire, in rounds per minute; include the unit. This can just be the time taken to reload for single-shot weapons.

Example
700 RPM
Stringsuggested
Alternate firealtfire

Brief description of how the alternate fire operates on this weapon.

Example
Fires two shells at once
Stringoptional
Lifespanlifespan

The estimated lifespan of the gun with maintenance, firing the default ammo. Include number of shots.

Example
100 shots
Numbersuggested
Action typetype

The type of firing mechanism the gun uses or the closest approximation.

Suggested values
Single shot Bolt action Lever action Energy weapon Delayed blowback Gas-operated Other
Example
Gas-operated
Stringsuggested
Sight typesights

The kind of sights the gun has, if any.

Suggested values
None Iron sights Scope
Default
None
Example
None
Auto value
None
Stringsuggested
Tactical Information


Lua error in Module:Documentation at line 144: message: type error in message cfg.container (string expected, got nil).