Template:Legacy Installations Infobox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
(Categories)
 
(46 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:{{{detachtool|}}}|
{{#if:{{{maxforce|}}}|
{{!}} style="text-align:right" {{!}} '''Detach Tool(s)'''
{{!}} style="text-align:right" {{!}} '''Max Force'''
{{!}} {{{detachtool|}}}}}
{{!}} {{{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 85: Line 128:
{{!}} {{#if:{{{fireproof|}}}|Yes|No}}}}
{{!}} {{#if:{{{fireproof|}}}|Yes|No}}}}
|-
|-
{{#if:{{{mechanicalrepairskill|}}}{{{mechanicalrepairtools|}}}|
{{#if:{{{frequency|}}}{{{waveform|}}}|
! colspan="2" {{!}} Mechanical repairs}}
! colspan="2" {{!}} Oscillator}}
|-
|-
{{#if:{{{mechanicalrepairskill|}}}|
{{#if:{{{frequency|}}}|
{{!}} style="text-align:right" {{!}} '''Required Skill'''
{{!}} style="text-align:right" {{!}} '''Frequency'''
{{!}} [[Skills (Legacy)#Construction|Construction]] {{{mechanicalrepairskill}}}
{{!}} {{{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:{{{mechanicalrepairtools|}}}|
{{#if:{{{maxpower|}}}|
{{!}} style="text-align:right" {{!}} '''Required Tool{{#ifeq:{{#contains:{{{mechanicalrepairtools|}}}|<nowiki><br></nowiki>}}|0||s}}'''
{{!}} style="text-align:right" {{!}} '''Max. Power'''
{{!}} {{{mechanicalrepairtools}}}}}
{{!}} {{{maxpower}}} kW}}
|-
|-
{{#if:{{{electricalrepairskill|}}}{{{electricalrepairtools|}}}|
{{#if:{{{overloadable|}}}{{{maxvoltage|}}}{{{fireprobability|}}}|
! colspan="2" {{!}} Electrical repairs}}
{{!}} style="text-align:right" {{!}} '''Overloadable'''
{{!}} {{#switch:{{{overloadable|}}}|false|no=No|#default=True}}}}
|-
|-
{{#if:{{{electricalrepairskill|}}}|
{{#if:{{{maxvoltage|}}}|
{{!}} style="text-align:right" {{!}} '''Required Skill'''
{{!}} style="text-align:right" {{!}} '''Overload Voltage'''
{{!}} [[Skills (Legacy)#Electrical Engineering|Electrical Engineering]] {{{electricalrepairskill}}}
{{!}} {{{maxvoltage}}}}}
|-
|-
{{#if:{{{electricalrepairtools|}}}|
{{#if:{{{fireprobability|}}}|
{{!}} style="text-align:right" {{!}} '''Required Tool{{#ifeq:{{#contains:{{{electricalrepairtools|}}}|<nowiki><br></nowiki>}}|0||s}}'''
{{!}} style="text-align:right" {{!}} '''Fire Chance'''
{{!}} {{{electricalrepairtools}}}}}
{{!}} {{#expr:{{{fireprobability}}}*100}}%}}
|-
|-
{{#if:{{{dockingdirection|}}}{{{verticaltolerance|}}}{{{horizontaltolerance|}}}|
{{#if:{{{dockingdirection|}}}{{{verticaltolerance|}}}{{{horizontaltolerance|}}}|
Line 129: 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|}}}|
{{!}} 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:{{{light1color|}}}|{{#vardefine:light1color|{{#expr:{{#explode:{{{light1color}}}|,|0}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|1}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|2}}*255}},{{#explode:{{{light1color}}}|,|3}}}}
{{#if:{{{repair2tools|}}}|
{{!}} style="text-align:right" {{!}} '''Color (RGBA)'''
{{!}} style="text-align:right" {{!}} '''Required Tool(s)'''
{{!}} style="background:black;color:rgba({{#var:light1color}})" {{!}} '''{{#replace:{{{light1color}}}|,|,&nbsp;}}'''}}
{{!}} {{{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 145: 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