Template:Infobox item
This template adds rows to the table "Items", which is declared by the template Items/CargoDec. View table.
de:Vorlage:Infobox item es:Plantilla:Infobox item fr:Modèle:Infobox item it:Template:Infobox item nl:Sjabloon:Infobox item pl:Szablon:Infobox item ru:Шаблон:Infobox item
This template generates an infobox for items. The Infobox provides a summary of statistics associated with a given item. It is intended to organize the information consistently across all items and provide a quick reference-point for pertinent information about the item.
Formatting and ordering of information is largely done by the template with a few exceptions noted below (sizing images, adding links, etc).
Information is passed to the template in the form of parameters and values that are designated as such: |parameter = value. Parameters containing no value or only whitespace will be ignored and not included in the infobox.
Auto-categorization
Certain parameters enable the template to automatically add the item to other categories. The parameters with this feature are noted below in the list of parameters. This functionality extends the usefulness of the infobox but it may not always be desirable. To disable auto-categorization, add the parameter/value combination: |nocat = 1
.
The removed_version
parameter also affects auto-categorization by disabling categorization by other parameters to ensure the item is only auto-categorized into Category:Removed_Items. There may be other categories added to the item outside the infobox, which the infobox can not control or manipulate.
Auto-link
If a field is set to auto-link, it will automatically include the [[ and ]] around the field. Thus creating a link to the page that is referenced in this field. The template should make sure that the field is accurate by passing the value through a validation template, normally the Validate list or Validate list list templates.
The removed_version
parameter disables also the auto link system.
Boolean Values
Parameters that expect boolean values such as true or false allow for some variation in terminology as in the following:
- 1, yes = TRUE
- 0, no = FALSE
For more information, see the documentation for Template:Validate_bool.
Notes
- Please use the template {{AmmoDmg}} for weapon damage as it's inherited from the bullets. Same goes for any other property that is the bullet's own, not the gun's.
- Most values for items can be found in items.xml.
- Information on placeable items, such as traps and mines, are found in blocks.xml.
Syntax
Use the following to easily create new infoboxes. Cut and paste the code then replace needed values.
Preset |
---|
{{Infobox item |name = |image = |caption = |image_alt1 = |caption_alt1 = |image_alt2 = |caption_alt2 = |size = |group = |category = |type = |loot_cont = |slot = |attribute_focus = |perk_related = |book_related = |mag_related |durability = |storage = |lockable = |max_load = |mass = |light-opacity = |upgrades_to = |breaks_to = |damage = |pa_damage = |block_damage = |pa_block_damage = |range = |range_effective = |explosive_radius_entities = |explosive_radius_blocks = |attack_rate = |round_rate = |reload_speed = |ammo = |mag = |stamina_usage = |bonus_damage_earth = |bonus_damage_metal = |bonus_damage_stone = |bonus_damage_wood = |butcher_tool = |butcher_damage_multiplier = |butcher_resource_multiplier = |disassemble_tool = |vehicle_speed_base = |vehicle_speed_sprint = |seats = |hypo-thermal = |hyper-thermal = |waterproof = |damage_resist = |element_resist = |effect_resist = |mobility = |sta_regen = |noise = |food = |water = |stamina = |health = |health_max = |cures = |buff = |buff_chance = |buff_effect = |dysentery_chance = |durability_min = |durability_max = |degradation_rate = |mod_type = |mod_compa = |repair = |power_required = |unlocks = |price_base = |stack = |scrappable = |breaks= |meltable = |metal = |fuel = |burn-time = |crop = |seed = |grow-time = |grows-into = |obtain = }} |
Parameters
Parameter | Legal Values | Description | Auto-categorizes | Auto-links |
---|---|---|---|---|
removed_version | Version in which item was removed (overrides further auto-categorization) | Y | ||
nocat | Disables auto-categorization. Syntax: nocat = true |
|||
name | Name to be shown in the header of the infobox, uses {{PAGENAME}} if not specified | |||
image | Main image file name to be displayed | |||
caption | Caption for the main image | |||
image_alt1 | First alternative image file name to be displayed | |||
caption_alt1 | Caption for the first alternate image | |||
image_alt2 | Second alternate image file name to be displayed | |||
caption_alt2 | Caption for the second alternate image | |||
size | Size in px (for example, 75px) at which the image should be displayed, defaults to original image size | |||
Basic Information Section | ||||
group | The group this item belongs to. Can be more than one. | Y | Y | |
category |
|
The wiki category/categories in which to place the item. Can be more than one. | Y | |
type | <Text> | A comma separated list of a sub-category, depending on the item. For example Melee Weapon, Repair Tool. | ||
loot_cont | <Numeric> | The loot container this container uses. | ||
slot |
|
Gear slot. Example: for bandana slot = Face |
||
attribute_focus | <Text> | Which Attribute covers the item; usually for tools, weapons and armor. | ||
perk_related | <Text> | Which Perks cover the item; usually for tools, weapons and armor. | ||
book_related | <Text> | Which Perk Books cover the item; usually for tools, weapons and armor. | ||
Block Properties Section | ||||
durability | <Numeric> | Hit Points of a block. Note that blocks use durability without min/max, items with quality levels use durability min/max | ||
storage | <Numeric> | How many storage slots this item has (if container). | ||
lockable | <Boolean> | Whether this item can be locked. | Y | |
max_load | <Numeric> | See: Max Load | ||
mass | <Numeric> | Weight (only for blocks); see: Mass | ||
light-opacity | <Numeric> | How much light the block blocks. | ||
upgrades_to | <Text> | The block into which it upgrades (Mostly building blocks and doors/hatches) | ||
breaks_to | <Text> | Breaks into what block. (The opposite of the above.) | ||
Weapon/Tool Properties Section | ||||
damage | <Numeric> | Damage this item deals to entities; see Entity Damage. | ||
pa_damage | <Numeric> | Power Attack damage this item deals to entities. | ||
block_damage | <Numeric> | Damage this item deals to blocks; see Block Damage. | ||
pa_block_damage | <Numeric> | Power Attack damage this item deals to blocks. | ||
range | <Numeric> | Maximum range for melee and ranged attacks | ||
range_effective | <Numeric> | For ranged weapons, effective range with full damage. See: Range | ||
explosive_radius_entities | <Numeric> | This is the radius of effect of the explosion as applied to entities. | ||
explosive_radius_blocks | <Numeric> | This is the radius of effect of the explosion as applied to blocks. | ||
attack_rate | <Numeric> | Attack rate for melee items, units are per minute. | ||
round_rate | <Numeric> | Round rate for firearms, units are per minute. | ||
reload_speed | <Numeric> | Time it takes to reload item | ||
ammo | <Numeric> | The item/s this item uses as ammo. | ||
mag | <Numeric> | Magazine Size | ||
stamina_usage | <Numeric> | How much stamina this item uses with normal use. | ||
pa_stamina_usage | <Numeric> | How much stamina this item uses on power attacks. | ||
bonus_damage_earth | <Numeric> | Bonus damage to this type of item, expressed as a multiplier | ||
bonus_damage_metal | <Numeric> | Bonus damage to this type of item, expressed as a multiplier | ||
bonus_damage_stone | <Numeric> | Bonus damage to this type of item, expressed as a multiplier | ||
bonus_damage_wood | <Numeric> | Bonus damage to this type of item, expressed as a multiplier | ||
butcher_tool | <Boolean> | If the item is a butcher tool. | ||
butcher_damage_multiplier | <Numeric> | Self-explanatory, usually over 1. | ||
butcher_resource_multiplier | <Numeric> | Self-explanatory, between 0 and 1. | ||
disassemble_tool | <Boolean> | If the item is a disassemble tool. | ||
Vehicle Properties Section | ||||
vehicle_speed_base | <Numeric> | Base speed of a vehicle | ||
vehicle_speed_sprint | <Numeric> | Sprint speed of a vehicle | ||
seats | <Numeric> | The amount of people that can sit in the vehicle at the same time. | ||
Protection Properties Section | ||||
hypo-thermal | <Numeric> | Temperature modifier. This is the how much protection against the cold the item provides. | ||
hyper-thermal | <Numeric> | Temperature modifier. This is the how much protection against heat the item provides. | ||
waterproof | <Numeric> | How much protection the item provides against water, rain and the like, this will help or hinder with temperature effects. | ||
damage_resist | <Numeric> | The basic armor rating of the armor. | ||
element_resist | <Numeric> | The basic element resist of the armor. | ||
effect_resist | <Numeric> | The basic effect resist of the armor (straight in the game files, 10% + shown in-game value). | ||
mobility | <Numeric> | What effect the armor has in mobility, eg. -4.1%. | ||
sta_regen | <Numeric> | How much the item reduces stamina regeneration while running, eg. the bigger number that is shown in-game too. For example -1.5% | ||
noise | <Numeric> | How much the item increases the player's noise eg. +20% | ||
Consumption Effects Section | ||||
food | <Numeric> | Fullness change when you eat/drink this one. | ||
water | <Numeric> | Thirst change when you eat/drink this one. | ||
stamina | <Numeric> | Stamina change when you eat/drink this one. | ||
health | <Numeric> | Health change when you eat/drink this one. | ||
health_max | <Numeric> | Change to max health when you eat/drink/use this one - Integrated Survival System. | ||
cures | <Text> | Effects this item cures when used. | ||
buff | <Text> | Other buffs when you eat/drink this one. | ||
buff_chance | <Numeric> | The chance to obtain said buff. | ||
buff_effect | <Text> | What the buff does. | ||
dysentery_chance | <Numeric> | The chance to obtain dysentery. | ||
Characteristic Properties Section | ||||
durability_min | <Numeric> | The durability of an item at its minimum quality. Note that blocks use durability without min/max, items with quality levels use durability min/max | ||
durability_max | <Numeric> | The durability of an item at its maximum quality. Note that blocks use durability without min/max, items with quality levels use durability min/max | ||
degradation_rate | <Numeric> | The rate at which the durability decreases per use when the item is used. | ||
mod_type | <Text> | The mod's type, eg. Barrel Attachment | ||
mod_compa | <Text> | The mod types this item can have. | ||
repair | <Text> | The item that is needed to repair this one. | ||
power_required | <Numeric> | The value given is the amount of power required to run this device. | ||
unlocks | <Text> | The item this one unlocks (if any). | ||
price_base | <Numeric> | Default Value of an item | ||
stack | <Numeric> | Maximum amount of items in one stack | ||
Scrapping/Forging Properties Section | ||||
scrappable | <Boolean> | Whether or not the item can be scrapped. | ||
breaks | <Text> | The material got when scrapping this item. | ||
meltable | <Boolean> | Whether or not the item can be melted in forge. | ||
metal |
|
The kind of metal this item gives when melted. | ||
fuel | <Boolean> | Whether or not the item can be used as fuel in campfire/forge etc. | ||
burn-time | <Numeric> | amount of time the item burns (in seconds). | ||
Farming Properties Section | ||||
crop | <Text> | The item that can be harvested from this plant. | ||
seed | <Text> | The seed that is required in order to plant this crop. | ||
grows-into | <Text> | The plant that this seed will become when planted. | ||
grow-time | <Numeric> | The time (in seconds) this plant needs to grow to be harvestable. | ||
Obtaining Section | ||||
obtain |
|
How this item can be obtained. |
The above documentation is transcluded from Template:Infobox item/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | history) and testcases (edit) pages.