(āāParameters: updated "category" parameter documentation) |
mNo edit summary Ā |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 9: | Line 9: | ||
==Auto-categorization== |
==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: <code>|nocat = 1</code>. |
|
ā | The <code> |
+ | 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. |
ā | == |
+ | == Syntax == |
ā | Use the following to easily create new infoboxes. Cut and paste the code then replace |
+ | 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 |
||
ā | | |
+ | |slot = |
+ | |crafting-skill = |
||
ā | |group = Food/Cooking |
||
ā | | |
+ | |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]] || |
||
|- |
|- |
||
ā | | |
+ | |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
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: Crossbow 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 |
|
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 |
|
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 |
|
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.