Template:Legacy Installations Infobox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
(Categories)
 
(15 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 21: Line 21:
|-
|-
{{#if:{{{powerconsumption|}}}|
{{#if:{{{powerconsumption|}}}|
{{!}} style="text-align:right" {{!}} '''Max Power Consumption'''
{{!}} style="text-align:right" {{!}} '''Max Power {{#ifexpr:{{{powerconsumption}}} < 0|Production|Consumption}}'''
{{!}} {{{powerconsumption}}} kW}}
{{!}} {{#replace:{{{powerconsumption}}}|-}} kW}}
|-
|-
{{#if:{{{minvoltage|}}}|
{{#if:{{{minvoltage|}}}|
Line 47: Line 47:
{{!}} 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 172: Line 199:
{{!}} {{#expr:{{{light1range|100}}}/100}} meter{{#ifeq:{{{light1range|100}}}|100||s}}}}
{{!}} {{#expr:{{{light1range|100}}}/100}} meter{{#ifeq:{{{light1range|100}}}|100||s}}}}
|-
|-
{{#if:{{{light1color|}}}|{{#vardefine:light1color|{{#expr:{{#explode:{{{light1color}}}|,|0}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|1}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|2}}*255}},{{#explode:{{{light1color}}}|,|3}}}}
{{#if:{{{light1color|}}}|
{{!}} style="text-align:right" {{!}} '''Color (RGBA)'''
{{!}} style="text-align:right" {{!}} '''Color'''
{{!}} style="background:black;color:rgba({{#var:light1color}})" {{!}} '''{{#replace:{{{light1color}}}|,|,&nbsp;}}'''}}
{{!}} style="background:rgba({{#expr:{{#explode:{{{light1color}}}|,|0}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|1}}*255}},{{#expr:{{#explode:{{{light1color}}}|,|2}}*255}},{{#explode:{{{light1color}}}|,|3}})"}} {{!}}
|-
|-
{{#if:{{{repair1skill|}}}{{{repair1tools|}}}|
{{#if:{{{repair1skill|}}}{{{repair1tools|}}}|
Line 204: Line 231:
| colspan="2" style="padding:0px" |
| colspan="2" style="padding:0px" |
{| class="responsive-table mw-collapsible mw-collapsed" style="width:100%"
{| class="responsive-table mw-collapsible mw-collapsed" style="width:100%"
! colspan="2" | Technical<div style="float:right">
! colspan="2" | Technical
|-</div>
|-
| style="width:50%;text-align:right" | Categor{{#if:{{{category2|}}}{{{subcategory|}}}|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}}}]]}}

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