Template:Legacy Installations Infobox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
(Categories)
 
(72 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 9: Line 9:
|-
|-
! colspan="2" | General
! colspan="2" | General
|-
| style="width:50%;text-align:right" | '''Max Condition'''
| 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:{{{sensorrange|}}}|
{{#if:{{{empable|}}}|
{{!}} style="text-align:right" {{!}} '''Sensor Range'''
{{!}} style="text-align:right" {{!}} '''Vulnerable to EMPs'''
{{!}} {{#expr:{{{sensorrange}}}/100}} meters{{#ifeq:{{{sensorrange}}}|100||s}}}}
{{!}} {{#switch:{{{empable|}}}|true|yes=Yes|#default=False}}}}
|-
{{#if:{{{powerconsumption|}}}|
{{!}} style="text-align:right" {{!}} '''Max Power {{#ifexpr:{{{powerconsumption}}} < 0|Production|Consumption}}'''
{{!}} {{#replace:{{{powerconsumption}}}|-}} kW}}
|-
{{#if:{{{minvoltage|}}}|
{{!}} style="text-align:right" {{!}} '''Min Voltage'''
{{!}} {{{minvoltage}}}}}
|-
|-
{{#if:{{{detachtool|}}}|
{{#if:{{{detachtool|}}}|
Line 21: Line 32:
{{!}} {{{detachtool|}}}}}
{{!}} {{{detachtool|}}}}}
|-
|-
{{#if:{{{wiringtool|}}}|
{{#if:{{{sensorrange|}}}|
{{!}} style="text-align:right" {{!}} '''Wiring Tool(s)'''
{{!}} style="text-align:right" {{!}} '''Sensor Range'''
{{!}} {{{wiringtool}}}}}
{{!}} {{#expr:{{{sensorrange}}}/100}} meter{{#ifeq:{{{sensorrange}}}|100||s}}}}
|-
{{#if:{{{maxforce|}}}|
{{!}} 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 42: Line 88:
{{#if:{{{forcingtime|}}}|
{{#if:{{{forcingtime|}}}|
{{!}} style="text-align:right" {{!}} '''Forcing Time'''
{{!}} style="text-align:right" {{!}} '''Forcing Time'''
{{!}} {{{forcingtime|}}}}}
{{!}} {{{forcingtime|}}} second{{#ifeq:{{{forcingtime}}}|1||s}}}}
|-
{{#if:{{{powercapacity|}}}{{{rechargespeed|}}}|
! colspan="2" {{!}} Power Container}}
|-
{{#if:{{{powercapacity|}}}|
{{!}} style="text-align:right" {{!}} '''Max Charge'''
{{!}} {{{powercapacity|}}} kWm}}
|-
{{#if:{{{rechargespeed|}}}|
{{!}} style="text-align:right" {{!}} '''Max Recharge Speed'''
{{!}} {{{rechargespeed|}}} kW}}
|-
{{#if:{{{powercapacity|}}}{{{rechargespeed|}}}|{{#if:{{{maxoutput|}}}|
{{!}} style="text-align:right" {{!}} '''Max Output'''
{{!}} {{{maxoutput|}}} kW}}}}
|-
|-
{{#if:{{{itemslots|}}}{{{containableitems|}}}{{{containabletags|}}}{{{waterproof|}}}{{{fireproof|}}}|
{{#if:{{{itemslots|}}}{{{containableitems|}}}{{{containabletags|}}}{{{waterproof|}}}{{{fireproof|}}}|
Line 67: Line 128:
{{!}} {{#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|}}}|
! colspan="2" {{!}} Power Transfer}}
|-
{{#if:{{{maxpower|}}}|
{{!}} style="text-align:right" {{!}} '''Max. Power'''
{{!}} {{{maxpower}}} kW}}
|-
{{#if:{{{overloadable|}}}{{{maxvoltage|}}}{{{fireprobability|}}}|
{{!}} style="text-align:right" {{!}} '''Overloadable'''
{{!}} {{#switch:{{{overloadable|}}}|false|no=No|#default=True}}}}
|-
{{#if:{{{maxvoltage|}}}|
{{!}} style="text-align:right" {{!}} '''Overload Voltage'''
{{!}} {{{maxvoltage}}}}}
|-
{{#if:{{{fireprobability|}}}|
{{!}} style="text-align:right" {{!}} '''Fire Chance'''
{{!}} {{#expr:{{{fireprobability}}}*100}}%}}
|-
{{#if:{{{dockingdirection|}}}{{{verticaltolerance|}}}{{{horizontaltolerance|}}}|
! colspan="2" {{!}} Docking Port}}
|-
{{#if:{{{dockingdirection|}}}|
{{!}} style="text-align:right" {{!}} '''Docking Direction'''
{{!}} {{ucfirst:{{{dockingdirection}}}}}}}
|-
{{#if:{{{dockingdirection|}}}{{{verticaltolerance|}}}{{{horizontaltolerance|}}}|
{{!}} style="text-align:right" {{!}} '''Max Vertical Offset'''
{{!}} {{#expr:{{{verticaltolerance|64}}}/100}} meter{{#ifeq:{{{verticaltolerance|64}}}|100||s}}}}
|-
{{#if:{{{dockingdirection|}}}{{{verticaltolerance|}}}{{{horizontaltolerance|}}}|
{{!}} style="text-align:right" {{!}} '''Max Horizontal Offset'''
{{!}} {{#expr:{{{horizontaltolerance|64}}}/100}} meter{{#ifeq:{{{horizontaltolerance|64}}}|100||s}}}}
|-
{{#if:{{{light1type|}}}{{{light1range|}}}{{{light1color|}}}|
! colspan="2" {{!}} Light{{#if:{{{light2type|}}}{{{light2range|}}}{{{light2color|}}}|&nbsp;1}}}}
|-
{{#if:{{{light1type|}}}{{{light1range|}}}{{{light1color|}}}|
{{!}} style="text-align:right" {{!}} '''Type'''
{{!}} {{ucfirst:{{{light1type|point}}}}}}}
|-
{{#if:{{{light1type|}}}{{{light1range|}}}{{{light1color|}}}|
{{!}} style="text-align:right" {{!}} '''Range'''
{{!}} {{#expr:{{{light1range|100}}}/100}} meter{{#ifeq:{{{light1range|100}}}|100||s}}}}
|-
{{#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:{{{repair1skill|}}}{{{repair1tools|}}}|
! colspan="2" {{!}} {{{repair1name|Mechanical repairs}}}}}
|-
{{#if:{{{repair1skill|}}}|
{{!}} style="text-align:right" {{!}} '''Required Skill'''
{{!}} {{#switch:{{#explode:{{lc:{{{repair1skill}}}}}| |0}}|
| construction = [[Skills (Legacy)#Construction|Construction]]
| electrical  = [[Skills (Legacy)#Electrical Engineering|Electrical Engineering]]}} {{#explode:{{{repair1skill}}}| |1}}}}
|-
{{#if:{{{repair1tools|}}}|
{{!}} style="text-align:right" {{!}} '''Required Tool(s)'''
{{!}} {{{repair1tools}}}}}
|-
{{#if:{{{repair2skill|}}}{{{repair2tools|}}}|
! colspan="2" {{!}} {{{repair2name|Electrical repairs}}}}}
|-
{{#if:{{{repair2skill|}}}|
{{!}} style="text-align:right" {{!}} '''Required Skill'''
{{!}} {{#switch:{{#explode:{{lc:{{{repair2skill}}}}}| |0}}|
| construction = [[Skills (Legacy)#Construction|Construction]]
| electrical  = [[Skills (Legacy)#Electrical Engineering|Electrical Engineering]]}} {{#explode:{{{repair2skill}}}| |1}}}}
|-
{{#if:{{{repair2tools|}}}|
{{!}} 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;width:50%" | '''Categor{{#if:{{{category2|}}}|ies|y}}'''
| 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 75: 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

Documentation

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