Template:Infobox item: Difference between revisions
m (update tooltip for base_durability) |
m (ll) |
||
(43 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Documentation/sandbox | {{Documentation/sandbox | ||
|doc={{Note|content=Documentation for this template is transcluded from [[{{FULLPAGENAME}}/doc]].}}{{/doc}} | |doc={{Note|content=Documentation for this template is transcluded from [[{{FULLPAGENAME}}/doc]].}}{{/doc}} | ||
}} | }} | ||
{{ll|Category:Infobox}} | |||
</noinclude><includeonly>{{Infobox/sandbox | </noinclude><includeonly>{{Infobox/sandbox | ||
| title = {{{name|{{#getdisplaytitle:{{FULLPAGENAME | | title = {{#if:{{{name|}}}|{{{name}}}|{{#getdisplaytitle:{{FULLPAGENAME}}}}}} | ||
| color = var(--color-red) | | color = var(--color-red) | ||
| <!-- | | <!-- | ||
Line 59: | Line 59: | ||
## GENERAL ## | ## GENERAL ## | ||
-->{{#if:{{{category|{{{weight| | -->{{#if:{{{category|}}}{{{weight|}}}{{{capacity|}}}{{{equipped|}}}{{{body_location|}}}{{{attachment_type|}}}{{{function|}}}{{{secondary_item|}}}{{{weapon|}}}{{{weapons|}}}{{{weapon1|}}}{{{weapon2|}}}{{{weapon3|}}}{{{weapon4|}}}{{{weapon5|}}}{{{part_type|}}}{{{skill_type|}}}{{{ammo_type|}}}{{{clip_size|}}} | ||
| {{Infobox/section | | {{Infobox/section | ||
| General | | {{tt|name=Infobox item|default=General|arg1=general}} | ||
| color = var(--color-red) | | color = var(--color-red) | ||
| id = item-general | | id = item-general | ||
| <!-- | | <!-- | ||
-->{{#if:{{{category|}}} | {{Infobox/sandbox/row | -->{{#if:{{{category|}}} | {{Infobox/sandbox/row | ||
|Category | |{{tt|name=Infobox item|default=Category|arg1=category}} | ||
|{{{category|Item}}} | |{{{category|Item}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{Infobox/sandbox/row | -->{{Infobox/sandbox/row | ||
|Encumbrance[[File:Moodle_Icon_HeavyLoad.png|right|link=Heavy Load{{lcs}}]] | |{{tt|name=Infobox item|default=Encumbrance|arg1=weight}}[[File:Moodle_Icon_HeavyLoad.png|right|link=Heavy Load{{lcs}}]] | ||
|{{#iferror:{{#expr:{{{weight|1}}} | |{{#iferror:{{#expr:{{{weight|1}}}}} <!-- weight=1 - no 'if' as it should always be displayed --> | ||
|{{{weight|1}}} {{#if:{{{weight_text|}}}|{{{weight_text}}}}}<!-- error --> | |||
|{{tooltip<!-- | |||
--> | -->|{{{weight|1}}} {{#if:{{{weight_text|}}} <!-- append text - checks if appended text should be `weight_text` or "(empty)" --> | ||
|{{{weight_text}}} | |||
|{{#if:{{{weight_full|}}} | |||
|({{tt|name=Infobox item|default=empty|arg1=empty}}) | |||
|{{#if:{{{weight_reduction|}}} | |||
|{{ | |{{#if:{{{capacity|}}} | ||
|({{tt|name=Infobox item|default=empty|arg1=empty}}) | |||
}} | |||
}} | }} | ||
}} | |||
}}<!-- text --><!-- | |||
-->|{{#expr:{{{weight|1}}}*0.3 round 2}} {{tt|name=Infobox item|default=when equipped|arg1=weight_equipped}}<!-- tooltip --> | |||
}} | |||
}}{{#if:{{{weight2|}}} <!-- weight 2 --> | |||
|<br>{{#iferror:{{#expr:{{{weight2}}}}} | |||
|{{{weight2}}} {{#if:{{{weight_text2|}}}|{{{weight_text2}}}}}<!-- error --> | |||
|{{tooltip<!-- | |||
-->|{{{weight2}}} {{#if:{{{weight_text2|}}}|{{{weight_text2}}}}}<!-- text --><!-- | |||
-->|{{#expr:{{{weight2}}}*0.3 round 2}} {{tt|name=Infobox item|default=when equipped|arg1=weight_equipped}}}}<!-- tooltip --> | |||
}} | |||
}}{{#if:{{{weight3|}}} <!-- weight 3 --> | |||
|<br>{{#iferror:{{#expr:{{{weight3}}}}} | |||
|{{{weight3}}} {{#if:{{{weight_text3|}}}|{{{weight_text3}}}}}<!-- error --> | |||
|{{tooltip<!-- | |||
-->|{{{weight3}}} {{#if:{{{weight_text3|}}}|{{{weight_text3}}}}} <!-- text --><!-- | |||
-->|{{#expr:{{{weight3}}}*0.3 round 2}} {{tt|name=Infobox item|default=when equipped|arg1=weight_equipped}}}} <!-- tooltip --> | |||
}} | |||
}}{{#if:{{{weight_full|}}} <!-- weight when full --> | |||
|<br>{{#iferror:{{#expr:{{{weight_full}}}}} <!-- expression check --> | |||
|{{{weight_full}}} ({{tt|name=Infobox item|default=full|arg1=full}}) <!--error--> | |||
|{{Tooltip <!--valid--><!-- | |||
-->|{{{weight_full}}} ({{tt|name=Infobox item|default=full|arg1=full}}) <!-- text --><!-- | |||
-->|{{#expr:{{{weight_full}}}*0.3 round 2}} {{tt|name=Infobox item|default=when equipped|arg1=weight_equipped}} <!-- tooltip --> | |||
}} | }} | ||
}} | |||
|{{#if:{{{weight_reduction|}}} <!-- add full weight for a container --> | |||
|<br>{{tooltip|<!-- #initialise tooltip | |||
-->{{Container weight<!-- #text | |||
-->|capacity={{{capacity|1}}}<!-- | |||
-->|weight_reduction={{{weight_reduction}}}<!-- | |||
-->|weight={{{weight|1}}}<!-- | |||
-->}} ({{tt|name=Infobox_item|default=full|arg1=full}})<!-- | |||
-->|{{Container weight<!-- #tooltip | |||
-->|trait=organized<!-- | |||
-->|capacity={{{capacity|1}}}<!-- | |||
-->|weight_reduction={{{weight_reduction}}}<!-- | |||
-->|weight={{{weight|1}}}<!-- | |||
-->}} {{tt|name=Infobox_item|default=with organized trait.|arg1=with_organized}} {{Container weight<!-- | |||
-->|trait=disorganized<!-- | |||
-->|capacity={{{capacity|1}}}<!-- | |||
-->|weight_reduction={{{weight_reduction}}}<!-- | |||
-->|weight={{{weight|1}}}<!-- | |||
-->}} {{tt|name=Infobox_item|default=with disorganized trait.|arg1=with_disorganized}}<!-- | |||
-->}} | |||
}} | |||
}} | }} | ||
}}<!-- | |||
-->{{#if:{{{equipped|{{{body_location| | -->{{#if:{{{equipped|}}}{{{body_location|}}} | {{Infobox/sandbox/row | ||
|Equipped | |{{tt|name=Infobox item|default=Equipped|arg1=equipped}} | ||
|{{{equipped|{{{body_location | |{{{equipped|{{{body_location}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{attachment_type|}}} | {{Infobox/sandbox/row | -->{{#if:{{{attachment_type|}}} | {{Infobox/sandbox/row | ||
|Slot attached | |{{tt|name=Infobox item|default=Slot attached|arg1=slot_attached}} | ||
|{{#switch:{{{attachment_type|}}} <!-- get attachment_type and return correct attachment location --> | |{{#switch:{{{attachment_type|}}} <!-- get attachment_type and return correct attachment location --> | ||
| Saucepan|BigWeapon|BigBlade|Shovel|Racket|Pan|Guitar|GuitarAcoustic|Rifle|Back = {{ | | Saucepan|BigWeapon|BigBlade|Shovel|Racket|Pan|Guitar|GuitarAcoustic|Rifle|Back = {{tt|name=Infobox item|default=Back|arg1=back}} | ||
| Nightstick|MeatCleaver|Hammer|Wrench|Knife|Screwdriver|Walkie|Belt = {{ | | Nightstick|MeatCleaver|Hammer|Wrench|Knife|Screwdriver|Walkie|Belt = {{tt|name=Infobox item|default=Belt|arg1=belt}} | ||
| Holster = {{ | | Holster = {{tt|name=Infobox item|default=Holster|arg1=holster}} | ||
| #default = {{#ifeq:N/A|{{{attachment_type|}}}|{{tooltip|N/A|This item cannot be attached to any slot}}|{{{attachment_type|}}}}} | | #default = {{#ifeq:N/A|{{{attachment_type|}}}|{{tooltip|{{tt|name=Infobox item|default=N/A|arg1=n-a}}|{{tt|name=Infobox item|default=This item cannot be attached to any slot|arg1=n-a_slot_desc}}}}|{{{attachment_type|}}}}} | ||
}} | }} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{function|{{{primary_use| | -->{{#if:{{{function|}}}{{{primary_use|}}} | {{Infobox/sandbox/row | ||
|Function | |{{tt|name=Infobox item|default=Function|arg1=function}} | ||
|{{{function|{{{primary_use|}}}}}}{{#if:{{{secondary_use|}}}|<br>{{{secondary_use}}}}} | |{{{function|{{{primary_use|}}}}}}{{#if:{{{secondary_use|}}}|<br>{{{secondary_use}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{secondary_item|}}} | {{Infobox/sandbox/row | -->{{#if:{{{secondary_item|}}} | {{Infobox/sandbox/row | ||
|Secondary | |{{tt|name=Infobox item|default=Secondary|arg1=secondary}} | ||
|{{{secondary_item|}}} | |{{{secondary_item|}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{attachments_provided|}}} | {{Infobox/sandbox/row | -->{{#if:{{{attachments_provided|}}} | {{Infobox/sandbox/row | ||
|Slots added | |{{tt|name=Infobox item|default=Slots added|arg1=slots_added}} | ||
|{{{attachments_provided|}}} | |{{{attachments_provided|}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{MountOn|{{{weapon|{{{weapons|{{{weapon1| | -->{{#if:{{{MountOn|}}}{{{weapon|}}}{{{weapons|}}}{{{weapon1|}}} | {{Infobox/sandbox/row | ||
|Used in | |{{tt|name=Infobox item|default=Used in|arg1=used_in}} | ||
|{{#if:{{{MountOn|{{{weapon|{{{weapons|}}} | |{{#if:{{{MountOn|}}}{{{weapon|}}}{{{weapons|}}} | ||
|{{{MountOn|{{{weapon|{{{weapons}}}}}}}}} | |||
|{{#if:{{{weapon1|}}} | |||
|[[{{{weapon1}}}]] {{#if:{{{weapon2|}}} | |||
|<br>[[{{{weapon2}}}]] {{#if:{{{weapon3|}}} | |||
|<br>[[{{{weapon3}}}]] {{#if:{{{weapon4|}}} | |||
|<br>[[{{{weapon4}}}]] {{#if:{{{weapon5|}}} | |||
|<br>[[{{{weapon5}}}]] | |||
}}}}}}}}}}}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{part_type|}}} | {{Infobox/sandbox/row | -->{{#if:{{{part_type|}}} | {{Infobox/sandbox/row | ||
|Part type | |{{tt|name=Infobox item|default=Part type|arg1=part_type}} | ||
|{{{part_type|}}} | |{{{part_type|}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{skill_type|}}} | {{Infobox/sandbox/row | -->{{#if:{{{skill_type|}}} | {{Infobox/sandbox/row | ||
|Skill | |{{tt|name=Infobox item|default=Skill|arg1=skill}} | ||
|{{#switch:{{{skill_type|}}} | |{{#switch:{{{skill_type|}}} | ||
| Blunt|Long Blunt = [[ | | Blunt|Long Blunt = [[Long Blunt]] | ||
| SmallBlunt|Short Blunt = [[ | | SmallBlunt|Short Blunt = [[Short Blunt]] | ||
| LongBlade|Long Blade = [[ | | LongBlade|Long Blade = [[Long Blade]] | ||
| SmallBlade|Short Blade = [[ | | SmallBlade|Short Blade = [[Short Blade]] | ||
| Firearm = [[ | | Firearm = [[Firearm]] | ||
| #default = {{#ifeq:N/A|{{{skill_type|}}}|{{tooltip|N/A|This item has no skill associated with it}}|{{{skill_type|}}}}} | | #default = {{#ifeq:N/A|{{{skill_type|}}}|{{tooltip|{{tt|name=Infobox item|default=N/A|arg1=n-a}}|{{tt|name=Infobox item|default=This item has no skill associated with it|arg1=n-a_skill_desc}}}}|{{{skill_type|}}}}} | ||
}} | }} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{ammo_type|{{{ammo| | -->{{#if:{{{ammo_type|}}}{{{ammo|}}} | {{Infobox/sandbox/row | ||
|Ammunition | |{{tt|name=Infobox item|default=Ammunition|arg1=ammunition}} | ||
|{{#if:{{{ammo_type|}}}|{{{ammo_type}}}|{{#if:{{{ammo|}}}| | |{{#if:{{{ammo_type|}}}|{{{ammo_type}}}|{{#if:{{{ammo|}}}|[[{{{ammo}}}]]}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{clip_size|}}} | {{Infobox/sandbox/row | -->{{#if:{{{clip_size|}}} | {{Infobox/sandbox/row | ||
|Magazine size | |{{tt|name=Infobox item|default=Magazine size|arg1=clip_size}} | ||
|{{{clip_size|}}} | |{{{clip_size|}}} | ||
}}}} | }}}} | ||
Line 156: | Line 206: | ||
## PROPERTIES ## | ## PROPERTIES ## | ||
-->{{#if:{{{material|{{{material_value|{{{contents|{{{max_units|{{{capacity|{{{can_boil_water|{{{consumed|{{{writable|{{{recipes|{{{page_number|{{{vol_number|{{{packaged|{{{rain_factor|{{{days_fresh|{{{days_rotten|{{{condition_max|{{{condition_lower_chance|{{{run_speed|{{{combat_speed|{{{attack_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| | -->{{#if:{{{material|}}}{{{material_value|}}}{{{contents|}}}{{{max_units|}}}{{{capacity|}}}{{{can_boil_water|}}}{{{consumed|}}}{{{writable|}}}{{{recipes|}}}{{{skill_trained|}}}{{{page_number|}}}{{{vol_number|}}}{{{packaged|}}}{{{rain_factor|}}}{{{days_fresh|}}}{{{days_rotten|}}}{{{condition_max|}}}{{{condition_lower_chance|}}}{{{run_speed|}}}{{{combat_speed|}}}{{{attack_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|}}} | ||
| {{Infobox/section | | {{Infobox/section | ||
| Properties | | {{tt|name=Infobox item|default=Properties|arg1=properties}} | ||
| color = var(--color-red) | | color = var(--color-red) | ||
| id = item-properties | | id = item-properties | ||
| <!-- | | <!-- | ||
-->{{#if:{{{material|}}} | {{Infobox/sandbox/row | -->{{#if:{{{material|}}} | {{Infobox/sandbox/row | ||
|Material | |{{tt|name=Infobox item|default=Material|arg1=material}} | ||
|{{{material}}} | |{{{material}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{material_value|}}} | {{Infobox/sandbox/row | -->{{#if:{{{material_value|}}} | {{Infobox/sandbox/row | ||
|{{{material|Material}}} quantity | |{{{material|{{tt|name=Infobox item|default=Material|arg1=material}}}}} {{tt|name=Infobox item|default=quantity|arg1=quantity}} | ||
|{{{material_value}}} | |{{{material_value}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{contents|}}} | {{Infobox/sandbox/row | -->{{#if:{{{contents|}}} | {{Infobox/sandbox/row | ||
|Contents | |{{tt|name=Infobox item|default=Contents|arg1=contents}} | ||
|{{{contents}}} | |{{{contents}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{max_units|{{{capacity| | -->{{#if:{{{max_units|}}}{{{capacity|}}} | {{Infobox/sandbox/row | ||
|{{ | |{{tt|name=Infobox item|default=Capacity|arg1=capacity}} | ||
|{{# | |tooltip={{#ifeq:{{{weight_text2|}}}|{{tt|name=Infobox item|default=(box)|arg1=box}}|{{tt|name=Infobox item|default=Number of items when combined into a box.|arg1=box_capacity_desc}}}} | ||
|{{#ifeq:{{{category|}}} | |||
|{{tt|name=Infobox item|default=Ammo|arg1=ammo}} | |||
|{{{capacity|{{{max_units|}}}}}} {{#ifeq:{{{capacity|{{{max_units}}}}}} <!-- category = Ammo --> | |||
|1 | |||
|{{tt|name=Infobox item|default=round|arg1=round}} <!-- is 1 --> | |||
|{{tt|name=Infobox item|default=rounds|arg1=rounds}} <!-- is not 1 --> | |||
}} | |||
|{{#if:{{{max_units|}}} <!-- category != Ammo --> | |||
|{{#iferror: | |||
{{#ifexpr:1 >= {{{max_units}}} <!-- check if input is raw data (decimal) --> | |||
|{{#expr:1/{{{max_units}}} round 1}} | |||
|{{{max_units}}} | |||
}} {{tt|name=Infobox item|default=units|arg1=units}} | |||
|{{{max_units}}} | |||
}} | |||
|{{#ifeq:{{{capacity|}}} | |||
|{{#expr:{{{capacity|}}}}} <!-- check if capacity is a valid expression --> | |||
|{{#ifeq:{{{weight_text2|}}} | |||
|{{tt|name=Infobox item|default=(box)|arg1=box}} | |||
|{{{capacity|}}} | |||
|{{Tooltip|{{{capacity|}}}|<!-- | |||
-->{{Container capacity|organized|{{{capacity|}}}}} {{tt|name=Infobox item|default=with organized trait.|arg1=with_organized}}<!-- | |||
--> {{Container capacity|disorganized|{{{capacity|}}}}} {{tt|name=Infobox item|default=with disorganized trait.|arg1=with_disorganized}}<!-- | |||
-->}} | |||
}} | |||
|{{#iferror:{{{capacity|}}}}} <!-- if capacity is NOT a valid expression --> | |||
}} | }} | ||
}} | |||
}} | }} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{can_boil_water|}}} | {{Infobox/sandbox/row | -->{{#if:{{{can_boil_water|}}} | {{Infobox/sandbox/row | ||
|Can boil water | |{{tt|name=Infobox item|default=Can boil water|arg1=can_boil_water}} | ||
|{{ucfirst:{{lc:{{{can_boil_water}}}}}}} | |{{ucfirst:{{lc:{{{can_boil_water}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{consumed|}}} | {{Infobox/sandbox/row | -->{{#if:{{{consumed|}}} | {{Infobox/sandbox/row | ||
|Consumed | |{{tt|name=Infobox item|default=Consumed|arg1=consumed}} | ||
|{{ucfirst:{{lc:{{{consumed}}}}}}} | |{{ucfirst:{{lc:{{{consumed}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{writable|}}} | {{Infobox/sandbox/row | -->{{#if:{{{writable|}}} | {{Infobox/sandbox/row | ||
|Writable | |{{tt|name=Infobox item|default=Writable|arg1=writable}} | ||
|{{ucfirst:{{lc:{{{writable}}}}}}} | |{{ucfirst:{{lc:{{{writable}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{recipes|}}} | {{Infobox/sandbox/row | -->{{#if:{{{recipes|}}}{{{skill_trained|}}} | {{Infobox/sandbox/row | ||
|Skills learned | |{{tt|name=Infobox item|default=Skills learned|arg1=recipes}} | ||
|{{{recipes}}} | |{{{recipes|{{{skill_trained}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{page_number|}}} | {{Infobox/sandbox/row | -->{{#if:{{{page_number|}}} | {{Infobox/sandbox/row | ||
|Total pages | |{{tt|name=Infobox item|default=Total pages|arg1=total_pages}} | ||
|{{{page_number}}} {{#ifeq:1|{{{page_number}}}|page|pages}} | |{{{page_number}}} {{#ifeq:1|{{{page_number}}}|{{tt|name=Infobox item|default=page|arg1=page}}|{{tt|name=Infobox item|default=pages|arg1=pages}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{vol_number|}}} | {{Infobox/sandbox/row | -->{{#if:{{{vol_number|}}} | {{Infobox/sandbox/row | ||
|Total volumes | |{{tt|name=Infobox item|default=Total volumes|arg1=total_volumes}} | ||
|{{#ifeq:1|{{{vol_number}}}|volume|volumes}} | |{{#ifeq:1|{{{vol_number}}}|{{tt|name=Infobox item|default=volume|arg1=volume}}|{{tt|name=Infobox item|default=volumes|arg1=volumes}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{packaged|}}} | {{Infobox/sandbox/row | -->{{#if:{{{packaged|}}} | {{Infobox/sandbox/row | ||
|Packaged | |{{tt|name=Infobox item|default=Packaged|arg1=packaged}} | ||
|{{tooltip|{{ucfirst:{{lc:{{{packaged}}}}}}}|Nutritional information always known}} | |{{tooltip|{{ucfirst:{{lc:{{{packaged}}}}}}}|{{tt|name=Infobox item|default=Nutritional information always known|arg1=packaged_desc}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{rain_factor|}}} | {{Infobox/sandbox/row | -->{{#if:{{{rain_factor|}}} | {{Infobox/sandbox/row | ||
|Rain factor | |{{tt|name=Infobox item|default=Rain factor|arg1=rain_factor}} | ||
|{{{rain_factor}}} | |{{{rain_factor}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{days_fresh|}}} | {{Infobox/sandbox/row | -->{{#if:{{{days_fresh|}}} | {{Infobox/sandbox/row | ||
|Days fresh | |{{tt|name=Infobox item|default=Days fresh|arg1=days_fresh}} | ||
|{{{days_fresh}}} days | |{{#iferror:{{#expr:{{{days_fresh}}}}} | ||
|{{{days_fresh}}} {{tt|name=Infobox item|default=days|arg1=days}} <!-- error --> | |||
|{{Tooltip|{{{days_fresh}}} {{tt|name=Infobox item|default=days|arg1=days}}|{{#expr:{{{days_fresh}}}*5}} days when chilled <!-- | |||
-->{{yesno|{{{cant_be_frozen|}}} <!-- check if it can be frozen --> | |||
|yes=(can't be frozen) <!-- cannot be frozen --> | |||
|no=and {{#expr:{{{days_fresh}}}*50}} days when frozen <!-- can be frozen --> | |||
}}. | |||
}} | |||
}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{days_rotten|}}} | {{Infobox/sandbox/row | -->{{#if:{{{days_rotten|}}} | {{Infobox/sandbox/row | ||
|Days until rotten | |{{tt|name=Infobox item|default=Days until rotten|arg1=days_rotten}} | ||
|{{{days_rotten}}} days | |{{#iferror:{{#expr:{{{days_rotten}}}}} | ||
|{{{days_rotten}}} {{tt|name=Infobox item|default=days|arg1=days}} <!-- error --> | |||
|{{Tooltip|{{{days_rotten}}} {{tt|name=Infobox item|default=days|arg1=days}}|{{#expr:{{{days_rotten}}}*5}} days when chilled <!-- | |||
-->{{yesno|{{{cant_be_frozen|}}} <!-- check if it can be frozen --> | |||
|yes=(can't be frozen) <!-- cannot be frozen --> | |||
|no=and {{#expr:{{{days_rotten}}}*50}} days when frozen <!-- can be frozen --> | |||
}}. | |||
}} | |||
}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{condition_max|}}} | {{Infobox/sandbox/row | -->{{#if:{{{condition_max|}}} | {{Infobox/sandbox/row | ||
|Max condition | |{{tt|name=Infobox item|default=Max condition|arg1=condition_max}} | ||
|{{{condition_max}}} | |{{{condition_max}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{condition_lower_chance|}}} | {{Infobox/sandbox/row | -->{{#if:{{{condition_lower_chance|}}}{{{base_durability|}}} | {{Infobox/sandbox/row | ||
|Base durability | |{{tt|name=Infobox item|default=Base durability|arg1=base_durability}} | ||
|tooltip=Average number of hits before breaking at level 0 | |tooltip={{tt|name=Infobox item|default=Average number of hits before breaking at level 0.|arg1=base_durability_desc}} | ||
|{{#expr:{{{condition_lower_chance}}}*{{{condition_max|1}}}}} | |{{#if:{{{base_durability|}}} | ||
|{{{base_durability}}} | |||
|{{#iferror:{{#expr:{{{condition_lower_chance}}}}} | |||
|{{Error|expr|{{{condition_lower_chance}}}}}<!--error--> | |||
|{{#expr:{{{condition_lower_chance}}}*{{{condition_max|1}}}}} | |||
}} | |||
}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{run_speed|}}} | {{Infobox/sandbox/row | -->{{#if:{{{run_speed|}}} | {{Infobox/sandbox/row | ||
|Run speed | |{{tt|name=Infobox item|default=Run speed|arg1=run_speed}} | ||
|{{tooltip|{{#iferror: {{#expr:{{{run_speed}}} * 100 round 0}} | {{{run_speed}}} (disabled)| {{#expr:{{{run_speed}}} * 100 round 0}}% (disabled)}}|Currently has no effect in-game}} | |{{tooltip|{{#iferror: {{#expr:{{{run_speed}}} * 100 round 0}} | {{{run_speed}}} (disabled)| {{#expr:{{{run_speed}}} * 100 round 0}}% (disabled)}}|Currently has no effect in-game}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{combat_speed|{{{attack_speed| | -->{{#if:{{{combat_speed|}}}{{{attack_speed|}}} | {{Infobox/sandbox/row | ||
|Combat speed | |{{tt|name=Infobox item|default=Combat speed|arg1=combat_speed}} | ||
|{{{combat_speed|{{{ | |{{#if:{{{combat_speed|}}} | ||
|{{#iferror:{{#ifexpr:1 >= {{{combat_speed}}} | |||
|{{#expr:{{{combat_speed}}} * 100 round 0}}% <!-- 1 or less --> | |||
|{{{combat_speed}}} <!-- greater than 1 --> | |||
}} | |||
|{{{combat_speed}}} <!-- error --> | |||
}} | |||
|{{{attack_speed}}} | |||
}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{scratch_defense|}}} | {{Infobox/sandbox/row | -->{{#if:{{{scratch_defense|}}} | {{Infobox/sandbox/row | ||
|Scratch defence | |{{tt|name=Infobox item|default=Scratch defence|arg1=scratch_defense}} | ||
|{{{scratch_defense}}} | |{{{scratch_defense}}}{{#iferror:{{#expr:{{{scratch_defense}}}}}||%<!-- add percentage sign if it hasn't already been added -->}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{bite_defense|}}} | {{Infobox/sandbox/row | -->{{#if:{{{bite_defense|}}} | {{Infobox/sandbox/row | ||
|Bite defence | |{{tt|name=Infobox item|default=Bite defence|arg1=bite_defense}} | ||
|{{{bite_defense}}} | |{{{bite_defense}}}{{#iferror:{{#expr:{{{bite_defense}}}}}||%<!-- add percentage sign if it hasn't already been added -->}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{bullet_defense|}}} | {{Infobox/sandbox/row | -->{{#if:{{{bullet_defense|}}} | {{Infobox/sandbox/row | ||
|Bullet defence | |{{tt|name=Infobox item|default=Bullet defence|arg1=bullet_defense}} | ||
|{{{bullet_defense}}} | |{{{bullet_defense}}}{{#iferror:{{#expr:{{{bullet_defense}}}}}||%<!-- add percentage sign if it hasn't already been added -->}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{neck_protection|}}} | {{Infobox/sandbox/row | -->{{#if:{{{neck_protection|}}} | {{Infobox/sandbox/row | ||
|Neck protection | |{{tt|name=Infobox item|default=Neck protection|arg1=neck_protection}} | ||
|{{{neck_protection}}} | |{{#iferror:{{#ifexpr:1 >= {{{neck_protection}}} | ||
|{{#expr:{{{neck_protection}}} * 100 round 0}}% <!-- 1 or less --> | |||
|{{{neck_protection}}} <!-- greater than 1 --> | |||
}} | |||
|{{{neck_protection}}} <!-- error --> | |||
}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{insulation|}}} | {{Infobox/sandbox/row | -->{{#if:{{{insulation|}}} | {{Infobox/sandbox/row | ||
|Insulation | |{{tt|name=Infobox item|default=Insulation|arg1=insulation}} | ||
|{{{insulation}}} | |{{#iferror:{{#ifexpr:1 >= {{{insulation}}} | ||
|{{#expr:{{{insulation}}} * 100 round 0}}% <!-- 1 or less --> | |||
|{{{insulation}}} <!-- greater than 1 --> | |||
}} | |||
|{{{insulation}}} <!-- error --> | |||
}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{wind_resistance|}}} | {{Infobox/sandbox/row | -->{{#if:{{{wind_resistance|}}} | {{Infobox/sandbox/row | ||
|Wind resistance | |{{tt|name=Infobox item|default=Wind resistance|arg1=wind_resistance}} | ||
|{{{wind_resistance}}} | |{{#iferror:{{#ifexpr:1 >= {{{wind_resistance}}} | ||
|{{#expr:{{{wind_resistance}}} * 100 round 0}}% <!-- 1 or less --> | |||
|{{{wind_resistance}}} <!-- greater than 1 --> | |||
}} | |||
|{{{wind_resistance}}} <!-- error --> | |||
}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{water_resistance|}}} | {{Infobox/sandbox/row | -->{{#if:{{{water_resistance|}}} | {{Infobox/sandbox/row | ||
|Water resistance | |{{tt|name=Infobox item|default=Water resistance|arg1=water_resistance}} | ||
|{{{water_resistance}}} | |{{#iferror:{{#ifexpr:1 >= {{{water_resistance}}} | ||
|{{#expr:{{{water_resistance}}} * 100 round 0}}% <!-- 1 or less --> | |||
|{{{water_resistance}}} <!-- greater than 1 --> | |||
}} | |||
|{{{water_resistance}}} <!-- error --> | |||
}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{light_distance|}}} | {{Infobox/sandbox/row | -->{{#if:{{{light_distance|}}} | {{Infobox/sandbox/row | ||
|Light distance | |{{tt|name=Infobox item|default=Light distance|arg1=light_distance}} | ||
|{{{light_distance}}} | |{{{light_distance}}} {{#ifeq:1|{{{light_distance}}}|{{tt|name=Infobox item|default=tile|arg1=tile}}|{{tt|name=Infobox item|default=tiles|arg1=tiles}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{light_strength|}}} | {{Infobox/sandbox/row | -->{{#if:{{{light_strength|}}} | {{Infobox/sandbox/row | ||
|Light strength | |{{tt|name=Infobox item|default=Light strength|arg1=light_strength}} | ||
|{{{light_strength}}} | |{{{light_strength}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{torch_cone|}}} | {{Infobox/sandbox/row | -->{{#if:{{{torch_cone|}}} | {{Infobox/sandbox/row | ||
|Torch cone | |{{tt|name=Infobox item|default=Torch cone|arg1=torch_cone}} | ||
|{{ucfirst:{{lc:{{{torch_cone}}}}}}} | |{{ucfirst:{{lc:{{{torch_cone}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{wet_cooldown|}}} | {{Infobox/sandbox/row | -->{{#if:{{{wet_cooldown|}}} | {{Infobox/sandbox/row | ||
|Wet cooldown | |{{tt|name=Infobox item|default=Wet cooldown|arg1=wet_cooldown}} | ||
|{{#iferror:{{#expr:{{{wet_cooldown}}}*0.0208}} |{{{wet_cooldown}}}|{{#expr:{{{wet_cooldown}}}*0.0208}} {{#ifeq:1|{{{wet_cooldown}}}|second|seconds}} }} <!-- wet_cooldown*0.0208 (number of seconds to dry 1 wet_cooldown unit), if not maths expr, return wet_cooldown. --> | |{{#iferror:{{#expr:{{{wet_cooldown}}}*0.0208}} |{{{wet_cooldown}}}|{{#expr:{{{wet_cooldown}}}*0.0208}} {{#ifeq:1|{{{wet_cooldown}}}|{{tt|name=Infobox item|default=second|arg1=second}}|{{tt|name=Infobox item|default=seconds|arg1=seconds}}}} }} <!-- wet_cooldown*0.0208 (number of seconds to dry 1 wet_cooldown unit), if not maths expr, return wet_cooldown. --> | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{sensor_range|{{{remote_range| | -->{{#if:{{{sensor_range|}}}{{{remote_range|}}} | {{Infobox/sandbox/row | ||
| | |{{tt|name=Infobox item|default=Sensor range|arg1=sensor_range}} | ||
|{{{sensor_range|{{{remote_range}}}}}} {{#ifeq:1|{{{sensor_range|{{{remote_range}}}}}}|tile|tiles}} | |{{{sensor_range|{{{remote_range}}}}}} {{#ifeq:1|{{{sensor_range|{{{remote_range}}}}}}|{{tt|name=Infobox item|default=tile|arg1=tile}}|{{tt|name=Infobox item|default=tiles|arg1=tiles}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{energy_source|}}} | {{Infobox/sandbox/row | -->{{#if:{{{energy_source|}}} | {{Infobox/sandbox/row | ||
|Energy source | |{{tt|name=Infobox item|default=Energy source|arg1=energy_source}} | ||
|{{{energy_source}}} | |{{{energy_source}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{portable|}}} | {{Infobox/sandbox/row | -->{{#if:{{{portable|}}} | {{Infobox/sandbox/row | ||
|Portable | |{{tt|name=Infobox item|default=Portable|arg1=portable}} | ||
|{{ucfirst:{{lc:{{{portable}}}}}}} | |{{ucfirst:{{lc:{{{portable}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{two_way|}}} | {{Infobox/sandbox/row | -->{{#if:{{{two_way|}}} | {{Infobox/sandbox/row | ||
|Two-way | |{{tt|name=Infobox item|default=Two-way|arg1=two_way}} | ||
|{{ucfirst:{{lc:{{{two_way}}}}}}} | |{{ucfirst:{{lc:{{{two_way}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{mic_range|}}} | {{Infobox/sandbox/row | -->{{#if:{{{mic_range|}}} | {{Infobox/sandbox/row | ||
|Mic range | |{{tt|name=Infobox item|default=Mic range|arg1=mic_range}} | ||
|{{{mic_range}}} | |{{{mic_range}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{transmit_range|}}} | {{Infobox/sandbox/row | -->{{#if:{{{transmit_range|}}} | {{Infobox/sandbox/row | ||
|Transmit range | |{{tt|name=Infobox item|default=Transmit range|arg1=transmit_range}} | ||
|{{{transmit_range}}} | |{{{transmit_range}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{min_channel|}}} | {{Infobox/sandbox/row | -->{{#if:{{{min_channel|}}} | {{Infobox/sandbox/row | ||
|Frequency range | |{{tt|name=Infobox item|default=Frequency range|arg1=frequency_range}} | ||
|{{{min_channel}}}–{{{max_channel}}} | |{{{min_channel}}}–{{{max_channel}}} | ||
}}}}<!-- | }}}}<!-- | ||
Line 368: | Line 477: | ||
## PERFORMANCE ## | ## PERFORMANCE ## | ||
-->{{#if:{{{damage_type|{{{min_damage|{{{max_damage|{{{DamageModifier|{{{damage_mod|{{{door_damage|{{{tree_damage|{{{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|{{{atack_speed|{{{push_back|{{{knockdown|{{{aiming_time|{{{aiming_time_mod|{{{aiming_mod|{{{reload_time|{{{reload_time_mod|{{{reload_mod|{{{crit_chance|{{{angle_mod|{{{spread_mod|{{{kill_move|{{{weight_mod|{{{effect_power|{{{effect_range|{{{effect_duration|{{{effect_timer| | -->{{#if:{{{damage_type|}}}{{{min_damage|}}}{{{max_damage|}}}{{{DamageModifier|}}}{{{damage_mod|}}}{{{door_damage|}}}{{{tree_damage|}}}{{{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|}}}{{{atack_speed|}}}{{{push_back|}}}{{{knockdown|}}}{{{aiming_time|}}}{{{aiming_time_mod|}}}{{{aiming_mod|}}}{{{reload_time|}}}{{{reload_time_mod|}}}{{{reload_mod|}}}{{{crit_chance|}}}{{{angle_mod|}}}{{{spread_mod|}}}{{{kill_move|}}}{{{weight_mod|}}}{{{effect_power|}}}{{{effect_range|}}}{{{effect_duration|}}}{{{effect_timer|}}} | ||
| {{Infobox/section | | {{Infobox/section | ||
| Performance | | {{tt|name=Infobox item|default=Performance|arg1=performance}} | ||
| color = var(--color-red) | | color = var(--color-red) | ||
| id = item-performance | | id = item-performance | ||
| <!-- | | <!-- | ||
-->{{#if:{{{damage_type|}}} | {{Infobox/sandbox/row | -->{{#if:{{{damage_type|}}} | {{Infobox/sandbox/row | ||
|Damage type | |{{tt|name=Infobox item|default=Damage type|arg1=damage_type}} | ||
|{{#ifeq:Slash|{{ucfirst:{{lc:{{{damage_type}}}}}}}|{{tooltip|{{ucfirst:{{lc:{{{damage_type}}}}}}}|Creates holes in clothing}}|{{ucfirst:{{lc:{{{damage_type}}}}}}}}} | |{{#ifeq:Slash|{{ucfirst:{{lc:{{{damage_type}}}}}}}|{{tooltip|{{ucfirst:{{lc:{{{damage_type}}}}}}}|Creates holes in clothing}}|{{ucfirst:{{lc:{{{damage_type}}}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{min_damage|{{{max_damage|{{{DamageModifier|{{{damage_mod| | -->{{#if:{{{min_damage|}}}{{{max_damage|}}}{{{DamageModifier|}}}{{{damage_mod|}}} | {{Infobox/sandbox/row | ||
|Damage | |{{tt|name=Infobox item|default=Damage|arg1=damage}} | ||
|{{#if:{{{DamageModifier|{{{damage_mod| | |{{#if:{{{DamageModifier|}}}{{{damage_mod|}}}|{{{DamageModifier|{{{damage_mod|}}}}}}|{{{min_damage|0}}}–{{{max_damage|1}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{door_damage|}}} | {{Infobox/sandbox/row | -->{{#if:{{{door_damage|}}} | {{Infobox/sandbox/row | ||
|Door damage | |{{tt|name=Infobox item|default=Door damage|arg1=door_damage}} | ||
|{{{door_damage}}} | |{{{door_damage}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{tree_damage|}}} | {{Infobox/sandbox/row | -->{{#if:{{{tree_damage|}}} | {{Infobox/sandbox/row | ||
|Tree damage | |{{tt|name=Infobox item|default=Tree damage|arg1=tree_damage}} | ||
|{{{tree_damage}}} | |{{{tree_damage}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{min_range|{{{max_range|}}}}}} | {{Infobox/sandbox/row | -->{{#if:{{{min_range|{{{max_range|}}}}}} | {{Infobox/sandbox/row | ||
|Range | |{{tt|name=Infobox item|default=Range|arg1=range}} | ||
|{{#if:{{{min_range|}}}|{{{min_range|}}}–{{{max_range|}}}|{{#if:{{{max_range|}}}|0–{{{max_range|}}} }} }} <!-- if min_range != null, return range, elseif min_range = null && max_range != null, min_range = 0, else return null --> | |{{#if:{{{min_range|}}}|{{{min_range|}}}–{{{max_range|}}}|{{#if:{{{max_range|}}}|0–{{{max_range|}}} }} }} <!-- if min_range != null, return range, elseif min_range = null && max_range != null, min_range = 0, else return null --> | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{min_range_mod|}}} | {{Infobox/sandbox/row | -->{{#if:{{{min_range_mod|}}} | {{Infobox/sandbox/row | ||
|Min range <!-- this is for range modifier from weapon mods --> | |{{tt|name=Infobox item|default=Min range|arg1=min_range}} <!-- this is for range modifier from weapon mods --> | ||
|{{{min_range_mod}}} | |{{{min_range_mod}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{max_range_mod|}}} | {{Infobox/sandbox/row | -->{{#if:{{{max_range_mod|}}} | {{Infobox/sandbox/row | ||
|Max range <!-- this is for range modifier from weapon mods --> | |{{tt|name=Infobox item|default=Max range|arg1=max_range}} <!-- this is for range modifier from weapon mods --> | ||
|{{{max_range_mod}}} | |{{{max_range_mod}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{hit_chance|{{{hit_chance_mod|{{{accuracy_mod| | -->{{#if:{{{hit_chance|}}}{{{hit_chance_mod|}}}{{{accuracy_mod|}}} | {{Infobox/sandbox/row | ||
|Accuracy | |{{tt|name=Infobox item|default=Accuracy|arg1=accuracy}} | ||
|{{{hit_chance|{{{hit_chance_mod|{{{accuracy_mod|}}}}}}}}} | |{{{hit_chance|{{{hit_chance_mod|{{{accuracy_mod|}}}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{recoil_delay|{{{recoil_mod|{{{recoil_delay_mod| | -->{{#if:{{{recoil_delay|}}}{{{recoil_mod|}}}{{{recoil_delay_mod|}}} | {{Infobox/sandbox/row | ||
|Recoil | |{{tt|name=Infobox item|default=Recoil|arg1=recoil}} | ||
|{{{recoil_delay|{{{recoil_mod|{{{recoil_delay_mod|}}}}}}}}} | |{{{recoil_delay|{{{recoil_mod|{{{recoil_delay_mod|}}}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{sound_radius|}}} | {{Infobox/sandbox/row | -->{{#if:{{{sound_radius|}}} | {{Infobox/sandbox/row | ||
|Noise radius | |{{tt|name=Infobox item|default=Noise radius|arg1=noise_radius}} | ||
|{{{sound_radius|}}} | |{{{sound_radius|}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{base_speed|{{{atack_speed| | -->{{#if:{{{base_speed|}}}{{{atack_speed|}}} | {{Infobox/sandbox/row | ||
|Attack speed | |{{tt|name=Infobox item|default=Attack speed|arg1=attack_speed}} | ||
|{{#ifeq:N/A|{{{base_speed|{{{atack_speed|}}}}}}|{{tooltip|N/A|Attacks are near instant, and not influenced by a speed stat}}|{{{base_speed|{{{atack_speed|}}}}}}}} | |{{#ifeq:N/A|{{{base_speed|{{{atack_speed|}}}}}}|{{tooltip|N/A|Attacks are near instant, and not influenced by a speed stat}}|{{{base_speed|{{{atack_speed|}}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{push_back|}}} | {{Infobox/sandbox/row | -->{{#if:{{{push_back|}}} | {{Infobox/sandbox/row | ||
|Knockback | |{{tt|name=Infobox item|default=Knockback|arg1=knockback}} | ||
|{{{push_back}}} | |{{{push_back}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{knockdown|}}} | {{Infobox/sandbox/row | -->{{#if:{{{knockdown|}}} | {{Infobox/sandbox/row | ||
|Knockdown | |{{tt|name=Infobox item|default=Knockdown|arg1=knockdown}} | ||
|{{{knockdown}}} | |{{{knockdown}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{aiming_time|{{{aiming_time_mod|{{{aiming_mod| | -->{{#if:{{{aiming_time|}}}{{{aiming_time_mod|}}}{{{aiming_mod|}}} | {{Infobox/sandbox/row | ||
|Aiming time | |{{tt|name=Infobox item|default=Aiming time|arg1=aiming_time}} | ||
|{{{aiming_time|{{{aiming_time_mod|{{{aiming_mod|}}}}}}}}} | |{{{aiming_time|{{{aiming_time_mod|{{{aiming_mod|}}}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{reload_time|{{{reload_time_mod|{{{reload_mod| | -->{{#if:{{{reload_time|}}}{{{reload_time_mod|}}}{{{reload_mod|}}} | {{Infobox/sandbox/row | ||
|Reload time | |{{tt|name=Infobox item|default=Reload time|arg1=reload_time}} | ||
|{{{reload_time|{{{reload_time_mod|{{{reload_mod|}}}}}}}}} | |{{{reload_time|{{{reload_time_mod|{{{reload_mod|}}}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{crit_chance|}}} | {{Infobox/sandbox/row | -->{{#if:{{{crit_chance|}}} | {{Infobox/sandbox/row | ||
|Crit chance | |{{tt|name=Infobox item|default=Crit chance|arg1=crit_chance}} | ||
|{{#if:{{{crit_multiplier|}}}|{{tooltip|{{{crit_chance}}}%|Damage multiplied by {{{crit_multiplier}}}}}|{{{crit_chance}}}%}} | |{{#if:{{{crit_multiplier|}}}|{{tooltip|{{{crit_chance}}}%|{{tt|name=Infobox item|default=Damage multiplied by {{{crit_multiplier}}}|arg1=crit_chance_desc|arg2={{{crit_multiplier}}}}}}}|{{{crit_chance}}}%}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{angle_mod|{{{spread_mod| | -->{{#if:{{{angle_mod|}}}{{{spread_mod|}}} | {{Infobox/sandbox/row | ||
|Spread | |{{tt|name=Infobox item|default=Spread|arg1=spread}} | ||
|{{{angle_mod|{{{spread_mod|}}}}}} | |{{{angle_mod|{{{spread_mod|}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{kill_move|}}} | {{Infobox/sandbox/row | -->{{#if:{{{kill_move|}}} | {{Infobox/sandbox/row | ||
|Special ability | |{{tt|name=Infobox item|default=Special ability|arg1=special_ability}} | ||
|{{{kill_move}}} | |{{{kill_move}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{weight_mod|}}} | {{Infobox/sandbox/row | -->{{#if:{{{weight_mod|}}} | {{Infobox/sandbox/row | ||
|Encumbrance mod. | |{{tt|name=Infobox item|default=Encumbrance mod.|arg1=encumbrance_mod}} | ||
|{{{weight_mod}}} | |{{{weight_mod}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{effect_power|}}} | {{Infobox/sandbox/row | -->{{#if:{{{effect_power|}}} | {{Infobox/sandbox/row | ||
|{{{effect_type|Effect}}} power | |{{tt|name=Infobox item|default={{{effect_type|Effect}}} power|arg1=effect_power|arg2={{{effect_type|Effect}}}}} | ||
|{{{effect_power}}} | |{{{effect_power}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{effect_range|}}} | {{Infobox/sandbox/row | -->{{#if:{{{effect_range|}}} | {{Infobox/sandbox/row | ||
|{{{effect_type|Effect}}} range | |{{tt|name=Infobox item|default={{{effect_type|Effect}}} range|arg1=effect_range|arg2={{{effect_type|Effect}}}}} | ||
|{{{effect_range}}} tiles | |{{{effect_range}}} {{#ifeq:1|{{{effect_range}}}|{{tt|name=Infobox item|default=tile|arg1=tile}}|{{tt|name=Infobox item|default=tiles|arg1=tiles}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{effect_duration|}}} | {{Infobox/sandbox/row | -->{{#if:{{{effect_duration|}}} | {{Infobox/sandbox/row | ||
|{{{effect_type|Effect}}} duration | |{{tt|name=Infobox item|default={{{effect_type|Effect}}} duration|arg1=effect_duration|arg2={{{effect_type|Effect}}}}} | ||
|{{{effect_duration}}} minutes | |{{{effect_duration}}} {{tt|name=Infobox item|default=minutes|arg1=minutes}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{effect_timer|}}} | {{Infobox/sandbox/row | -->{{#if:{{{effect_timer|}}} | {{Infobox/sandbox/row | ||
|{{{effect_type|Effect}}} timer | |{{tt|name=Infobox item|default={{{effect_type|Effect}}} timer|arg1=effect_timer|arg2={{{effect_type|Effect}}}}} | ||
|{{{effect_timer}}} | |{{{effect_timer}}} | ||
}}}}<!-- | }}}}<!-- | ||
Line 494: | Line 603: | ||
## NUTRITION ## | ## NUTRITION ## | ||
-->{{#if:{{{hunger_change|{{{thirst_change|{{{calories|{{{carbohydrates|{{{proteins|{{{lipids| | -->{{#if:{{{hunger_change|}}}{{{thirst_change|}}}{{{calories|}}}{{{carbohydrates|}}}{{{proteins|}}}{{{lipids|}}} | ||
| {{Infobox/section | | {{Infobox/section | ||
| Nutrition | | {{tt|name=Infobox item|default=Nutrition|arg1=nutrition}} | ||
| color = var(--color-red) | | color = var(--color-red) | ||
| id = item-nutrition | | id = item-nutrition | ||
| <!-- | | <!-- | ||
-->{{#if:{{{hunger_change|}}} | {{Infobox/sandbox/row | -->{{#if:{{{hunger_change|}}} | {{Infobox/sandbox/row | ||
|Hunger[[File:Moodle_Icon_Hungry.png|link=Hunger]] | |{{tt|name=Infobox item|default=Hunger|arg1=hunger}}[[File:Moodle_Icon_Hungry.png|link=Hunger{{lcs}}]] | ||
|{{{hunger_change}}} | |{{{hunger_change}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{thirst_change|}}} | {{Infobox/sandbox/row | -->{{#if:{{{thirst_change|}}} | {{Infobox/sandbox/row | ||
|Thirst[[File:Moodle_Icon_Thirsty.png|link=Thirst]] | |{{tt|name=Infobox item|default=Thirst|arg1=thirst}}[[File:Moodle_Icon_Thirsty.png|link=Thirst{{lcs}}]] | ||
|{{{thirst_change}}} | |{{{thirst_change}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{calories|}}} | {{Infobox/sandbox/row | -->{{#if:{{{calories|}}} | {{Infobox/sandbox/row | ||
|Calories[[File:UI_Calories.png|link=Nutrition#Calories|Calories]] | |{{tt|name=Infobox item|default=Calories|arg1=calories}}[[File:UI_Calories.png|link=Nutrition{{lcs}}#{{tt|name=Infobox item|default=Calories|arg1=calories}}|{{tt|name=Infobox item|default=Calories|arg1=calories}}]] | ||
|{{{calories}}} | |{{{calories}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{carbohydrates|}}} | {{Infobox/sandbox/row | -->{{#if:{{{carbohydrates|}}} | {{Infobox/sandbox/row | ||
|Carbohydrates[[File:UI_Carbohydrates.png|link=Nutrition#Carbohydrates|Carbohydrates]] | |{{tt|name=Infobox item|default=Carbohydrates|arg1=carbohydrates}}[[File:UI_Carbohydrates.png|link=Nutrition{{lcs}}#{{tt|name=Infobox item|default=Carbohydrates|arg1=carbohydrates}}|{{tt|name=Infobox item|default=Carbohydrates|arg1=carbohydrates}}]] | ||
|{{{carbohydrates}}} | |{{{carbohydrates}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{proteins|}}} | {{Infobox/sandbox/row | -->{{#if:{{{proteins|}}} | {{Infobox/sandbox/row | ||
|Proteins[[File:UI_Protein.png|link=Nutrition#Proteins|Proteins]] | |{{tt|name=Infobox item|default=Proteins|arg1=proteins}}[[File:UI_Protein.png|link=Nutrition{{lcs}}#{{tt|name=Infobox item|default=Proteins|arg1=proteins}}|{{tt|name=Infobox item|default=Proteins|arg1=proteins}}]] | ||
|{{{proteins}}} | |{{{proteins}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{lipids|{{{fats| | -->{{#if:{{{lipids|}}}{{{fats|}}} | {{Infobox/sandbox/row | ||
|Fat[[File:UI_Fats.png|link=Nutrition# | |{{tt|name=Infobox item|default=Fat|arg1=fat}}[[File:UI_Fats.png|link=Nutrition{{lcs}}#{{tt|name=Infobox item|default=Fat|arg1=fat}}|{{tt|name=Infobox item|default=Fat|arg1=fat}}]] | ||
|{{{lipids|{{{fats}}}}}} | |{{{lipids|{{{fats}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
Line 535: | Line 644: | ||
## EFFECT ## | ## EFFECT ## | ||
-->{{#if:{{{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|{{{poison_power| | -->{{#if:{{{unhappy_change|}}}{{{boredom_change|}}}{{{stress_change|}}}{{{panic_change|}}}{{{fatigue_change|}}}{{{endurance_change|}}}{{{flu_change|}}}{{{pain_change|}}}{{{sick_change|}}}{{{alcoholic|}}}{{{alcohol|}}}{{{alcohol_power|}}}{{{reduce_infection_power|}}}{{{bandage_power|}}}{{{wet_cooldown|}}}{{{poison_power|}}} | ||
| {{Infobox/section | | {{Infobox/section | ||
| Effect | | {{tt|name=Infobox item|default=Effect|arg1=effect}} | ||
| color = var(--color-red) | | color = var(--color-red) | ||
| id = item-effect | | id = item-effect | ||
| <!-- | | <!-- | ||
-->{{#if:{{{unhappy_change|}}} | {{Infobox/sandbox/row | -->{{#if:{{{unhappy_change|}}} | {{Infobox/sandbox/row | ||
|Unhappiness[[File:Moodle_Icon_Unhappy.png|link=Unhappiness]] | |{{tt|name=Infobox item|default=Unhappiness|arg1=unhappiness}}[[File:Moodle_Icon_Unhappy.png|link=Unhappiness{{lcs}}]] | ||
|{{{unhappy_change}}} | |{{{unhappy_change}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{boredom_change|}}} | {{Infobox/sandbox/row | -->{{#if:{{{boredom_change|}}} | {{Infobox/sandbox/row | ||
|Boredom[[File:Moodle_Icon_Bored.png|link=Boredom]] | |{{tt|name=Infobox item|default=Boredom|arg1=boredom}}[[File:Moodle_Icon_Bored.png|link=Boredom{{lcs}}]] | ||
|{{{boredom_change}}} | |{{{boredom_change}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{stress_change|}}} | {{Infobox/sandbox/row | -->{{#if:{{{stress_change|}}} | {{Infobox/sandbox/row | ||
|Stress[[File:Moodle_Icon_Stressed.png|link=Stress]] | |{{tt|name=Infobox item|default=Stress|arg1=stress}}[[File:Moodle_Icon_Stressed.png|link=Stress{{lcs}}]] | ||
|{{{stress_change}}} | |{{{stress_change}}} | ||
}}}}<!-- | |||
-->{{#if:{{{panic_change|}}} | {{Infobox/sandbox/row | |||
|{{tt|name=Infobox item|default=Panic|arg1=panic}}[[File:Moodle_Icon_Panic.png|link=Panic{{lcs}}]] | |||
|{{{panic_change}}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{fatigue_change|}}} | {{Infobox/sandbox/row | -->{{#if:{{{fatigue_change|}}} | {{Infobox/sandbox/row | ||
| | |{{tt|name=Infobox item|default=Fatigue|arg1=fatigue}}[[File:Moodle_Icon_Tired.png|link=Fatigue{{lcs}}]] | ||
|{{{fatigue_change}}} | |{{{fatigue_change}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{endurance_change|}}} | {{Infobox/sandbox/row | -->{{#if:{{{endurance_change|}}} | {{Infobox/sandbox/row | ||
|Endurance[[File:Moodle_Icon_Endurance.png|link=Endurance]] | |{{tt|name=Infobox item|default=Endurance|arg1=enburance}}[[File:Moodle_Icon_Endurance.png|link=Endurance{{lcs}}]] | ||
|{{{endurance_change}}} | |{{{endurance_change}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{flu_change|}}} | {{Infobox/sandbox/row | -->{{#if:{{{flu_change|}}} | {{Infobox/sandbox/row | ||
|Cold[[File:Moodle_Icon_Cold.png|link=Cold]] | |{{tt|name=Infobox item|default=Cold|arg1=cold}}[[File:Moodle_Icon_Cold.png|link=Cold{{lcs}}]] | ||
|{{{flu_change}}} | |{{{flu_change}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{pain_change|}}} | {{Infobox/sandbox/row | -->{{#if:{{{pain_change|}}} | {{Infobox/sandbox/row | ||
|Pain[[File:Moodle_Icon_Pain.png|link=Pain]] | |{{tt|name=Infobox item|default=Pain|arg1=pain}}[[File:Moodle_Icon_Pain.png|link=Pain{{lcs}}]] | ||
|{{{pain_change}}} | |{{{pain_change}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{sick_change|}}} | {{Infobox/sandbox/row | -->{{#if:{{{sick_change|}}} | {{Infobox/sandbox/row | ||
|Sick[[File:Moodle_Icon_Sick.png|link=Sick]] | |{{tt|name=Infobox item|default=Sick|arg1=sick}}[[File:Moodle_Icon_Sick.png|link=Sick{{lcs}}]] | ||
|{{{sick_change}}} | |{{{sick_change}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{alcoholic|{{{alcohol|}}}}}} | {{Infobox/sandbox/row | -->{{#if:{{{alcoholic|{{{alcohol|}}}}}} | {{Infobox/sandbox/row | ||
|Alcohol[[File:Moodle_Icon_Drunk.png|link=Drunk]] | |{{tt|name=Infobox item|default=Alcohol|arg1=alcohol}}[[File:Moodle_Icon_Drunk.png|link=Drunk{{lcs}}]] | ||
|{{{alcoholic|{{{alcohol}}}}}} | |{{{alcoholic|{{{alcohol}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{alcohol_power|}}} | {{Infobox/sandbox/row | -->{{#if:{{{alcohol_power|}}} | {{Infobox/sandbox/row | ||
|Sterilize power[[File:Alcohol.png|link=First Aid#Disinfection|Disinfection]] | |{{tt|name=Infobox item|default=Sterilize power|arg1=sterilize_power}}[[File:Alcohol.png|link=First Aid{{lcs}}#{{tt|name=Infobox item|default=Disinfection|arg1=disinfection}}|{{tt|name=Infobox item|default=Disinfection|arg1=disinfection}}]] | ||
|{{{alcohol_power}}} | |{{{alcohol_power}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{reduce_infection_power|}}} | {{Infobox/sandbox/row | -->{{#if:{{{reduce_infection_power|}}} | {{Infobox/sandbox/row | ||
|Antibiotic power[[File:Antibiotics.png|link=Health#Infections]] | |{{tt|name=Infobox item|default=Antibiotic power|arg1=antibiotics_power}}[[File:Antibiotics.png|link=Health{{lcs}}#{{tt|name=Infobox item|default=Infections|arg1=infections}}]] | ||
|{{{reduce_infection_power}}} | |{{{reduce_infection_power}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{bandage_power|}}} | {{Infobox/sandbox/row | -->{{#if:{{{bandage_power|}}} | {{Infobox/sandbox/row | ||
|Bandage power[[File:Moodle_Icon_Bleeding.png|link=Bleeding]] | |{{tt|name=Infobox item|default=Bandage power|arg1=bandage_power}}[[File:Moodle_Icon_Bleeding.png|link=Bleeding{{lcs}}]] | ||
|{{{bandage_power}}} | |{{{bandage_power}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{wet_cooldown|}}} | {{#if:{{{max_units|}}} | {{Infobox/sandbox/row | -->{{#if:{{{wet_cooldown|}}} | {{#if:{{{max_units|}}} | {{Infobox/sandbox/row | ||
|Wetness[[File:Moodle_Icon_Wet.png|link=Wet]] | |{{tt|name=Infobox item|default=Wetness|arg1=wetness}}[[File:Moodle_Icon_Wet.png|link=Wet{{lcs}}]] | ||
|{{#iferror:{{#expr:4/{{{max_units}}}}}|4% per unit|{{tooltip|-{{#expr:4/{{{max_units}}}}}%|Dries 4% of total wetness per unit}}}}<!-- 4/max_units, if not maths expr, return "4% per unit" --> | |{{#iferror:{{#expr:4/{{{max_units}}}}}|4% per unit|{{tooltip|-{{#expr:4/{{{max_units}}}}}%|{{tt|name=Infobox item|default=Dries 4% of total wetness per unit|arg1=wetness_desc}}}}}}<!-- 4/max_units, if not maths expr, return "4% per unit" --> | ||
}}}}}}<!-- | }}}}}}<!-- | ||
-->{{#if:{{{poison_power|}}} | {{Infobox/sandbox/row | -->{{#if:{{{poison_power|}}} | {{Infobox/sandbox/row | ||
|Poison[[File:SkullPoison.png|class=auto-size]] | |{{tt|name=Infobox item|default=Poison|arg1=poison}}[[File:SkullPoison.png|{{tt|name=Infobox item|default=Poison|arg1=poison}}|class=auto-size]] | ||
|{{{poison_power}}} | |{{{poison_power}}} | ||
}}}}<!-- | }}}}<!-- | ||
Line 616: | Line 730: | ||
## COOKING ## | ## COOKING ## | ||
-->{{#if:{{{cook_minutes|{{{burn_minutes|{{{dangerous_uncooked|{{{bad_microwaved|{{{good_hot|{{{bad_cold|{{{spice|{{{evolved_recipe| | -->{{#if:{{{cook_minutes|}}}{{{burn_minutes|}}}{{{dangerous_uncooked|}}}{{{bad_microwaved|}}}{{{good_hot|}}}{{{bad_cold|}}}{{{spice|}}}{{{evolved_recipe|}}} | ||
| {{Infobox/section | | {{Infobox/section | ||
| Cooking | | {{tt|name=Infobox item|default=Cooking|arg1=cooking}} | ||
| color = var(--color-red) | | color = var(--color-red) | ||
| id = item-cooking | | id = item-cooking | ||
| <!-- | | <!-- | ||
-->{{#if:{{{cook_minutes|}}} | {{Infobox/sandbox/row | -->{{#if:{{{cook_minutes|}}} | {{Infobox/sandbox/row | ||
|Time until cooked | |{{tt|name=Infobox item|default=Time until cooked|arg1=time_until_cooked}} | ||
|{{{cook_minutes}}} minutes | |{{{cook_minutes}}} {{tt|name=Infobox item|default=minutes|arg1=minutes}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{burn_minutes|}}} | {{Infobox/sandbox/row | -->{{#if:{{{burn_minutes|}}} | {{Infobox/sandbox/row | ||
|Time until burned | |{{tt|name=Infobox item|default=Time until burned|arg1=time_until_burned}} | ||
|{{{burn_minutes}}} minutes | |{{{burn_minutes}}} {{tt|name=Infobox item|default=minutes|arg1=minutes}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{dangerous_uncooked|}}} | {{Infobox/sandbox/row | -->{{#if:{{{dangerous_uncooked|}}} | {{Infobox/sandbox/row | ||
|Dangerous uncooked | |{{tt|name=Infobox item|default=Dangerous uncooked|arg1=dangerous_uncooked}} | ||
|{{ucfirst:{{lc:{{{dangerous_uncooked}}}}}}} | |{{ucfirst:{{lc:{{{dangerous_uncooked}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{bad_microwaved|}}} | {{Infobox/sandbox/row | -->{{#if:{{{bad_microwaved|}}} | {{Infobox/sandbox/row | ||
|Bad microwaved | |{{tt|name=Infobox item|default=Bad microwaved|arg1=bad_microwaved}} | ||
|{{ucfirst:{{lc:{{{bad_microwaved}}}}}}} | |{{ucfirst:{{lc:{{{bad_microwaved}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{good_hot|}}} | {{Infobox/sandbox/row | -->{{#if:{{{good_hot|}}} | {{Infobox/sandbox/row | ||
|Good hot | |{{tt|name=Infobox item|default=Good hot|arg1=goot_hot}} | ||
|{{ucfirst:{{lc:{{{good_hot}}}}}}} | |{{ucfirst:{{lc:{{{good_hot}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{bad_cold|}}} | {{Infobox/sandbox/row | -->{{#if:{{{bad_cold|}}} | {{Infobox/sandbox/row | ||
|Bad cold | |{{tt|name=Infobox item|default=Bad cold|arg1=bad_cold}} | ||
|{{ucfirst:{{lc:{{{bad_cold}}}}}}} | |{{ucfirst:{{lc:{{{bad_cold}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{spice|}}} | {{Infobox/sandbox/row | -->{{#if:{{{spice|}}} | {{Infobox/sandbox/row | ||
|Spice | |{{tt|name=Infobox item|default=Spice|arg1=spice}} | ||
|{{ucfirst:{{lc:{{{spice}}}}}}} | |{{ucfirst:{{lc:{{{spice}}}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{evolved_recipe|}}} | {{Infobox/sandbox/row | -->{{#if:{{{evolved_recipe|}}} | {{Infobox/sandbox/row | ||
|Custom recipe | |{{tt|name=Infobox item|default=Custom recipe|arg1=custom_recipe}} | ||
|{{{evolved_recipe}}} | |{{{evolved_recipe}}} | ||
}}}}<!-- | }}}}<!-- | ||
Line 667: | Line 781: | ||
## CRAFTING ## | ## CRAFTING ## | ||
-->{{#if:{{{ingredients|}}} | -->{{#if:{{{workstation|}}}{{{tool|}}}{{{tool_tag|}}}{{{ingredients|}}} | ||
| {{Infobox/section | | {{Infobox/section | ||
| Crafting | | {{tt|name=Infobox item|default=Crafting|arg1=crafting}} | ||
| color = var(--color-red) | | color = var(--color-red) | ||
| id = item-crafting | | id = item-crafting | ||
| collapsed = true | | collapsed = true | ||
| <!-- | | <!-- | ||
-->{{#if:{{{workstation|}}} | {{Infobox/sandbox/row | |||
|{{tt|name=Infobox item|default=Workstation|arg1=workstation}} | |||
|{{{workstation}}} | |||
}}}}<!-- | |||
-->{{#if:{{{tool|}}}{{{tool_tag|}}} | {{Infobox/sandbox/row | |||
|{{tt|name=Infobox item|default=Tool(s)|arg1=tools}} | |||
|{{#if:{{{tool|}}} | |||
|{{{tool}}} | |||
|{{#if:{{{tool_tag|}}}|{{tl|{{{tool_tag}}}}}}} | |||
}}{{#if:{{{tool2|}}} | |||
|<br>{{{tool2}}} | |||
|{{#if:{{{tool_tag2|}}}|<br>{{tl|{{{tool_tag2}}}}}}} | |||
}}{{#if:{{{tool3|}}} | |||
|<br>{{{tool3}}} | |||
|{{#if:{{{tool_tag3|}}}|<br>{{tl|{{{tool_tag3}}}}}}} | |||
}}{{#if:{{{tool4|}}} | |||
|<br>{{{tool4}}} | |||
|{{#if:{{{tool_tag4|}}}|<br>{{tl|{{{tool_tag4}}}}}}} | |||
}}{{#if:{{{tool5|}}} | |||
|<br>{{{tool5}}} | |||
|{{#if:{{{tool_tag5|}}}|<br>{{tl|{{{tool_tag5}}}}}}} | |||
}}{{#if:{{{tool6|}}} | |||
|<br>{{{tool6}}} | |||
|{{#if:{{{tool_tag6|}}}|<br>{{tl|{{{tool_tag6}}}}}}} | |||
}} | |||
}}}}<!-- | |||
-->{{#if:{{{ingredients|}}} | {{Infobox/sandbox/row | -->{{#if:{{{ingredients|}}} | {{Infobox/sandbox/row | ||
|Ingredients | |{{tt|name=Infobox item|default=Ingredients|arg1=ingredients}} | ||
|{{{ingredients}}} | |{{{ingredients}}} | ||
}}}}<!-- | }}}}<!-- | ||
Line 684: | Line 826: | ||
## TECHNICAL ## | ## TECHNICAL ## | ||
-->{{#if:{{{tags|{{{item_id|{{{class_name|{{{media_id|}}} | -->{{#if:{{{tags|}}}{{{tag|}}}{{{item_id|}}}{{{class_name|}}}{{{media_id|}}}{{{guid|}}} | ||
| {{Infobox/section | | {{Infobox/section | ||
| Technical | | {{tt|name=Infobox item|default=Technical|arg1=technical}} | ||
| color = var(--color-red) | | color = var(--color-red) | ||
| id = item-technical | | id = item-technical | ||
| collapsed = true | | collapsed = true | ||
| <!-- | | <!-- | ||
-->{{#if:{{{tags|}}} | {{Infobox/sandbox/row | -->{{#if:{{{tags|}}}{{{tag|}}} | {{Infobox/sandbox/row | ||
|Tags | |{{tt|name=Infobox item|default=Tags|arg1=tags}} | ||
|{{{tags}}} | |{{#if:{{{tags|}}} | ||
|{{{tags}}} | |||
|{{#if:{{{tag|}}} | |||
|{{tl|{{{tag}}}}} | |||
}}{{#if:{{{tag2|}}} | |||
|<br>{{tl|{{{tag2}}}}} | |||
}}{{#if:{{{tag3|}}} | |||
|<br>{{tl|{{{tag3}}}}} | |||
}}{{#if:{{{tag4|}}} | |||
|<br>{{tl|{{{tag4}}}}} | |||
}}{{#if:{{{tag5|}}} | |||
|<br>{{tl|{{{tag5}}}}} | |||
}}{{#if:{{{tag6|}}} | |||
|<br>{{tl|{{{tag6}}}}} | |||
}} | |||
}} | |||
}}}}<!-- | |||
-->{{#if:{{{item_id|}}}{{{class_name|}}} | {{Infobox/sandbox/row | |||
|{{tt|name=Infobox item|default=Item ID|arg1=item_id}} | |||
|{{ID | |||
|{{{item_id|{{{class_name}}}}}} {{#if:{{{item_id2|}}} | |||
|<br>{{{item_id2|}}}}} {{#if:{{{item_id3|}}} | |||
|<br>{{{item_id3|}}}}} {{#if:{{{item_id4|}}} | |||
|<br>{{{item_id4|}}}}} {{#if:{{{item_id5|}}} | |||
|<br>{{{item_id5|}}}}} {{#if:{{{item_id6|}}} | |||
|<br>{{{item_id6|}}}}} {{#if:{{{item_id7|}}} | |||
|<br>{{{item_id7|}}}}} {{#if:{{{item_id8|}}} | |||
|<br>{{{item_id8|}}}}} {{#if:{{{item_id9|}}} | |||
|<br>{{{item_id9|}}}}} {{#if:{{{item_id10|}}} | |||
|<br>{{{item_id10|}}}}} | |||
}}{{#if:{{{item_id_more|}}}|<br><small title="{{{item_id_more}}}">[[#{{{item_id_more}}}|[{{tt|name=Infobox item|default=See all|arg1=see_all}}]]]</small>}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{ | -->{{#if:{{{guid|}}} | {{Infobox/sandbox/row | ||
| | |{{tt|name=Infobox item|default=GUID|arg1=guid}} | ||
|{{ID|{{{ | |{{ID | ||
|{{{guid}}} {{#if:{{{gui2|}}} | |||
|<br>{{{guid2|}}}}} {{#if:{{{guid3|}}} | |||
|<br>{{{guid3|}}}}} {{#if:{{{guid4|}}} | |||
|<br>{{{guid4|}}}}} {{#if:{{{guid5|}}} | |||
|<br>{{{guid5|}}}}} {{#if:{{{guid6|}}} | |||
|<br>{{{guid6|}}}}} {{#if:{{{guid7|}}} | |||
|<br>{{{guid7|}}}}} {{#if:{{{guid8|}}} | |||
|<br>{{{guid8|}}}}} {{#if:{{{guid9|}}} | |||
|<br>{{{guid9|}}}}} {{#if:{{{guid10|}}} | |||
|<br>{{{guid10|}}}}} | |||
}}{{#if:{{{guid_more|}}}|<br><small title="{{{guid_more}}}">[[#{{{guid_more}}}|[{{tt|name=Infobox item|default=See all|arg1=see_all}}]]]</small>}} | |||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{media_id|}}} | {{Infobox/sandbox/row | -->{{#if:{{{media_id|}}} | {{Infobox/sandbox/row | ||
|Media ID | |{{tt|name=Infobox item|default=Media ID|arg1=media_id}} | ||
|{{ID|{{{media_id}}}}} | |{{ID|{{{media_id}}}}} | ||
}}}}<!-- | }}}}<!-- |
Revision as of 21:59, 13 April 2024
All item infoboxes use this template.
Basic usage
{{Infobox item |name= |model= |icon= |icon_name= |category= |weight= |item_id= }}
Detailed usage
Weapon
{{Infobox item
|name=
|model=
|icon= <!-- icon2, icon3, ... -->
|icon_name= <!-- icon_name2, icon_name3, ... -->
<!--General-->
|category=
|weight=
|equipped=
|attachment_type=
|function=
|skill_type=
|ammo_type=
|clip_size=
<!--Properties-->
|material= <!-- E.g., Metal -->
|material_value= <!-- E.g., MetalValue attribute -->
|condition_max=
|condition_lower_chance=
|attack_speed=
<!--Performance-->
|damage_type=
|min_damage=
|max_damage=
|door_damage=
|tree_damage=
|min_range=
|max_range=
|sound_radius=
|base_speed=
|push_back=
|aiming_time=
|reload_time=
|crit_chance=
|crit_multiplier=
|kill_move=
<!--Technical-->
|tag=
|item_id=
}}
Weapon part
{{Infobox item
|name=
|model=
|icon= <!-- icon2, icon3, ... -->
|icon_name= <!-- icon_name2, icon_name3, ... -->
<!--General-->
|category=
|weight=
|part_type=
|function=
|weapon=
|ammo_type=
|clip_size=
<!--Properties-->
|material= <!-- E.g., Metal -->
|material_value= <!-- E.g., MetalValue attribute -->
<!--Performance-->
|damage_mod=
|min_range_mod=
|max_range_mod=
|recoil_delay=
|sound_radius=
|aiming_time=
|reload_time=
|angle_mod=
|weight_mod=
<!--Crafting-->
|workspace=
|tool=
|ingredients=
<!--Technical-->
|tag=
|item_id=
}}
Ammo
{{Infobox item
|name=
|model=
|model2=
|icon=
|icon_name=
|icon2=
|icon_name2=
<!--General-->
|category=Ammo
|weight=
|weight_text=(single)
|weight2=
|weight_text2=(box)
|weapon=
<!--Properties-->
|material=
|material_value=
|capacity=
<!--Crafting-->
|workspace=
|tool=
|ingredients=
<!--Technical-->
|tag=
|item_id=
}}
Clothing
{{Infobox item
|name=
|model=
|icon= <!-- icon2, icon3, ... -->
|icon_name= <!-- icon_name2, icon_name3, ... -->
<!--General-->
|category=
|weight=
|capacity=
|weight_reduction=
|body_location=
|function=
|attachments_provided
<!--Properties-->
|material= <!-- E.g., FabricType attribute -->
|condition_max=
|condition_lower_chance=
|run_speed=
|combat_speed=
|scratch_defense=
|bite_defense=
|bullet_defense=
|neck_protection=
|insulation=
|wind_resistance=
|water_resistance=
<!--Technical-->
|tag=
|item_id=
}}
Bag
{{Infobox item
|name=
|model=
|icon= <!-- icon2, icon3, ... -->
|icon_name= <!-- icon_name2, icon_name3, ... -->
<!--General-->
|category=
|weight=
|capacity=
|weight_reduction=
|equipped= <!-- E.g., CanBeEquipped attribute -->
|function=
<!--Properties-->
|material= <!-- E.g., FabricType attribute -->
|weight_reduction=
|run_speed=
|combat_speed=
<!--Technical-->
|tag=
|item_id=
}}
Medical
{{Infobox item
|name=
|model=
|icon= <!-- icon2, icon3, ... -->
|icon_name= <!-- icon_name2, icon_name3, ... -->
<!--General-->
|category=
|weight=
|function=
|max_units=
<!--Nutrition-->
|hunger_change=
|calories=
<!--Properties-->
|material= <!-- or |metal_value= -->
|material_value= <!-- or |metal_value= -->
|max_units= <!-- Do not add again if already defined in General section -->
<!--Effect-->
|unhappy_change=
|boredom_change=
|stress_change=
|fatigue_change=
|endurance_change=
|flu_change=
|pain_change=
|sick_change=
|reduce_infection_power=
|alcohol_power=
|wet_cooldown=
|bandage_power=
<!--Crafting-->
|workspace=
|tool=
|ingredients=
<!--Technical-->
|tag=
|item_id=
}}
Water container
{{Infobox item
|name=
|model=
|icon=
|icon_name=
<!--General-->
|category=
|weight=
|weight_full=
|function=
<!--Properties-->
|max_units=
|contents=
|can_boil_water=
|rain_factor=
|material= <!-- or |metal_value= -->
|material_value= <!-- or |metal_value= -->
<!--Technical-->
|tag=
|item_id=
}}
Communication
{{Infobox item
|name=
|model=
|icon= <!-- icon2, icon3, ... -->
|icon_name= <!-- icon_name2, icon_name3, ... -->
<!--General-->
|category=
|weight=
|function=
<!--Properties-->
|material=
|material_value=
|weight_reduction=
|condition_max=
|condition_lower_chance=
|energy_source=
|portable=
|two_way=
|mic_range=
|transmit_range=
|min_channel=
|max_channel=
<!--Performance-->
|sound_radius=
<!--Crafting-->
|workspace=
|tool=
|ingredients=
<!--Technical-->
|tags=
|item_id=
}}
Food
{{Infobox item
|name=
|model=
|icon= <!-- icon2, icon3, ... -->
|icon_name= <!-- icon_name2, icon_name3, ... -->
<!--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=
|evolved_recipe=
<!--Crafting-->
|workspace=
|tool=
|ingredients=
<!--Technical-->
|tag=
|item_id=
}}
Literature
{{Infobox item
|name=
|model=
|icon= <!-- icon2, icon3, ... -->
|icon_name= <!-- icon_name2, icon_name3, ... -->
<!--General-->
|category=
|weight=
|function=
<!--Properties-->
|consumed=
|writable=
|recipes=
|page_number=
|vol_number=
<!--Effect-->
|unhappy_change=
|boredom_change=
|stress_change=
<!--Technical-->
|tag=
|item_id=
}}
Light source
{{Infobox item
|name=
|model=
|icon=
|icon_name=
<!--General-->
|category=
|weight=
|function=
<!--Properties-->
|material= <!-- or |metal_value= -->
|material_value= <!-- or |metal_value= -->
|max_units=
|light_distance=
|light_strength=
|torch_cone=
|energy_source=
<!--Technical-->
|tag=
|item_id=
}}
Media
{{Infobox item
|name=
|model=
|icon=
|icon_name=
<!--General-->
|category=
|weight=
<!--Properties-->
|skill_trained=
<!--EFFECT-->
|unhappy_change=
|boredom_change=
|stress_change=
|panic_change=
|fatigue_change=
|endurance_change=
|fitness_change=<!--currently unused-->
|drunk_change=<!--currently unused-->
|anger_change=<!--currently unused-->
|morale_change=<!--currently unused-->
|fear_change=<!--currently unused-->
<!--Technical-->
|item_id=
|media_id=
}}
Other
{{Infobox item
|name=
|model=
|icon=
|icon_name=
<!--General-->
|category=
|weight=
|function=
<!--Properties-->
|material= <!-- or |metal_value= -->
|material_value= <!-- or |metal_value= -->
|max_units=
<!--Crafting-->
|workspace=
|tool=
|ingredients=
<!--Technical-->
|tag=
|item_id=
}}
Parameters
Any of the following parameters can be used in the template, regardless of whether or not they're included in the above examples.
Name and images | |||
Parameter | Description | ||
---|---|---|---|
Preferred | Alternative | Game files | |
name |
display_name |
DisplayName |
The name of the item. Displayed at the top of the infobox. Can be different if overwritten by the ItemName_EN.txt file.Default: uses page name |
model |
image |
WorldStaticModel WeaponSprite |
The model of the item. Default: uses the icon upscaled with pixelated class |
model_width |
image_width |
Default: 200px (128px if model is blank) | |
model_caption |
image_caption |
The caption of the model/image. Displayed beneath the image/model. | |
icon |
Icon IconsForTexture |
The icon of the item. For multiple icons, add any number from 2-16 to the parameter. E.g., icon2 .
| |
icon_width |
icon parameter. E.g., icon_width2 . | ||
icon_name |
The tooltip to be displayed when hovering over the icon. For multiple icons, use the same number as the icon parameter. E.g., icon_name2 .
| ||
icon_link |
icon parameter. E.g., icon_link2 . | ||
General | |||
Parameter | Description | ||
Preferred | Alternative | Game files | |
category |
DisplayCategory Type |
The in-game category for the item. | |
weight |
Weight |
The encumbrance (previously weight) of the item. Up to 3 weights can be defined, by appending a suffix id. E.g., weight2 . Encumbrance when equipped will be calculated automatically and added as a tooltip.
| |
weight_text |
Text to append to the end of the weight value with the same suffix id. E.g., weight_text2 .
| ||
weight_full |
The weight of the item when full. Leaving blank will calculate the weight of a bag when full, so long as capacity and weight_reduction are added. Weight organized and disorganized traits will be calculated automatically and added as a tooltip.
| ||
capacity |
Capacity |
The capacity of the item, to be used in the weight_full value, or displayed in the properties section. \May be for bags or "drainable" items. | |
weight_reduction |
WeightReduction |
The encumbrance reduction of the item. Used in calculating the weight when value. | |
body_location |
equipped |
BodyLocation RequiresEquippedBothHands TwoHandWeapon |
body_location to be used for clothing.equipped to be used for other items, like weapons.
|
attachment_type |
AttachmentType |
The slot the item is attached to. Typically used for weapons. | |
function |
primary_use Deprecatedsecondary_use Deprecated |
||
secondary_item |
OtherHandRequire |
Item to be equipped in the secondary hand for the item to function. | |
attachments_provided |
AttachmentsProvided |
The attachment slots provided by the item. Typical of belts. | |
weapon |
weapons Deprecated |
MountOn |
Weapons that the item is used in. Multiple weapons can be set by using weapon2 , weapon3 , etc., up to weapon5 .Add a weapon using a wikilink ( [[weapon]] ) or an image ([[File:weapon_icon.png|link=weapon]] ).
|
part_type |
PartType |
Part of the weapon that it is attached to. | |
skill_type |
Categories |
The skill the item is associated with. Typically used with weapons. | |
ammo_type |
ammo |
AmmoType |
The type of ammo used in the item/firearm. |
clip_size |
MaxAmmo |
The maximum ammo the item can contain. Typically used for firearms and magazines. | |
Properties | |||
Parameter | Description | ||
Preferred | Alternative | Game files | |
material |
FabricType MetalValue |
The material the item is made of. Usage is not strict. Intended use is for items with MetalValue , or FabricType (Cotton, Leather, or Denim).
| |
material_value |
MetalValue |
How much of the material the item contains. The material parameter will be included in the group title.
| |
contents |
Alternate to material , especially if the material is fuzzy, e.g., A water bottle can hold water or gas.
| ||
capacity Containermax_units Drainable |
UseDelta DrainableCount Ammo |
1) | |
weight_reduction |
WeightReduction |
Encumbrance reduction of the item. Used to calculate the "Full encumbrance" value. Displayed as a percentage. | |
weight_reduction_text |
weight_reduction . Typical usage: (full) | ||
can_boil_water |
IsCookable CanBoilWater |
Set to TRUE if the item can be used to boil water.
| |
consumed |
Set to TRUE if the item is consumed once used/depleted. Intended to be used for literature items only. Not to be used for food.
| ||
writable |
CanBeWrite |
Set to TRUE if the item can be written in.
| |
recipes |
skill_trained |
TeachedRecipes SkillTrained |
The recipes or skills that are learned from the item (magazine or book). |
page_number |
NumberOfPages PageToWrite |
Number of pages in the item. | |
vol_number |
Number of volumes for the series. | ||
packaged |
Packaged |
Set to TRUE if the item is packaged. Unlocks ability to look at the nutritional content.
| |
rain_factor |
RainFactor |
Determines how quickly an item can fill up with water if left out in the rain. | |
days_fresh |
DaysFresh |
The amount of days this item is recognized as "fresh". The unit "days" is appended after the value. Chilled and frozen calculated automatically and added as a tooltip. | |
days_rotten |
DaysTotallyRotten |
The amount of days before this item is recognized as "rotten". The unit "days" is appended after the value. Chilled and frozen calculated automatically and added as a tooltip. | |
cant_be_frozen |
CantBeFrozen |
Set to true if the item can be frozen, delaying time before the food rots. Used in calculations for days_fresh and days_rotten tooltip.
| |
condition_max |
ConditionMax |
The item's maximum condition, i.e. when it's fully repaired. Used in the calculation for "Base durability" if condition_lower_chance is defined.
| |
condition_lower_chance |
ConditionLowerChanceOneIn |
The item's chance of lowering in durability. Used in the calculation for "Base durability". | |
base_durability |
ConditionMax ×ConditionLowerChanceOneIn |
||
run_speed |
RunSpeedModifier |
Run speed modifier. Note this is currently bugged/unimplemented, and has no in-game function. | |
combat_speed |
CombatSpeedModifier |
Combat speed modifier for clothing. | |
attack_speed |
|||
scratch_defense |
ScratchDefense |
Scratch defense modifier. Automatically converted to a percentage. | |
bite_defense |
BiteDefense |
Bit defense modifier. Automatically converted to a percentage. | |
bullet_defense |
BulletDefense |
Bullet defense modifier. Automatically converted to a percentage. | |
neck_protection |
NeckProtectionModifier |
Neck protection modifier. Automatically converted to a percentage. | |
insulation |
Insulation |
Insulation modifier. Automatically converted to a percentage. | |
wind_resistance |
WindResistance |
Wind resistance modifier. Automatically converted to a percentage. | |
water_resistance |
WaterResistance |
Water resistance modifier. Automatically converted to a percentage. | |
light_distance |
LightDistance |
The distance the light from the source will travel. | |
light_strength |
LightStrength |
The intensity/brightness of light the source provides. | |
torch_cone |
TorchCone |
Set to TRUE if the light from this item travels in a single direction, a.k.a torch cone.
| |
wet_cooldown |
WetCooldown |
Time it takes to dry 1 wet_cooldown unit. Calculated based on the input and displayed in seconds. | |
sensor_range |
remote_range |
SensorRange RemoteRange |
How close an entity needs to be before the trap is triggered, or the distance the remote needs to be in order to trigger. |
energy_source |
The energy source of the item. E.g., UsesBattery = TRUE would mean the energy source is a battery.
| ||
portable |
IsPortable |
Whether the item can be used while in the inventory, or if it must be placed on the ground in order to operate. | |
two_way |
TwoWay |
Whether the item can receive and transmit a signal. | |
mic_range |
MicRange |
Number of tiles the player must be within in order for the mic to transmit their voice. | |
transmit_range |
TransmitRange |
The distance in tiles the item will transmit | |
min_channel |
MinChannel |
The minimum bandwidth/frequency for selecting a channel. | |
max_channel |
MaxChannel |
The maximum bandwidth/frequency for selecting a channel. | |
Performance | |||
Parameter | Description | ||
Preferred | Alternative | Game files | |
damage_type |
DamageCategory |
The type of damage this weapon does. The attribute used to define this has an order of priority if it exists for the item.
| |
min_damage |
MinDamage |
Minimal weapon damage, before modifiers. | |
max_damage |
MaxDamage |
Maximum weapon damage, before modifiers. | |
door_damage |
DoorDamage |
Damage modifier done to doors. | |
tree_damage |
TreeDamage |
Damage modifier done to trees. | |
damage_mod |
DamageModifier |
||
min_range |
MinRange |
Range below which a weapon attack gets converted to shoving. | |
max_range |
MaxRange |
Range at which weapon gets 100% of its damage. | |
min_range_mod |
|||
max_range_mod |
hit_chance hit_chance_mod accuracy_mod |
||
recoil_delay |
recoil_mod recoil_delay_mod |
||
sound_radius |
SoundRadius |
||
base_speed |
BaseSpeed SwingTime |
Base speed of the weapon (previously the SwingTime attribute).
| |
push_back |
PushBackMod |
||
knockdown |
KnockdownMod |
||
aiming_time |
aiming_time_mod aiming_mod |
||
reload_time |
reload_time_mod reload_mod |
||
crit_chance |
CriticalChance |
Base critical chance value, before modifiers. | |
crit_multiplier |
CritDmgMultiplier |
Critical damage multiplier. | |
angle_mod |
spread_mod |
||
kill_move |
CloseKillMove |
||
weight_mod |
|||
effect_type |
|||
effect_power |
|||
effect_range |
|||
effect_duration |
|||
effect_timer |
|||
Nutrition | |||
Parameter | Description | ||
Preferred | Alternative | Game files | |
hunger_change |
HungerChange HUN |
The value of hunger that is changed from using/consuming this item. | |
thirst_change |
ThirstChange THI |
The value of thirst that is changed from using/consuming this item. | |
calories |
Calories |
The value of calories. | |
carbohydrates |
Carbohydrates |
The value of carbohydrates. | |
proteins |
Proteins |
The value of proteins. | |
lipids |
fat |
Lipids |
The value of lipids. |
Effect | |||
Parameter | Description | ||
Preferred | Alternative | Game files | |
unhappy_change |
UnhappyChange UHP |
The value of unhappiness that is changed from using/consuming this item. | |
boredom_change |
BoredomChange BOR |
The value of boredom that is changed from using/consuming this item. | |
stress_change |
StressChange STS |
The value of stress that is changed from using/consuming this item. | |
panic_change |
PAN |
The value of panic that is changed from using/consuming this item. | |
fatigue_change |
FatigueChange FAT |
The value of fatigue that is changed from using/consuming this item. | |
endurance_change |
EnduranceChange END |
The value of endurance that is changed from using/consuming this item. | |
flu_change |
FluReduction |
The value of flu/cold that is changed from using/consuming this item. | |
pain_change |
PainReduction PAI |
The value of pain that is changed from using/consuming this item. | |
sick_change |
ReduceFoodSickness SIC |
The value of sickness that is changed from using/consuming this item. | |
alcoholic |
alcohol |
Alcoholic DRU |
Whether this item is considered to be alcohol and therefore contributing to the drunk moodle. |
alcohol_power |
AlcoholPower |
The alcohol power of this item when used on wounds. | |
reduce_infection_power |
ReduceInfectionPower |
How much the item reduces wound infection. | |
bandage_power |
BandagePower |
How effective the item is at absorbing blood, and how frequently it needs to be replaced. | |
wet_cooldown |
WetCooldown |
If this value is defined, the "Wetness" value will be displayed. Does not contribute to the value. | |
max_units |
UseDelta |
Displayed as "Wetness" if wet_cooldown is defined. Determines how much wetness is dried per unit. Displayed as a percentage.
| |
poison_power |
PoisonPower |
The value of poison power attached to this item. | |
Cooking | |||
Parameter | Description | ||
Preferred | Alternative | Game files | |
cook_minutes |
MinutesToCook |
How long it takes before this item is "cooked". The unit "minutes" is appended after the value. | |
burn_minutes |
MinutesToBurn |
How long it takes before this item is "burnt". The unit "minutes" is appended after the value. | |
dangerous_uncooked |
DangerousUncooked |
Set to TRUE if the item can make the player sick if consumed before cooking it.
| |
bad_microwaved |
BadInMicrowave |
Set to TRUE if this item is of a poorer quality when cooked in a microwave.
| |
good_hot |
GoodHot |
Set to TRUE if this item is of a superior quality when consumed hot.
| |
bad_cold |
BadCold |
Set to TRUE if this item is of a poorer quality when consumed cold.
| |
spice |
Spice |
Set to TRUE if this item is considered a "spice" in cooking recipes.
| |
evolved_recipe |
EvolvedRecipeName |
The name of the item used in evolved recipes. Not a list of recipes this can be used in. | |
Crafting | |||
Parameter | Description | ||
Preferred | Alternative | Game files | |
workstation |
The workstation/tile needed to craft the item. | ||
tool |
The tool needed to craft the item. Up to 6 different tools can be defined, by adding a suffix id to the end of the parameter, e.g., tool2 .
| ||
tool_tag |
The tag of the tool needed to craft the item. Up to 6 different tools can be defined, by adding a suffix id to the end of the parameter, e.g., tool_tag2 . Will not work if tool with the same suffix id is defined.
| ||
ingredients |
List of ingredients required to craft the tile. Each entry should be a link to the item and separated by <br> , e.g., 2×[[Planks]]<br>4×[[Nails]] .
| ||
Technical | |||
Parameter | Description | ||
Preferred | Alternative | Game files | |
tags |
Tags |
Tags attributes for the item, that are used to define/group its functionality. Each value should be separated by <br> | |
tag |
Tags |
The Tags attributes for the item, which will automatically create a link to Item tags. Up to 6 different tags can be defined, by adding a suffix id to the end of the parameter, e.g., tag2 . Will not work if tags is already defined.
| |
item_id |
class_name Deprecated |
[module].[type] |
The ID of the item. The format is [module].[type] . This can be found in-game with debug, in the item list. Otherwise, in the item scripts where [module] is the name of the outermost block, e.g., Base , radio , farming , camping . Multiple item IDs can be set by either: separating with <br> or adding a 'suffix id' to the end (up to 10), e.g., item_id2 .
|
item_id_more |
If there are too many item IDs to be listed in the infobox, this can be used to define a link to a section on the page. E.g., item_id_more=Item IDs , will link to the "Item IDs" section on that page.
| ||
guid |
The "GUID" is a unique identifier used for some items to be used in various systems. For clothing this is found in fileGuidTable.xml .
| ||
guid_more |
If there are too many GUIDs to be listed in the infobox, this can be used to define a link to a section on the page. E.g., guid_more=Item IDs , will link to the "Item IDs" section on that page.
| ||
media_id |
The media ID for recorded media. Found in recorded_media.lua . E.g., 89108e07-fc70-4eec-a267-790d6f4b9831 for CD: Your smile. Your kiss.
|
How to translate
This template is translatable.
Template code
Paste the following code into the <includeonly>
tag of the translated template and translate the text after each =
sign (except for #default =
).
{{#switch: {{{1|}}}
<!-- Section: General -->
| general = General
| category = Category
| weight = Encumbrance
| weight_equipped = when equipped
| empty = empty
| full = full
| with_organized = with organized trait.
| with_disorganized = with disorganized trait.
| equipped = Equipped
| slot_attached = Slot attached
| back = Back
| belt = Belt
| holster = Holster
| n-a = N/A
| n-a_slot_desc = This item cannot be attached to any slot.
| function = Function
| secondary = Secondary
| slots_added = Slots added
| used_in = Used in
| part_type = Part type
| skill = Skill
| n-a_skill_desc = This item has no skill associated with it.
| ammunition = Ammunition
| clip_size = Magazine size
<!-- Section: Properties -->
| properties = Properties
| material = Material
| quantity = quantity
| contents = Contents
| capacity = Capacity
| ammo = Ammo
| round = round
| rounds = rounds
| box = (box)
| box_capacity_desc = Number of items when combined into a box.
| units = units
| can_boil_water = Can boil water
| consumed = Consumed
| writable = Writable
| recipes = Skills learned
| total_pages = Total pages
| page = page
| pages = pages
| total_volumes = Total volumes
| volume = volume
| volumes = volumes
| packaged = Packaged
| packaged_desc = Nutritional information always known
| rain_factor = Rain factor
| days_fresh = Days fresh
| days_rotten = Days until rotten
| days = days
| condition_max = Condition max.
| base_durability = Base durability
| base_durability_desc = Average number of hits before breaking at level 0.
| run_speed = Run speed
| combat_speed = Combat speed
| scratch_defense = Scratch defence
| bite_defense = Bite defence
| bullet_defense = Bullet defence
| neck_protection = Neck protection
| insulation = Insulation
| wind_resistance = Wind resistance
| water_resistance = Water resistance
| light_distance = Light distance
| light_strength = Light strength
| torch_cone = Torch cone
| wet_cooldown = Wet cooldown
| second = second
| seconds = seconds
| sensor_range = Sensor range
| tile = tile
| tiles = tiles
| energy_source = Energy source
| portable = Portable
| two_way = Two-way
| mic_range = Mic range
| transmit_range = Transmit range
| frequency_range = Frequency range
<!-- Section: Performance -->
| performance = Performance
| damage_type = Damage type
| damage = Damage
| door_damage = Door damage
| tree_damage = Tree damage
| range = range
| min_range = Min range
| max_range = Max range
| accuracy = Accuracy
| recoil = Recoil
| noise_radius = Noise radius
| attack_speed = Attack speed
| knockback = Knockback
| knockdown = Knockdown
| aiming_time = Aiming time
| reload_time = Reload time
| crit_chance = Crit chance
| crit_chance_desc = Damage multiplied by {{{2}}}
| spread = Spread
| special_ability = Special ability
| encumbrance_mod = Encumbrance mod.
| effect_power = {{{2|Effect}}} power
| effect_range = {{{2|Effect}}} range
| effect_duration = {{{2|Effect}}} duration
| minutes = minutes
| effect_timer = {{{2|Effect}}} timer
<!-- Section: Nutrition -->
| nutrition = Nutrition
| hunger = Hunger
| thirst = Thirst
| calories = Calories
| carbohydrates = Carbohydrates
| proteins = Proteins
| fat = Fat
<!-- Section: Effect -->
| effect = Effect
| unhappiness = Unhappiness
| boredom = Boredom
| stress = Stress
| panic = Panic
| enburance = Endurance
| fatigue = Fatigue
| cold = Cold
| pain = Pain
| sick = Sick
| alcohol = Alcohol
| sterilize_power = Sterilize power
| disinfection = Disinfection
| antibiotics_power = Antibiotic power
| infections = Infections
| bandage_power = Bandage power
| wetness = Wetness
| wetness_desc = Dries 4% of total wetness per unit
| poison = Poison
<!-- Section: Cooking -->
| cooking = Cooking
| time_until_cooked = Time until cooked
| minutes = minutes
| time_until_burned = Time until burned
| dangerous_uncooked = Dangerous uncooked
| bad_microwaved = Bad microwaved
| goot_hot = Good hot
| bad_cold = Bad cold
| spice = Spice
| custom_recipe = Custom recipe
<!-- Section: Crafting -->
| crafting = Crafting
| workstation = Workstation
| tools = Tool(s)
| ingredients = Ingredients
<!-- Section: Technical -->
| technical = Technical
| tags = Tags
| item_id = Item ID
| guid = GUID
| media_id = Media ID
| #default = {{Error|translation}}
}}
Template documentation
Copy the code wrapped in the <noinclude>
tag in this template and translate the text after doc =
in the {{Documentation}}
template.
{{Translation guide}}
template should be removed from the translated documentation.