7 Days to Die Wiki
(ā†’ā€ŽParameters: updated "category" parameter documentation)
mNo edit summary
Ā 
(11 intermediate revisions by 3 users not shown)
Line 9: Line 9:
 
==Auto-categorization==
 
==Auto-categorization==
   
āˆ’
Inclusion of the template will auto-categorize the article in [[:Category:Items]]. Additionally, 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: <code>|nocat = 1</code>.
+
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: <code>|nocat = 1</code>.
   
āˆ’
The <code>removed</code> 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.
+
The <code>removed_version</code> 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 '''<nowiki>[[</nowiki>''' and '''<nowiki>]]</nowiki>''' 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 <code>removed_version</code> parameter disables also the auto link system.
 
==Boolean Values==
 
==Boolean Values==
   
Line 21: Line 25:
 
::0, n, no, f, false = FALSE
 
::0, n, no, f, false = FALSE
   
āˆ’
For more information, see the documentation for [[Template:Validate_bool]]
+
For more information, see the documentation for [[Template:Validate_bool]].
   
 
== Notes ==
 
== Notes ==
Line 27: Line 31:
 
Use this syntax:
 
Use this syntax:
 
<nowiki>|ammo = [[File:CrossbowBolt.png|20px|link=Crossbow Bolt]][[Crossbow Bolt]]</nowiki>
 
<nowiki>|ammo = [[File:CrossbowBolt.png|20px|link=Crossbow Bolt]][[Crossbow Bolt]]</nowiki>
āˆ’
will look like: [[File:CrossbowBolt.png|20px|link=Crossbow Bolt]][[Crossbow Bolt]]
+
will look like: [[File:CrossbowBolt.png|20px|link=Crossbow Bolt]][[Crossbow Bolt]].
āˆ’  
āˆ’
* When using the experience components, exp1 is the inital experience gained for the first use, exp2 is every subsequent use of the item.
 
   
 
* Most values for items can be found in items.xml.
 
* Most values for items can be found in items.xml.
   
āˆ’
* Information on placeable items, such as traps and mines, are found in blocks.xml
+
* Information on placeable items, such as traps and mines, are found in blocks.xml.
   
āˆ’
==Cut, Paste, and Replace==
+
== Syntax ==
āˆ’
Use the following to easily create new infoboxes. Cut and paste the code then replace the values as appropriate.
+
Use the following to easily create new infoboxes. Cut and paste the code then replace needed values, do not remove the lines (leave {"="[nothing]} to do not display them).
   
āˆ’
{| class="wikitable mw-collapsible mw-collapsed"
+
{| class="wikitable mw-collapsible mw-collapsed" style="width: 60%"
  +
! Preset
āˆ’
! Firearm
 
āˆ’
|-
 
āˆ’
|<pre>
 
āˆ’
{{Infobox_item/Sandbox
 
āˆ’
|image = Ak47.png
 
āˆ’
|item-id = 48
 
āˆ’
|group = Ammo/Weapons
 
āˆ’
|category = Firearms
 
āˆ’
|type = Automatic
 
āˆ’
|damage_min = 25
 
āˆ’
|damage_max = (combination of all the parts qualities.)
 
āˆ’
|speed = 0.10
 
āˆ’
|bonus_damage_headshot = 6
 
āˆ’
|durability_min = 1
 
āˆ’
|durability_max = 600
 
āˆ’
|range = 100
 
āˆ’
|ammo = [[File:762mmBullet.png|20px|link=762mm Bullet]] [[762mm Bullet]]
 
āˆ’
|clip = 30 Cartridges
 
āˆ’
|used_parts = [[Ak 47 Receiver]]<br>[[Ak 47 Barrel]]<br>[[Ak 47 Stock]]<br>[[Ak 47 Parts]]
 
āˆ’
|weight = 6.8
 
āˆ’
|weight_forge = 108
 
āˆ’
|metal = Iron
 
āˆ’
|meltable = y
 
āˆ’
|scrapable = y
 
āˆ’
|dismantleable = y
 
āˆ’
|scrap_iron = 13
 
āˆ’
|ob_craft = 1
 
āˆ’
|ob_loot = 1
 
āˆ’
|ob_cheat = 1
 
āˆ’
|repair = [[Weapon Repair Kit]]
 
āˆ’
|unlocked = [[Ak 47 Schematic]]
 
āˆ’
|ActionSkillGroup = [[Rifles (Skill)]]
 
āˆ’
|CraftingSkillGroup = [[Gun Smithing (Skill)]]
 
āˆ’
}}
 
āˆ’
</pre>
 
āˆ’
|}
 
āˆ’  
āˆ’
{| class="wikitable mw-collapsible mw-collapsed"
 
āˆ’
! Clothing
 
 
|-
 
|-
 
|<pre>
 
|<pre>
 
{{Infobox item
 
{{Infobox item
  +
|name = {{PAGENAME}}
āˆ’
|image = HazmatShirt.png
 
  +
|image =
āˆ’
|item-id = hazmatShirt
 
  +
|caption =
āˆ’
|group = Clothing
 
  +
|image_alt1 =
āˆ’
|durability = 1-600 (depending on quality level)
 
  +
|caption_alt1 =
āˆ’
|slot = Chest
 
  +
|image_alt2 =
āˆ’
|repair = [[Cloth Fragment]]
 
  +
|caption_alt2 =
āˆ’
|insulation = 20
 
  +
|size =
āˆ’
|waterproof = 20
 
āˆ’
|concussive = 30
 
āˆ’
|puncture = 20
 
āˆ’
|burn-time = 0:03
 
āˆ’
|bullet =
 
āˆ’
|melee =
 
āˆ’
|blunt =
 
āˆ’
|explosives =
 
āˆ’
|fuel =
 
āˆ’
|ob_craft =
 
āˆ’
|ob_cheat =
 
āˆ’
|ActionSkillGroup = [[Rifles (Skill)]]
 
āˆ’
|CraftingSkillGroup = [[Gun Smithing (Skill)]]
 
āˆ’
|ActionSkillGroup =
 
āˆ’
|CraftingSkillGroup =
 
āˆ’
}}
 
āˆ’
</pre>
 
āˆ’
|}
 
   
  +
|nocat =
āˆ’
{| class="wikitable mw-collapsible mw-collapsed"
 
  +
|group =
āˆ’
! Food
 
  +
|category =
āˆ’
|-
 
  +
|type =
āˆ’
|<pre>
 
  +
|loot_cont =
āˆ’
{{Infobox item
 
āˆ’
|category = Food
+
|slot =
  +
|crafting-skill =
āˆ’
|group = Food/Cooking
 
āˆ’
|health = +5
+
|action-skill =
āˆ’
|hunger = +20
 
āˆ’
|image = VenisonStew.png
 
āˆ’
|ob_loot = 1
 
āˆ’
|ob_cheat = 1
 
āˆ’
|ob_cook = 1
 
āˆ’
|smell_bp = 20m
 
āˆ’
|smell_bp_str = 4m
 
āˆ’
|smell_tb = 60m
 
āˆ’
|smell_tb_str = 4m
 
āˆ’
|stack = 500
 
āˆ’
|thirst = 0
 
āˆ’
|type = Boiled
 
āˆ’
|used_ingredients = [[Bottled Water]]<br>[[Raw Meat]]<br>[[Potato]]<br>[[Corn]]
 
āˆ’
|used_utensil = [[Cooking Pot]]
 
āˆ’
|well = +1.6
 
āˆ’
|ActionSkillGroup = [[Rifles (Skill)]]
 
āˆ’
|CraftingSkillGroup = [[Gun Smithing (Skill)]]
 
āˆ’
}}
 
āˆ’
</pre>
 
āˆ’
|}
 
   
  +
|durability =
āˆ’
== Syntax ==
 
  +
|storage =
  +
|lockable =
  +
|max_load =
  +
|mass =
  +
|light-opacity =
  +
|upgrades_to =
  +
|breaks_to =
   
  +
|damage =
āˆ’
Basic syntax:
 
  +
|pa_damage =
  +
|block_damage =
  +
|pa_block_damage =
  +
|range =
  +
|range_effective =
  +
|explosive_radius_entities
  +
|explosive_radius_blocks
  +
|attack_rate =
  +
|round_rate =
  +
|reload_speed =
  +
|mag =
  +
|ammo =
  +
|stamina_usage =
  +
|durability_min =
  +
|durability_max =
  +
|degradation_rate =
  +
|bonus_damage_earth =
  +
|bonus_damage_metal =
  +
|bonus_damage_stone =
  +
|bonus_damage_wood =
  +
|butcher_tool =
  +
|butcher_damage_multiplier =
  +
|butcher_resource_multiplier =
  +
|disassemble_tool =
  +
|mod_type =
  +
|mod_compa =
  +
  +
|vehicle_speed_base =
  +
|vehicle_speed_sprint =
  +
|seats =
   
  +
|hypo-thermal =
āˆ’
<pre>
 
  +
|hyper-thermal =
āˆ’
{{Infobox item
 
  +
|waterproof =
āˆ’
| name = {{PAGENAME}}
 
  +
|damage_resist =
āˆ’
| parameter = value
 
  +
|mobility =
āˆ’
| parameter = value
 
  +
|sta_regen =
āˆ’
| parameter = value
 
  +
|noice =
  +
  +
|food =
  +
|water =
  +
|stamina =
  +
|health =
  +
|health_max =
  +
|cures =
  +
|buff =
  +
|buff_chance =
  +
|buff_effect =
  +
  +
|repair =
  +
|power_required =
  +
|unlocks =
  +
|price_base =
  +
|stack =
  +
  +
|scrappable =
  +
|breaks=
  +
|scrap_amount =
  +
|meltable =
  +
|metal =
  +
|fuel =
  +
|burn-time =
  +
  +
|crop =
  +
|seed =
  +
|grow-time =
  +
  +
|obtain =
 
}}
 
}}
 
</pre>
 
</pre>
  +
|}
   
 
== Parameters ==
 
== Parameters ==
Line 153: Line 149:
 
|-
 
|-
 
! Parameter
 
! Parameter
  +
! Legal Values
 
! Description
 
! Description
āˆ’
! Auto-categorizes
+
! style="width: 10%"|Auto-categorizes
  +
! style="width: 10%"|Auto-links
āˆ’
|-
 
āˆ’
|CraftingSkillGroup || The skill used to craft an item. Can be found in items.xml ||
 
āˆ’
|-
 
āˆ’
|ActionSkillGroup || The skill that receives skill points when an item is used. Can be found in items.xml ||
 
āˆ’
|-
 
āˆ’
|removed || Version in which item was removed (overrides further auto-categorization) || Y
 
āˆ’
|-
 
āˆ’
|nocat || Disables auto-categorization. <br>Syntax: <code>nocat = true</code> ||
 
āˆ’
|-
 
āˆ’
|name || Name of the item ||
 
āˆ’
|-
 
āˆ’
|image || Main image of the item ||
 
āˆ’
|-
 
āˆ’
|caption || Caption for the main image ||
 
āˆ’
|-
 
āˆ’
|image_alt1 || First alternate Image of the item ||
 
āˆ’
|-
 
āˆ’
|caption_alt1 || Caption for the first alternate image ||
 
 
|-
 
|-
  +
|removed_version || || Version in which item was removed (overrides further auto-categorization) || style="text-align:center"|Y
āˆ’
|image_alt2 || Second alternate image of the item ||
 
 
|-
 
|-
  +
|nocat || || Disables auto-categorization. Syntax: <code>nocat = true</code> ||
āˆ’
|caption_alt2 || Caption for the second alternate image ||
 
 
|-
 
|-
  +
|name || || Name to be shown in the header of the infobox, uses <nowiki>{{PAGENAME}}</nowiki> if not specified ||
āˆ’
|size || ||
 
 
|-
 
|-
  +
|image || || Main image file name to be displayed ||
āˆ’
|group || The group this item belongs to. (For possible groups see: [[Group]]) ||
 
 
|-
 
|-
  +
|caption || || Caption for the main image ||
āˆ’
|category || The wiki category in which to place the item. || Y
 
 
|-
 
|-
  +
|image_alt1 || || First alternative image file name to be displayed ||
āˆ’
|type || A sub-category, depending on the item. For example a "semi-automatic" firearm. ||
 
 
|-
 
|-
  +
|caption_alt1 || || Caption for the first alternate image ||
āˆ’
|tool-type || ||
 
 
|-
 
|-
  +
|image_alt2 || || Second alternate image file name to be displayed ||
āˆ’
|item-id || Item ID number in brackets in creative menu. ||
 
 
|-
 
|-
  +
|caption_alt2 || || Caption for the second alternate image ||
āˆ’
|location || ||
 
 
|-
 
|-
  +
|size || || Size (in px) the image should be displayed at, eg. 75px ||
āˆ’
|found || ||
 
 
|-
 
|-
  +
| colspan="5" style="text-align:center" | <h2>Basic Information Section</h2>
āˆ’
|breaks || Breaks into which items ||
 
 
|-
 
|-
  +
|group ||
āˆ’
|slot || Gear slot. Example: Bandana = face ||
 
  +
*[[Ammo/Weapons]]
  +
*[[Basics]]
  +
*[[Books]]
  +
*[[Building]]
  +
*[[Chemicals]]
  +
*[[Clothing]]
  +
*[[Decor/Miscellaneous]]
  +
*[[Food/Cooking]]
  +
*[[Mods]]
  +
*[[Science]]
  +
*[[Resources]]
  +
*[[Tools/Traps]]
  +
| The group this item belongs to. (For possible groups see: [[Item Group]])<br> Can be more than one.
  +
| style="text-align:center"|Y || style="text-align:center"|Y
 
|-
 
|-
  +
|category || style="text-align:center" | '''''<Text>''''' || The wiki category in which to place the item. Only one value. || style="text-align:center"|Y
āˆ’
|tool-fuel || Fuel to use this tool. (There is only Gas Can.) ||
 
 
|-
 
|-
  +
|type || style="text-align:center" | '''''<Text>''''' || A comma separated list of a sub-category, depending on the item. For example Melee Weapon, Repair Tool. ||
āˆ’
|places || ||
 
 
|-
 
|-
  +
|loot_cont || style="text-align:center" | '''''<Numeric>''''' || The loot container this container uses. ||
āˆ’
|exp || How much experience you gain from this item (First time <nowiki>|</nowiki> Subsequent times) ||
 
 
|-
 
|-
  +
|slot ||
āˆ’
|cookable || Whether this item can be cooked || Y
 
  +
*Hat
  +
*Glasses
  +
*Face
  +
*Overcoat
  +
*Chest Armor
  +
*Shirt
  +
*Gloves
  +
*Leg Armor
  +
*Pants
  +
*Boots
  +
*Backpack
  +
|Gear slot. Example: for bandana <code>slot = face</code> ||
 
|-
 
|-
  +
|attribute_focus || style="text-align:center" | '''''<Text>''''' || Which [[Perks#Attributes|Attribute]] covers the item; usually for tools and weapons. ||
āˆ’
|meltable || Whether this item can be melted || Y
 
 
|-
 
|-
  +
| colspan="5" style="text-align:center" | <h2>Block Properties Section</h2>
āˆ’
|scrapable || Whether this item can be scrapped || Y
 
 
|-
 
|-
  +
|durability||style="text-align:center"|'''''<Numeric>''''' || Hit Points of a block. Note that blocks use durability without min/max, items with quality levels use durability min/max ||
āˆ’
|dismantleable || Whether this item can be dismantled || Y
 
 
|-
 
|-
  +
|storage ||style="text-align:center"|'''''<Numeric>''''' || How many storage slots this item has (if container). ||
āˆ’
|lockable || Whether this item can be locked || Y
 
 
|-
 
|-
  +
|lockable || style="text-align:center" | '''''<Boolean>''''' || Whether this item can be locked. || style="text-align:center"|Y
āˆ’
|storage || How many storage slots this item has (if container) ||
 
 
|-
 
|-
  +
|max_load || style="text-align:center"| '''''<Numeric>''''' || See: [[Max Load]] ||
āˆ’
|smell_tb || Smell radius when carried on toolbelt (in m) ||
 
 
|-
 
|-
  +
|mass || style="text-align:center"| '''''<Numeric>'''''|| Weight (only for blocks); see: [[Mass]] ||
āˆ’
|smell_tb_str || Smell strength when carried on toolbelt ||
 
 
|-
 
|-
  +
|light-opacity || style="text-align:center" | '''''<Numeric>''''' || How much light the block blocks. ||
āˆ’
|smell_br || Smell radius when carried in backpack (in m) ||
 
 
|-
 
|-
  +
|upgrades_to|| style="text-align:center" | '''''<Text>''''' || The block into which it upgrades (Mostly building blocks and doors/hatches) ||
āˆ’
|smell_br_str || Smell strength when carried in backpack ||
 
 
|-
 
|-
  +
|breaks_to|| style="text-align:center" | '''''<Text>''''' ||Breaks into what block. (The opposite of the above.)||
āˆ’
|durability || Durability of the item; see [[Durability]] ||
 
 
|-
 
|-
  +
| colspan="5" style="text-align:center" | <h2>Weapon/Tool Properties Section</h2>
āˆ’
|puredur || Pure durability of the item; see: [[Pure-Dur]] ||
 
 
|-
 
|-
āˆ’
|hardness || Hardness of the item; see: [[Hardness]] ||
+
|damage || style="text-align:center"|'''''<Numeric>'''''|| Damage this item deals to entities; see [[Entity Damage]]. ||
 
|-
 
|-
  +
|pa_damage || style="text-align:center"|'''''<Numeric>'''''|| Power Attack damage this item deals to entities. ||
āˆ’
|structural integrity || See: [[Structural Integrity]] ||
 
 
|-
 
|-
  +
|block_damage || style="text-align:center"|'''''<Numeric>'''''|| Damage this item deals to blocks; see [[Block Damage]]. ||
āˆ’
|max_load || See: [[Max Load]] ||
 
 
|-
 
|-
  +
|pa_block_damage || style="text-align:center"|'''''<Numeric>'''''|| Power Attack damage this item deals to blocks. ||
āˆ’
|mass || Weight (only for blocks); see: [[Mass]] ||
 
 
|-
 
|-
  +
|range ||style="text-align:center"| '''''<Numeric>'''''|| Maximum range for melee and ranged attacks ||
āˆ’
|tool || The [[Appropriate Tool]] best to destroy this item (only for blocks) ||
 
 
|-
 
|-
  +
|range_effective ||style="text-align:center"| '''''<Numeric>'''''|| For ranged weapons, effective range with full damage. See: [[Range]] ||
āˆ’
|damage || Damage this item deals to entities; see [[Entity Damage]] ||
 
 
|-
 
|-
  +
|explosive_radius_entities || style="text-align:center"|'''''<Numeric>'''''|| This is the radius of effect of the explosion as applied to entities. ||
āˆ’
|block_damage || Damage this item deals to blocks; see [[Block Damage]] ||
 
 
|-
 
|-
  +
|explosive_radius_blocks || style="text-align:center"|'''''<Numeric>'''''|| This is the radius of effect of the explosion as applied to blocks. ||
āˆ’
|range || Weapon/Tool range. See: [[Range]] ||
 
 
|-
 
|-
  +
|attack_rate|| style="text-align:center"|'''''<Numeric>'''''|| Attack rate, units are per minute. ||
āˆ’
|buff || Buff imparted by item. ||
 
 
|-
 
|-
  +
|round_rate|| style="text-align:center"|'''''<Numeric>'''''|| Round rate, units are per minute. ||
āˆ’
|buff_chance || Percent chance buff will be imparted ||
 
 
|-
 
|-
āˆ’
|reload_speed || Time it takes to reload item ||
+
|reload_speed ||style="text-align:center"| '''''<Numeric>'''''|| Time it takes to reload item ||
 
|-
 
|-
  +
|mag || style="text-align:center" | '''''<Numeric>''''' || Magazine Size||
āˆ’
|speed || Attack speed. ||
 
 
|-
 
|-
  +
|ammo || style="text-align:center" | '''''<Numeric>''''' || The item this item uses as ammo. ||
āˆ’
|bonus_damage_headshot || Headshot damage multiplier. ||
 
 
|-
 
|-
  +
|stamina_usage || style="text-align:center" | '''''<Numeric>''''' || How much stamina this item uses. ||
āˆ’
|inv_slots || ||
 
 
|-
 
|-
  +
|pa_stamina_usage || style="text-align:center" | '''''<Numeric>''''' || How much stamina this item uses on power attacks. ||
āˆ’
|stack || Maximum amount of items in one stack ||
 
 
|-
 
|-
  +
|durability_min ||style="text-align:center"|'''''<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 ||
āˆ’
|bullet || Bullet protection. ||
 
 
|-
 
|-
  +
|durability_max ||style="text-align:center"|'''''<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 ||
āˆ’
|melee || Melee protection. ||
 
 
|-
 
|-
  +
|degradation_rate ||style="text-align:center"|'''''<Numeric>''''' || The rate at which the durability decreases per use when the item is used. ||
āˆ’
|puncture || Punture protection. ||
 
 
|-
 
|-
  +
|bonus_damage_earth|| style="text-align:center"|'''''<Numeric>''''' || Bonus damage to this type of item, expressed as a multiplier ||
āˆ’
|blunt || Blunt protection. ||
 
 
|-
 
|-
  +
|bonus_damage_metal|| style="text-align:center"|'''''<Numeric>''''' || Bonus damage to this type of item, expressed as a multiplier ||
āˆ’
|explosives || Explosives protection. ||
 
 
|-
 
|-
  +
|bonus_damage_stone|| style="text-align:center"|'''''<Numeric>''''' || Bonus damage to this type of item, expressed as a multiplier ||
āˆ’
|hunger || Fullness change when you eat/drink this one. ||
 
 
|-
 
|-
  +
|bonus_damage_wood|| style="text-align:center"|'''''<Numeric>''''' || Bonus damage to this type of item, expressed as a multiplier ||
āˆ’
|thirst || Thirst change when you eat/drink this one. ||
 
 
|-
 
|-
  +
|butcher_tool || style="text-align:center"| '''''<Boolean>'''''|| If the item is a butcher tool. ||
āˆ’
|health || Health change when you eat/drink this one. ||
 
 
|-
 
|-
  +
|butcher_damage_multiplier || style="text-align:center"| '''''<Numeric>'''''|| Self-explanatory, usually over 1. ||
āˆ’
|stamina || Stamina change when you eat/drink this one. ||
 
 
|-
 
|-
  +
|butcher_resource_multiplier || style="text-align:center"| '''''<Numeric>'''''|| Self-explanatory, between 0 and 1. ||
āˆ’
|well || Wellness change when you eat/drink this one. ||
 
 
|-
 
|-
  +
|disassemble_tool || style="text-align:center"| '''''<Boolean>'''''|| If the item is a disassemble tool. ||
āˆ’
|gas || Gassiness change when you eat/drink this one. ||
 
 
|-
 
|-
  +
|mod_type || style="text-align:center" | '''''<Text>''''' || The mod's type, eg. Barrel Attachment ||
āˆ’
|consumption || Other effects when you eat/drink this one. ||
 
 
|-
 
|-
  +
|mod_compa || style="text-align:center" | '''''<Text>''''' || The mod types this item can have. ||
āˆ’
|ammo || The item this item uses as ammo (if any) ||
 
 
|-
 
|-
  +
| colspan="5" style="text-align:center" | <h2> Vehicle Properties Section </h2>
āˆ’
|clip || Amount of ammo that fits in one clip ||
 
 
|-
 
|-
  +
|vehicle_speed_base||style="text-align:center"| '''''<Numeric>''''' || Base speed of a vehicle ||
āˆ’
|used_by || ||
 
 
|-
 
|-
  +
|vehicle_speed_sprint||style="text-align:center"| '''''<Numeric>''''' || Sprint speed of a vehicle ||
āˆ’
|unlocks || The item this one unlocks (if any) ||
 
 
|-
 
|-
  +
|seats || style="text-align:center" | '''''<Numeric>''''' || The amount of people that can sit in the vehicle at the same time. ||
āˆ’
|unlocked || The item that unlocks this one (eg. schematic) ||
 
 
|-
 
|-
  +
| colspan="5" style="text-align:center" | <h2>Protection Properties Section</h2>
āˆ’
|repair || The item that is needed to repair this one ||
 
 
|-
 
|-
  +
|hypo-thermal|| style="text-align:center" | '''''<Numeric>''''' || Temperature modifier. This is the how much protection against the cold the item provides. An item can have both hypo and hyper attributes.||
āˆ’
|repairs || The item this one repairs ||
 
 
|-
 
|-
  +
|hyper-thermal|| style="text-align:center" | '''''<Numeric>''''' || Temperature modifier. This is the how much protection against heat the item provides. An item can have both hypo and hyper attributes.||
āˆ’
|rep_value || The amount with which this item repairs ||
 
 
|-
 
|-
  +
|waterproof|| style="text-align:center" | '''''<Numeric>''''' || How much protection the item provides against water, rain and the like, this will help or hinder with temperature effects. ||
āˆ’
|used_in || Items you can craft with this one. ||
 
 
|-
 
|-
  +
|damage_resist || style="text-align:center" | '''''<Numeric>''''' || The basic armor rating of the armor. ||
āˆ’
|used parts || Parts used to assembly. ||
 
 
|-
 
|-
  +
|mobility || style="text-align:center" | '''''<Numeric>''''' || What effect the armor has in mobility, eg. -4.1%. ||
āˆ’
|used in upgrading || ||
 
 
|-
 
|-
  +
|sta_regen || style="text-align:center" | '''''<Numeric>''''' || How much the item reduces stamina regeneration ''while running'', eg. the bigger number that is shown in-game too. For example -1.5% ||
āˆ’
|frame || ||
 
 
|-
 
|-
  +
|noise || style="text-align:center" | '''''<Numeric>''''' || How much the item increases the player's noise eg. 20% ||
āˆ’
|used_parts_upgrading || Items used to upgrade this one. ||
 
 
|-
 
|-
  +
| colspan="5" style="text-align:center" | <h2>Consumption Effects Section</h2>
āˆ’
|unlocked_cooking || ||
 
 
|-
 
|-
  +
|food || style="text-align:center" | '''''<Numeric>''''' || Fullness change when you eat/drink this one. ||
āˆ’
|used in cooking || ||
 
 
|-
 
|-
  +
|water || style="text-align:center" | '''''<Numeric>''''' || Thirst change when you eat/drink this one. ||
āˆ’
|used_utensil || ||
 
 
|-
 
|-
  +
|stamina || style="text-align:center" | '''''<Numeric>''''' || Stamina change when you eat/drink this one. ||
āˆ’
|used_ingredients || Ingredients used to cook this one. ||
 
 
|-
 
|-
  +
|health || style="text-align:center" | '''''<Numeric>''''' || Health change when you eat/drink this one. ||
āˆ’
|unlocked_chemistry || ||
 
 
|-
 
|-
  +
|health_max || style="text-align:center" | '''''<Numeric>''''' || Change to max health when you eat/drink/use this one - Integrated Survival System. ||
āˆ’
|used_in_chemistry || ||
 
 
|-
 
|-
  +
|buff|| style="text-align:center" | '''''<Text>''''' || Other buffs when you eat/drink this one. ||
āˆ’
|used_ingredients_chemistry || ||
 
 
|-
 
|-
  +
|buff_chance || style="text-align:center" | '''''<Numeric>''''' || The chance to obtain said buff. ||
āˆ’
|used_in_forging || ||
 
 
|-
 
|-
  +
|buff_effect || style="text-align:center" | '''''<Text>''''' || What the buff does. ||
āˆ’
|weight || Weight in lbs ||
 
 
|-
 
|-
  +
| colspan="5" style="text-align:center" | <h2> Characteristic Properties Section</h2>
āˆ’
|weight_forge || How much 'metal' this item gives when melted ||
 
 
|-
 
|-
  +
|repair || style="text-align:center" | '''''<Text>''''' || The item that is needed to repair this one. ||
āˆ’
|metal || The kind of metal this item gives when melted ||
 
 
|-
 
|-
  +
|power_required || style="text-align:center"| '''''<Numeric>''''' || The value given is the amount of power required to run this device. ||
āˆ’
|fuel || whether the item can be burnt ||
 
 
|-
 
|-
  +
|unlocks|| style="text-align:center" | '''''<Text>''''' || The item this one unlocks (if any). ||
āˆ’
|burn-time || amount of time the item burns (in secs) ||
 
 
|-
 
|-
  +
|price_base|| ||Default Value of an item ||
āˆ’
|ob_cheat || whether the item is obtainable through creative menu || Y
 
 
|-
 
|-
  +
|stack || style="text-align:center"|'''''<Numeric>'''''|| Maximum amount of items in one stack ||
āˆ’
|ob_cook || whether the item is obtainable through cooking || Y
 
 
|-
 
|-
  +
| colspan="5" style="text-align:center" | <h2>Scrapping/Forging Properties Section</h2>
āˆ’
|ob_craft || whether the item is obtainable through crafting || Y
 
 
|-
 
|-
  +
|scrappable|| style="text-align:center" | '''''<Boolean>''''' || Whether or not the item can be scrapped. ||
āˆ’
|ob_dismantle || whether the item is obtainable through dismanteling || Y
 
 
|-
 
|-
  +
|breaks|| style="text-align:center" | '''''<Text>''''' || The material got when scrapping this item. ||
āˆ’
|ob_farm || whether the item is obtainable through farming || Y
 
 
|-
 
|-
  +
|scrap_amount|| style="text-align:center" | '''''<Numeric>''''' || The amount of material got in scrapping. ||
āˆ’
|ob_forge || whether the item is obtainable through forging || Y
 
 
|-
 
|-
  +
|meltable|| style="text-align:center" | '''''<Boolean>''''' || Whether or not the item can be melted in forge. ||
āˆ’
|ob_loot || whether the item is obtainable through looting || Y
 
 
|-
 
|-
  +
|metal ||
āˆ’
|ob_mine || whether the item is obtainable through mining || Y
 
  +
*Brass
  +
*Sand
  +
*Iron
  +
*Lead
  +
*Stone
  +
*Clay
  +
||The kind of metal this item gives when melted. ||
 
|-
 
|-
  +
|fuel|| style="text-align:center" | '''''<Boolean>''''' || Whether or not the item can be used as fuel in campfire/forge etc. ||
āˆ’
|ob_scavenge || whether the item is obtainable through scavenging || Y
 
 
|-
 
|-
  +
|burn-time || style="text-align:center" | '''''<Numeric>''''' || amount of time the item burns (in seconds). ||
āˆ’
|ob_scrap || whether the item is obtainable through scrapping || Y
 
 
|-
 
|-
  +
| colspan="5" style="text-align:center" | <h2> Farming Properties Section</h2>
āˆ’
|ob_upgrade || whether the item is obtainable through upgrading || Y
 
 
|-
 
|-
  +
|crop || style="text-align:center" | '''''<Text>''''' || The item that can be harvested from the plant this seed grows. ||
āˆ’
|scrap_iron ||How much [[Scrap Iron]] this item gives when scraped || Y
 
 
|-
 
|-
  +
|seed || style="text-align:center" | '''''<Text>''''' || The seed that can be planted to get this crop. ||
āˆ’
|scrap_brass ||How much [[Scrap Brass]] this item gives when scraped || Y
 
 
|-
 
|-
  +
|grow-time|| style="text-align:center" | '''''<Numeric>''''' || The time this seed needs to grow to be harvestable.||
āˆ’
|scrap_lead || How much [[Scrap Lead]] this item gives when scraped || Y
 
 
|-
 
|-
  +
| colspan="5" style="text-align:center" | <h2>Obtaining Section</h2>
āˆ’
|scrap_tungsten || How much [[Scrap Tungsten]] this item gives when scraped || Y
 
 
|-
 
|-
  +
|obtain ||
āˆ’
|cloth_fragment ||How much [[Cloth Fragment]] this item gives when scraped || Y
 
  +
*Cooking
  +
*Crafting
  +
*Farming
  +
*Forging
  +
*Looting
  +
*Mining
  +
*Scrapping
  +
*Upgrading
  +
|| How this item can be obtained.||
 
|}
 
|}
   

Latest revision as of 15:13, 31 July 2020

Template-info Documentation


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, y, yes, t, true = TRUE
0, n, no, f, false = FALSE

For more information, see the documentation for Template:Validate_bool.

Notes[]

  • Please add a small picture of an item you put into the infobox (e.g. ammunition) for the overall look.
 Use this syntax:
 |ammo = [[File:CrossbowBolt.png|20px|link=Crossbow Bolt]][[Crossbow Bolt]]
 will look like: CrossbowBoltCrossbow Bolt.
  • 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, do not remove the lines (leave {"="[nothing]} to do not display them).

Preset
{{Infobox item
|name = {{PAGENAME}}
|image =
|caption =
|image_alt1 =
|caption_alt1 =
|image_alt2 =
|caption_alt2 =
|size =

|nocat =
|group = 
|category = 
|type = 
|loot_cont = 
|slot = 
|crafting-skill = 
|action-skill = 

|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 = 
|mag = 
|ammo = 
|stamina_usage = 
|durability_min = 
|durability_max = 
|degradation_rate = 
|bonus_damage_earth = 
|bonus_damage_metal = 
|bonus_damage_stone = 
|bonus_damage_wood = 
|butcher_tool = 
|butcher_damage_multiplier = 
|butcher_resource_multiplier = 
|disassemble_tool = 
|mod_type = 
|mod_compa = 
 
|vehicle_speed_base = 
|vehicle_speed_sprint = 
|seats = 

|hypo-thermal = 
|hyper-thermal = 
|waterproof = 
|damage_resist = 
|mobility = 
|sta_regen = 
|noice =

|food = 
|water = 
|stamina = 
|health = 
|health_max = 
|cures = 
|buff = 
|buff_chance = 
|buff_effect = 

|repair = 
|power_required = 
|unlocks = 
|price_base = 
|stack =

|scrappable = 
|breaks= 
|scrap_amount = 
|meltable = 
|metal = 
|fuel = 
|burn-time = 

|crop = 
|seed = 
|grow-time = 

|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) the image should be displayed at, eg. 75px

Basic Information Section

group The group this item belongs to. (For possible groups see: Item Group)
Can be more than one.
Y Y
category <Text> The wiki category in which to place the item. Only one value. 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
  • Hat
  • Glasses
  • Face
  • Overcoat
  • Chest Armor
  • Shirt
  • Gloves
  • Leg Armor
  • Pants
  • Boots
  • Backpack
Gear slot. Example: for bandana slot = face
attribute_focus <Text> Which Attribute covers the item; usually for tools and weapons.

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, units are per minute.
round_rate <Numeric> Round rate, units are per minute.
reload_speed <Numeric> Time it takes to reload item
mag <Numeric> Magazine Size
ammo <Numeric> The item this item uses as ammo.
stamina_usage <Numeric> How much stamina this item uses.
pa_stamina_usage <Numeric> How much stamina this item uses on power attacks.
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.
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.
mod_type <Text> The mod's type, eg. Barrel Attachment
mod_compa <Text> The mod types this item can have.

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. An item can have both hypo and hyper attributes.
hyper-thermal <Numeric> Temperature modifier. This is the how much protection against heat the item provides. An item can have both hypo and hyper attributes.
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.
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.
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.

Characteristic Properties Section

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 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.
scrap_amount <Numeric> The amount of material got in scrapping.
meltable <Boolean> Whether or not the item can be melted in forge.
metal
  • Brass
  • Sand
  • Iron
  • Lead
  • Stone
  • Clay
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 the plant this seed grows.
seed <Text> The seed that can be planted to get this crop.
grow-time <Numeric> The time this seed needs to grow to be harvestable.

Obtaining Section

obtain
  • Cooking
  • Crafting
  • Farming
  • Forging
  • Looting
  • Mining
  • Scrapping
  • Upgrading
How this item can be obtained.

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.