Template:Infobox ammo/doc: Difference between revisions

From PZwiki
mNo edit summary
mNo edit summary
Line 76: Line 76:
|class_name=Base.Bullets9mm
|class_name=Base.Bullets9mm
}}
}}
{{clear}}

Revision as of 15:01, 13 December 2018

Notebook.png
This is a documentation subpage for Template:Infobox ammo.
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
Weapon(s) weapons
Loose Ammo
Encumbrance
Heavy Load
loose_weight
Box of Ammo
Encumbrance
Heavy Load
box_weight
Contents contents Rounds
Technical details
Item ID class_name
{{Infobox ammo
|display_name=
|name_colour=
|name_text_colour=
|image=
|alternate_image=
|alternate_name=
|alternate_link=
<!--GENERAL-->
|category=
|weapons=
<!--LOOSE AMMO-->
|loose_weight=
<!--BOX OF AMMO-->
|box_weight=
|contents=
<!--TECHNICAL DETAILS-->
|class_name=
}}

Parameters

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.
category
The in-game category the item is displayed as in the inventory. Usually "Ammo".
weapons
The weapons this ammo can be used in.
loose_weight
The base weight of the loose ammo.
box_weight
The base weight of the box of ammo.
contents
The number of ammo inside a box of ammo.
class_name
The item's class name.

Examples

Displaying 9mm Round infobox

9mm Rounds
9mm Rounds
Box of 9mm Bullets
General
Category Ammo
Weapon(s) Pistol (disambiguation)
Loose Ammo
Encumbrance
Heavy Load
0.1
Box of Ammo
Encumbrance
Heavy Load
0.3
Contents 30 Rounds
Technical details
Item ID Base.Bullets9mm