Template:Legacy Installations Infobox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
(Categories)
 
(6 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 53: Line 53:
{{#if:{{{barrelpos|}}}|
{{#if:{{{barrelpos|}}}|
{{!}} style="text-align:right" {{!}} '''Barrel Offset'''
{{!}} style="text-align:right" {{!}} '''Barrel Offset'''
{{!}} {{#replace:{{{barrelpos}}}|,|, }}}}
{{!}} {{#ifexpr:{{#explode:{{{barrelpos}}}|,|0}}<0|←|→}} {{#explode:{{{barrelpos}}}|,|0}} '''<nowiki>|</nowiki>''' {{#ifexpr:{{#explode:{{{barrelpos}}}|,|1}}<0|↓|↑}} {{#explode:{{{barrelpos}}}|,|0}}}}  
|-
|-
{{#if:{{{reload|}}}|
{{#if:{{{reload|}}}|
Line 71: Line 71:
{{!}} {{#ifeq:{{lc:{{{showprojectileindicator|}}}}}|false|No|Yes}}}}
{{!}} {{#ifeq:{{lc:{{{showprojectileindicator|}}}}}|false|No|Yes}}}}
|-
|-
{{#if:{{{hudtint|}}}|{{#vardefine:hudtint|{{#expr:{{#explode:{{{hudtint}}}|,|0}}*255}},{{#expr:{{#explode:{{{hudtint}}}|,|1}}*255}},{{#expr:{{#explode:{{{hudtint}}}|,|2}}*255}},{{#explode:{{{hudtint}}}|,|3}}}}
{{#if:{{{hudtint|}}}|
{{!}} style="text-align:right" {{!}} '''Hud Tint (RGBA)'''
{{!}} style="text-align:right" {{!}} '''Hud Tint'''
{{!}} style="background:black;color:rgba({{#var:hudtint}})" {{!}} '''{{#replace:{{{hudtint}}}|,|,&nbsp;}}'''}}
{{!}} 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 199: 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|}}}|

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