Template:Legacy Items Infobox: Difference between revisions
From Official Barotrauma Wiki
Jade Harley (talk | contribs) mNo edit summary |
(Categories) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{doc}}[[Category:Templates]]</noinclude> | <noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Declaration Templates]][[Category:Cargo Storage Templates]][[Category:Infobox Templates]]</noinclude> | ||
<includeonly><onlyinclude>{| class="infobox responsive-table" align="right" | <includeonly><onlyinclude>{| class="infobox responsive-table" align="right" | ||
! colspan="2" | {{{name}}} | ! colspan="2" | {{{name}}} | ||
Line 10: | Line 10: | ||
! colspan="2" {{!}} General | ! colspan="2" {{!}} General | ||
|- | |- | ||
| style="text-align:right" | '''Max Condition''' | | style="width:50%;text-align:right" | '''Max Condition''' | ||
| {{{condition|100}}} | | style="width:50%" | {{{condition|100}}} | ||
|- | |- | ||
| style="text-align:right" | '''Interaction Threshold''' | | style="text-align:right" | '''Interaction Threshold''' | ||
Line 40: | Line 40: | ||
{{!}} {{{impacttolerance}}}}} | {{!}} {{{impacttolerance}}}}} | ||
|- | |- | ||
{{#if:{{{wearableslots|}}}{{{obstructvision|}}}{{{hideface|}}}{{{burnmultiplier|}}}{{{bluntmultiplier|}}}{{{bluntbleedingmultiplier|}}}{{{slashmultiplier|}}}{{{slashbleedingmultiplier|}}}{{{pressureprotection|}}}{{{speedmultiplier|}}}{{{lowpassmultiplier|}}}| | {{#if:{{{wearableslots|}}}{{{obstructvision|}}}{{{hideface|}}}{{{lockhands|}}}{{{burnmultiplier|}}}{{{bluntmultiplier|}}}{{{bluntbleedingmultiplier|}}}{{{slashmultiplier|}}}{{{slashbleedingmultiplier|}}}{{{pressureprotection|}}}{{{speedmultiplier|}}}{{{lowpassmultiplier|}}}| | ||
! colspan="2" {{!}} Wearable}} | ! colspan="2" {{!}} Wearable}} | ||
|- | |- | ||
Line 47: | Line 47: | ||
{{!}} {{{wearableslots}}}}} | {{!}} {{{wearableslots}}}}} | ||
|- | |- | ||
{{# | {{#ifeq:{{#rpos:{{{wearableslots|}}}|Face}}{{#rpos:{{{wearableslots|}}}|Head}}|-1-1|| | ||
{{!}} style="text-align:right" {{!}} '''Obstructs Vision?''' | {{!}} style="text-align:right" {{!}} '''Obstructs Vision?''' | ||
{{!}} {{#switch:{{lc:{{{obstructvision|false}}}}}|true|yes=Yes|#default=No}}}} | {{!}} {{#switch:{{lc:{{{obstructvision|false}}}}}|true|yes=Yes|#default=No}}}} | ||
|- | |- | ||
{{# | {{#ifeq:{{#rpos:{{{wearableslots|}}}|Face}}{{#rpos:{{{wearableslots|}}}|Head}}|-1-1|| | ||
{{!}} style="text-align:right" {{!}} '''Conceals Identity?''' | {{!}} style="text-align:right" {{!}} '''Conceals Identity?''' | ||
{{!}} {{#switch:{{lc:{{{hideface|false}}}}}|true|yes=Yes|#default=No}}}} | {{!}} {{#switch:{{lc:{{{hideface|false}}}}}|true|yes=Yes|#default=No}}}} | ||
|- | |||
{{#ifeq:{{#rpos:{{{wearableslots|}}}|Hand}}|-1|| | |||
{{!}} style="text-align:right" {{!}} '''Locks Inventory?''' | |||
{{!}} {{#switch:{{lc:{{{lockhands|false}}}}}|true|yes=Yes|#default=No}}}} | |||
|- | |- | ||
{{#if:{{{burnmultiplier|}}}| | {{#if:{{{burnmultiplier|}}}| | ||
Line 83: | Line 87: | ||
|- | |- | ||
{{#if:{{{damage|}}}| | {{#if:{{{damage|}}}| | ||
{{!}} style="text-align:right" {{!}} '''{{#if:{{{damagetype|}}}| | {{!}} style="text-align:right" {{!}} '''{{#if:{{{damagetype|}}}|{{ucfirst:{{{damagetype}}}}} }}Damage''' | ||
{{!}} {{{damage}}}}} | {{!}} {{{damage}}}}} | ||
|- | |- | ||
{{#if:{{{explosiondamage|}}}| | {{#if:{{{explosiondamage|}}}| | ||
{{!}} style="text-align:right" {{!}} '''{{#if:{{{explosiondamagetype|}}}| | {{!}} style="text-align:right" {{!}} '''{{#if:{{{explosiondamagetype|}}}|{{ucfirst:{{{explosiondamagetype}}}}} }}Explosion Damage''' | ||
{{!}} {{{explosiondamage}}}}} | {{!}} {{{explosiondamage}}}}} | ||
|- | |- | ||
Line 212: | Line 216: | ||
{{!}} [[File:Time.png|32px]] {{{deconstructortime}}} second{{#ifeq:{{{deconstructortime}}}|1||s}}{{#if:{{{deconstructormaterials|}}}|<br>{{{deconstructormaterials}}}}}}} | {{!}} [[File:Time.png|32px]] {{{deconstructortime}}} second{{#ifeq:{{{deconstructortime}}}|1||s}}{{#if:{{{deconstructormaterials|}}}|<br>{{{deconstructormaterials}}}}}}} | ||
|- | |- | ||
| colspan="2" style="padding:0px" | | |||
{| class="responsive-table mw-collapsible mw-collapsed" style="width:100%" | |||
! colspan="2" | Technical | ! colspan="2" | Technical | ||
|- | |- | ||
| style="text-align:right | | style="width:50%;text-align:right" | Categor{{#if:{{{category2|}}}{{{subcategory|}}}|ies|y}} | ||
| style="width:50%" | [[:Category:{{{category|Misc}}} (Legacy)|{{{category|Misc}}}]]{{#if:{{{category2|}}}|,[[:Category:{{{category2}}} (Legacy)|{{{category2}}}]]}} | | style="width:50%" | [[:Category:{{{category|Misc}}} (Legacy)|{{{category|Misc}}}]]{{#if:{{{category2|}}}|,[[:Category:{{{category2}}} (Legacy)|{{{category2}}}]]}} | ||
|- | |- | ||
Line 220: | Line 226: | ||
{{!}} style="text-align:right" {{!}} '''Tags''' | {{!}} style="text-align:right" {{!}} '''Tags''' | ||
{{!}} {{{tags}}}}} | {{!}} {{{tags}}}}} | ||
|} | |||
|}</onlyinclude></includeonly> | |}</onlyinclude></includeonly> |
Latest revision as of 22:07, 31 March 2023
Basic
Field | Description | Example | Expected | Default |
---|---|---|---|---|
name | The name of the item. | Thermal Artifact | String | |
icon | The icon of the item. | Legacy Wrench.png | File name | Legacy {{{name}}}.png
|
iconsize | The size of the icon, in px. | x64 | ##, x##, ##x## | x128 |
description | The item's description. | Good for repairing electrical items. | String |
General
Field | Description | Example | Expected | Default |
---|---|---|---|---|
price | The selling & buying price of the item. | 500 | Number | |
usedby | Other items/installations that use this item as ammunition. | {{lhl|Railgun Loader|32}} |
{{lhl|[Item/Installation Name]|32}} |
|
ammunition | Other item(s) that are required by this item to function. | {{lhl|Revolver Round|32}} |
{{lhl|[Item Name]|32}} |
|
impacttolerance | The required speed before OnImpact type status effects are triggered. | 8 | Number |
Crafting
Field | Description | Example | Expected | Default |
---|---|---|---|---|
fabricatorskill | The required skill and level to craft the item quickly. | Mechanical 20 | Helm ##, Weapons ##, Medical ##, Electrical ##, Mechanical ## | |
fabricatormaterials | The required materials to craft the item. | {{lhl|Steel Bar|32}} |
{{lhl|[Item Name]|32}} |
|
fabricatortime | The required time (in seconds) to craft the item. | 40 | Number | |
medicalfabricatorskill | The required skill and level to craft the item quickly. | Medical 20 | Helm ##, Weapons ##, Medical ##, Electrical ##, Mechanical ## | |
medicalfabricatormaterials | The required materials to craft the item. | {{lhl|Iron Powder|32}} |
{{lhl|[Item Name]|32}} |
|
medicalfabricatortime | The required time (in seconds) to craft the item. | 40 | Number | |
deconstructormaterials | The output materials gained from deconstructing the item. | {{lhl|Iron Powder|32}} |
{{lhl|[Item Name]|32}} |
|
deconstructortime | The required time (in seconds) to deconstruct the item. | 40 | Number |
Repair Tool
Field | Description | Example | Expected | Default |
---|---|---|---|---|
structurefixamount | The amount of hitpoints repaired per second for structures. | 2.0 | Number | |
limbfixamount | The amount of hitpoints healed per second for limbs. | -5.0 | Number | |
beamrange | The range of the repair tool's beam. | 600 | Number |
Technical
Field | Description | Example | Expected | Default |
---|---|---|---|---|
category | The category of the item. | Alien | Structure, Decorative, Machine, Medical, Weapon, Equipment, Electrical, Material, Alien, Misc | Misc |
tags | The tags of the item. | alien,weapon | CSV list |
The above documentation is transcluded from Template:Legacy Items Infobox/doc. (edit | history)