Template:Connection panel: Difference between revisions
From Official Barotrauma Wiki
(accounting for input OR output for height calc) |
Jade Harley (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{doc}}[[Category:Templates]] | {{doc}}[[Category:Templates]] | ||
<onlyinclude><includeonly>{| class="connectionpanel" style="height: 0px" | <onlyinclude><includeonly>{| class="connectionpanel" style="height: 0px" | ||
! style="padding: 0px 0px 10px 0px; text-shadow: 1px 1px #000000"|[[Wiring|Connection Panel]] for '''{{{ | ! style="padding: 0px 0px 10px 0px; text-shadow: 1px 1px #000000"|[[Wiring|Connection Panel]] for '''{{{1|{{PAGENAME}}}}}'''<br><small>''Hover over pins to see their descriptions.''</small> | ||
|- {{#vardefine:height|{{#expr:28 | |- {{#vardefine:height|{{#expr:28 | ||
+{{#if:{{{output1|}}}{{{input1|}}}|60|0}} | +{{#if:{{{output1|}}}{{{input1|}}}|60|0}} | ||
Line 16: | Line 16: | ||
| style="position:relative; width:370px; height:{{#var:height}}px" | | | style="position:relative; width:370px; height:{{#var:height}}px" | | ||
{| class="connectionpanel-table1" | {| class="connectionpanel-table1" | ||
{{#if:{{{input1|}}}|{{Connection_panel/IO|input|{{{input1}}}|{{{input1color|red}}}}} | {{#if:{{{input1|}}}|{{Connection_panel/IO|input|{{{input1}}}|{{{input1color|{{#ifeq:{{{input1}}}|power_in|red|blue}}}}}}} | ||
{{#if:{{{input2|}}}|{{!}}- | {{#if:{{{input2|}}}|{{!}}- | ||
{{!}} colspan="3" style="height:10px" {{!}} | {{!}} colspan="3" style="height:10px" {{!}} | ||
Line 102: | Line 102: | ||
|} | |} | ||
{| class="connectionpanel-table3" | {| class="connectionpanel-table3" | ||
{{#if:{{{output1|}}}|{{Connection_panel/IO|output|{{{output1}}}|{{{output1color|red}}}}} | {{#if:{{{output1|}}}|{{Connection_panel/IO|output|{{{output1}}}|{{{output1color|{{#ifeq:{{{output1}}}|power_out|red|blue}}}}}}} | ||
{{#if:{{{output2|}}}|{{!}}- | {{#if:{{{output2|}}}|{{!}}- | ||
{{!}} colspan="3" style="height:10px" {{!}} | {{!}} colspan="3" style="height:10px" {{!}} |
Revision as of 18:00, 19 September 2022
Connection Panel for Connection panel Hover over pins to see their descriptions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The above documentation is transcluded from Template:Connection panel/doc. (edit | history)