Template:Infobox ammo/doc: Difference between revisions
mNo edit summary |
(added ingredients parameter) |
||
Line 22: | Line 22: | ||
|box_weight=box_weight | |box_weight=box_weight | ||
|contents=contents | |contents=contents | ||
|ingredients=ingredients | |||
|class_name=class_name | |class_name=class_name | ||
}}<pre> | }}<pre> | ||
Line 41: | Line 42: | ||
|contents= | |contents= | ||
<!--TECHNICAL DETAILS--> | <!--TECHNICAL DETAILS--> | ||
|ingredients= | |||
|class_name= | |class_name= | ||
}}</pre> | }}</pre> | ||
Line 57: | Line 59: | ||
;box_weight: The base weight of the box of ammo. | ;box_weight: The base weight of the box of ammo. | ||
;contents: The number of ammo inside a box of ammo. | ;contents: The number of ammo inside a box of ammo. | ||
;ingrdients: A list of ingredients required to make this item. Please use the following format: <code>1 × <nowiki>[[</nowiki>Plank]]</code> and separate ingredients into a list with <code><nowiki><</nowiki>br></code>. | |||
;class_name: The item's class name. | ;class_name: The item's class name. | ||
Revision as of 14:56, 7 March 2019
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.
{{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--> |ingredients= |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.
- ingrdients
- A list of ingredients required to make this item. Please use the following format:
1 × [[Plank]]
and separate ingredients into a list with<br>
. - class_name
- The item's class name.
Examples
Displaying 9mm Round infobox
9mm Rounds | ||
---|---|---|
9mm Rounds | ||
| ||
General | ||
Category | Ammo | |
Weapon(s) | Pistol (disambiguation) | |
Loose Ammo | ||
Encumbrance | 0.1 | |
Box of Ammo | ||
Encumbrance | 0.3 | |
Contents | 30 Rounds | |
Technical details | ||
Item ID | Base.Bullets9mm | |
{{Infobox ammo |display_name=9mm Rounds |name_colour=Weapons |name_text_colour=Weapons |image=40calAmmoBox_120px.png |alternate_image=HandgunAmmoBox.png{{!}}32px |alternate_name=Box of 9mm Bullets |alternate_link= |category=Ammo |weapons=[[Pistol]] |loose_weight=0.1 |box_weight=0.3 |contents=30 |class_name=Base.Bullets9mm }}