Template:Legacy Installations Infobox: Difference between revisions
From Official Barotrauma Wiki
Jade Harley (talk | contribs) mNo edit summary |
(Categories) |
||
(33 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''' | ||
| {{#expr:{{{pickdistance|100}}}/100}} meter{{#ifeq:{{{pickdistance|100}}}|100||s}} | | {{#expr:{{{pickdistance|100}}}/100}} meter{{#ifeq:{{{pickdistance|100}}}|100||s}} | ||
|- | |||
{{#if:{{{empable|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Vulnerable to EMPs''' | |||
{{!}} {{#switch:{{{empable|}}}|true|yes=Yes|#default=False}}}} | |||
|- | |- | ||
{{#if:{{{powerconsumption|}}}| | {{#if:{{{powerconsumption|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Power Consumption''' | {{!}} style="text-align:right" {{!}} '''Max Power {{#ifexpr:{{{powerconsumption}}} < 0|Production|Consumption}}''' | ||
{{!}} {{{powerconsumption}}} kW}} | {{!}} {{#replace:{{{powerconsumption}}}|-}} kW}} | ||
|- | |||
{{#if:{{{minvoltage|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Min Voltage''' | |||
{{!}} {{{minvoltage}}}}} | |||
|- | |||
{{#if:{{{detachtool|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Detach Tool(s)''' | |||
{{!}} {{{detachtool|}}}}} | |||
|- | |- | ||
{{#if:{{{sensorrange|}}}| | {{#if:{{{sensorrange|}}}| | ||
Line 24: | Line 36: | ||
{{!}} {{#expr:{{{sensorrange}}}/100}} meter{{#ifeq:{{{sensorrange}}}|100||s}}}} | {{!}} {{#expr:{{{sensorrange}}}/100}} meter{{#ifeq:{{{sensorrange}}}|100||s}}}} | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{maxforce|}}}| | ||
{{!}} style="text-align:right" {{!}} ''' | {{!}} style="text-align:right" {{!}} '''Max Force''' | ||
{{!}} {{{ | {{!}} {{{maxforce}}}}} | ||
|- | |||
{{#if:{{{maxflow|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Max Flow Rate''' | |||
{{!}} {{{maxflow}}}}} | |||
|- | |- | ||
{{#if:{{{uses|}}}| | {{#if:{{{uses|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Required Item(s)''' | {{!}} style="text-align:right" {{!}} '''Required Item(s)''' | ||
{{!}} {{{uses}}}}} | {{!}} {{{uses}}}}} | ||
|- | |||
{{#if:{{{barrelpos|}}}{{{reload|}}}{{{rotationlimits|}}}{{{hudtint|}}}| | |||
! colspan="2" {{!}} Turret}} | |||
|- | |||
{{#if:{{{barrelpos|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Barrel Offset''' | |||
{{!}} {{#ifexpr:{{#explode:{{{barrelpos}}}|,|0}}<0|←|→}} {{#explode:{{{barrelpos}}}|,|0}} '''<nowiki>|</nowiki>''' {{#ifexpr:{{#explode:{{{barrelpos}}}|,|1}}<0|↓|↑}} {{#explode:{{{barrelpos}}}|,|0}}}} | |||
|- | |||
{{#if:{{{reload|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Shot Interval''' | |||
{{!}} {{{reload}}} s}} | |||
|- | |||
{{#if:{{{rotationlimits|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Rotation Limits''' | |||
{{!}} {{#replace:{{{rotationlimits}}}|,|°–}}°}} | |||
|- | |||
{{#if:{{{barrelpos|}}}{{{reload|}}}{{{rotationlimits|}}}{{{hudtint|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Has Charge Indicator?''' | |||
{{!}} {{#ifeq:{{lc:{{{showchargeindicator|}}}}}|false|No|Yes}}}} | |||
|- | |||
{{#if:{{{barrelpos|}}}{{{reload|}}}{{{rotationlimits|}}}{{{hudtint|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Has Ammunition Indicator?''' | |||
{{!}} {{#ifeq:{{lc:{{{showprojectileindicator|}}}}}|false|No|Yes}}}} | |||
|- | |||
{{#if:{{{hudtint|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Hud Tint''' | |||
{{!}} style="background:rgba({{#expr:{{#explode:{{{hudtint}}}|,|0}}*255}},{{#expr:{{#explode:{{{hudtint}}}|,|1}}*255}},{{#expr:{{#explode:{{{hudtint}}}|,|2}}*255}},{{#explode:{{{hudtint}}}|,|3}})"}} {{!}} | |||
|- | |- | ||
{{#if:{{{doortype|}}}{{{forcingtool|}}}{{{forcingtime|}}}| | {{#if:{{{doortype|}}}{{{forcingtool|}}}{{{forcingtime|}}}| | ||
Line 84: | Line 127: | ||
{{!}} style="text-align:right" {{!}} '''Fireproof''' | {{!}} style="text-align:right" {{!}} '''Fireproof''' | ||
{{!}} {{#if:{{{fireproof|}}}|Yes|No}}}} | {{!}} {{#if:{{{fireproof|}}}|Yes|No}}}} | ||
|- | |||
{{#if:{{{frequency|}}}{{{waveform|}}}| | |||
! colspan="2" {{!}} Oscillator}} | |||
|- | |||
{{#if:{{{frequency|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Frequency''' | |||
{{!}} {{{frequency}}} Hz}} | |||
|- | |||
{{#if:{{{waveform|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Waveform''' | |||
{{!}} {{ucfirst:{{{waveform}}}}}}} | |||
|- | |||
{{#if:{{{wifirange|}}}{{{channel|}}}{{{chatlink|}}}| | |||
! colspan="2" {{!}} Wi-Fi}} | |||
|- | |||
{{#if:{{{wifirange|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Range''' | |||
{{!}} {{#expr:{{{wifirange}}}/100}} meter{{#ifeq:{{{wifirange}}}|100||s}}}} | |||
|- | |||
{{#if:{{{channel|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Channel''' | |||
{{!}} {{{channel}}}}} | |||
|- | |||
{{#if:{{{wifirange|}}}{{{channel|}}}{{{chatlink|}}}| | |||
{{!}} style="text-align:right" {{!}} '''Displayed in Chat?''' | |||
{{!}} {{#switch:{{lc:{{{chatlink|false}}}}}|true|yes=Yes|#default=No}}}} | |||
|- | |- | ||
{{#if:{{{maxpower|}}}{{{overloadable|}}}{{{maxvoltage|}}}{{{fireprobability|}}}| | {{#if:{{{maxpower|}}}{{{overloadable|}}}{{{maxvoltage|}}}{{{fireprobability|}}}| | ||
Line 126: | Line 195: | ||
{{!}} {{ucfirst:{{{light1type|point}}}}}}} | {{!}} {{ucfirst:{{{light1type|point}}}}}}} | ||
|- | |- | ||
{{#if:{{{light1range|}}}| | {{#if:{{{light1type|}}}{{{light1range|}}}{{{light1color|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Range''' | {{!}} style="text-align:right" {{!}} '''Range''' | ||
{{!}} {{#expr:{{{light1range}}}/100}} meter{{#ifeq:{{{light1range}}}|100||s}}}} | {{!}} {{#expr:{{{light1range|100}}}/100}} meter{{#ifeq:{{{light1range|100}}}|100||s}}}} | ||
|- | |- | ||
{{#if:{{{light1color|}}}|{{ | {{#if:{{{light1color|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Color''' | |||
{{!}} style="background:rgba({{#expr:{{#explode:{{{light1color}}}|,|0}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|1}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|2}}*255}},{{#explode:{{{light1color}}}|,|3}})"}} {{!}} | |||
|- | |- | ||
{{#if:{{{ | {{#if:{{{repair1skill|}}}{{{repair1tools|}}}| | ||
! colspan="2" {{!}} {{{ | ! colspan="2" {{!}} {{{repair1name|Mechanical repairs}}}}} | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{repair1skill|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Required Skill''' | {{!}} style="text-align:right" {{!}} '''Required Skill''' | ||
{{!}} [[Skills (Legacy)#Construction|Construction]] {{{ | {{!}} {{#switch:{{#explode:{{lc:{{{repair1skill}}}}}| |0}}| | ||
| construction = [[Skills (Legacy)#Construction|Construction]] | |||
| electrical = [[Skills (Legacy)#Electrical Engineering|Electrical Engineering]]}} {{#explode:{{{repair1skill}}}| |1}}}} | |||
|- | |- | ||
{{#if:{{{ | {{#if:{{{repair1tools|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Required Tool | {{!}} style="text-align:right" {{!}} '''Required Tool(s)''' | ||
{{!}} {{{ | {{!}} {{{repair1tools}}}}} | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{repair2skill|}}}{{{repair2tools|}}}| | ||
! colspan="2" {{!}} {{{ | ! colspan="2" {{!}} {{{repair2name|Electrical repairs}}}}} | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{repair2skill|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Required Skill''' | {{!}} style="text-align:right" {{!}} '''Required Skill''' | ||
{{!}} [[Skills (Legacy)#Electrical Engineering|Electrical Engineering]] {{{ | {{!}} {{#switch:{{#explode:{{lc:{{{repair2skill}}}}}| |0}}| | ||
| construction = [[Skills (Legacy)#Construction|Construction]] | |||
| electrical = [[Skills (Legacy)#Electrical Engineering|Electrical Engineering]]}} {{#explode:{{{repair2skill}}}| |1}}}} | |||
|- | |- | ||
{{#if:{{{ | {{#if:{{{repair2tools|}}}| | ||
{{!}} style="text-align:right" {{!}} '''Required Tool | {{!}} style="text-align:right" {{!}} '''Required Tool(s)''' | ||
{{!}} {{{ | {{!}} {{{repair2tools}}}}} | ||
|- | |- | ||
| 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 164: | Line 239: | ||
{{!}} 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 installation. | Fabricator | String | |
sprite | The sprite of the installation. | Legacy Fabricator.png | File name | Legacy {{{name}}}.png
|
spritesize | The size of the sprite, in px. | x64 | ##, x##, ##x## | x128 |
description | The installation's description. | Fabricates various items. | String |
Technical
Field | Description | Example | Expected | Default |
---|---|---|---|---|
category | The category of the installation. | Alien | Structure, Decorative, Machine, Medical, Weapon, Equipment, Electrical, Material, Alien, Misc | Misc |
tags | The tags of the installation. | alien,weapon | CSV list |
The above documentation is transcluded from Template:Legacy Installations Infobox/doc. (edit | history)