Template:Infobox item/doc

From PZwiki
< Template:Infobox item
Revision as of 06:53, 22 September 2023 by Vaileasys (talk | contribs) (work towards new documentation, mostly empty fields for now)
Notebook.png
This is a documentation subpage for Template:Infobox item.
It contains usage information and other content that is not part of the original template page.
IMPORTANT: This template is currently undergoing a MAJOR rework. Refrain from using this template until the rework is completed.
Hammer.png
This template is currently under construction.
It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
If this page has not been updated in a while, please replace this notice with {{Improve}}. Last edit was 22/09/2023.

All item infoboxes use this template.

Basic usage

name
Image.png
General
Category
category
Encumbrance
Moodle Icon HeavyLoad.png
weight
Technical
Item ID
item_id
{{Infobox item
| name =            <!-- or | display_name -->
| model =           <!-- or | image -->
| model_width =     <!-- or | image_width -->
| model_caption =   <!-- or | image_caption -->
| icon = 
| icon_width = 
| icon_name = 
| icon_link = 
| category = 
| weight = 
| item_id = 
}}

Parameters

Name and images

Parameter Description
Preferred Alternative
name display_name
model image
model_width image_width
model_caption image_caption
icon
icon_width
icon_name
icon_link

General

Parameter Description
Preferred Alternative
category
weight
weight_full
capacity
weight_reduction
body_location equipped
attachment_type
function primary_use
secondary_use
secondary_item
attachments_provided
weapon MountOn
weapons
skill_type type
ammo_type ammo
clip_size

Properties

Parameter Description
Preferred Alternative
material
material_value
contents
capacity max_units
weight_reduction
weight_reduction_text
can_boil_water
consumed
writable
recipes
page_number
vol_number
packaged
rain_factor
days_fresh
days_rotten
cant_be_frozen
condition_max
run_speed
combat_speed
scratch_defense
bite_defense
bullet_defense
neck_protection
insulation
wind_resistance
water_resistance
light_distance
light_strength
torch_cone
wet_cooldown
sensor_range remote_range
energy_source
portable
two_way
mic_range
transmit_range
min_channel
max_channel

Performance

Parameter Description
Preferred Alternative
damage_type
min_damage
max_damage
door_damage
tree_damage
damage_mod DamageModifier
min_range
max_range
min_range_mod
max_range_mod hit_chance
hit_chance_mod
accuracy_mod
recoil_delay recoil_mod
recoil_delay_mod
sound_radius
base_speed
push_back
knockdown
aiming_time aiming_time_mod
aiming_mod
reload_time reload_time_mod
reload_mod
crit_chance crit_multiplier
angle_mod spread_mod
kill_move
weight_mod
effect_type
effect_power
effect_range
effect_timer

Nutrition

Parameter Description
Preferred Alternative
hunger_change
thirst_change
calories
carbohydrates
proteins
lipids fat

Effect

Parameter Description
Preferred Alternative
unhappy_change
boredom_change
stress_change
fatigue_change
endurance_change
flu_change
pain_change
sick_change
alcoholic alcohol
alcohol_power
reduce_infection_power
bandage_power
wet_cooldown
max_units
poison_power

Cooking

Parameter Description
Preferred Alternative
cook_minutes
burn_minutes
dangerous_uncooked
bad_microwaved
good_hot
bad_cold
spice
evolved_recipe

Crafting

Parameter Description
Preferred Alternative
ingredients

Technical

Parameter Description
Preferred Alternative
item_id class_name
media_id

Food

name
Image.png
General
Category
category
Encumbrance
Moodle Icon HeavyLoad.png
weight
Function
function
Properties
Capacity
max_units
Packaged
Packaged
Days fresh
days_fresh days
Days until rotten
days_rotten days
Nutrition
HungerMoodle Icon Hungry.png
hunger_change
ThirstMoodle Icon Thirsty.png
thirst_change
CaloriesCalories
calories
CarbohydratesCarbohydrates
carbohydrates
ProteinsProteins
proteins
FatFat
lipids
Effect
UnhappinessMoodle Icon Unhappy.png
unhappy_change
BoredomMoodle Icon Bored.png
boredom_change
StressMoodle Icon Stressed.png
stress_change
FatigueMoodle Icon Tired.png
fatigue_change
EnduranceMoodle Icon Endurance.png
endurance_change
ColdMoodle Icon Cold.png
flu_change
PainMoodle Icon Pain.png
pain_change
SickMoodle Icon Sick.png
sick_change
Sterilize powerDisinfection
alcohol_power
Antibiotic powerAntibiotics.png
reduce_infection_power
PoisonPoison
poison_power
Cooking
Time until cooked
cook_minutes minutes
Time until burned
burn_minutes minutes
Dangerous uncooked
Dangerous_uncooked
Bad microwaved
Bad_microwaved
Good hot
Good_hot
Bad cold
Bad_cold
Spice
Spice
Technical
Item ID
item_id
{{Infobox item
|name=
|model=
|model_width=
|icon=
|icon_name=
|icon_link=
<!--GENERAL-->
|category=
|weight=
|function=
|max_units=
|days_fresh=
|days_rotten=
|cant_be_frozen=
|packaged=
<!--NUTRITION-->
|hunger_change=
|thirst_change=
|calories=
|lipids=
|proteins=
|carbohydrates=
<!--EFFECT-->
|unhappy_change=
|boredom_change=
|stress_change=
|fatigue_change=
|endurance_change=
|flu_change=
|pain_change=
|sick_change=
|reduce_infection_power=
|alcohol_power=
|poison_power=
<!--COOKING-->
|cook_minutes=
|burn_minutes=
|dangerous_uncooked=
|bad_microwaved=
|good_hot=
|bad_cold=
|spice=
<!--TECHNICAL DETAILS-->
|item_id=
}}

Weapons

Clothing

Literature