Difference between revisions of "Template:Connection panel"

From Official Barotrauma Wiki
Jump to: navigation, search
m
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{doc}}
+
{{doc}}[[Category:Templates]]
<onlyinclude><includeonly>{| class="connectionpanel"
+
<onlyinclude><includeonly>{| class="connectionpanel" style="height: 0px"
! style="padding: 0 0 10px 0; text-shadow: 1px 1px #000000"|[[Wiring|Connection Panel]] for '''{{{1|{{PAGENAME}}}}}'''<br><small>''Hover over pins to see their descriptions.''</small>
+
! style="padding: 0px 0px 10px 0px; text-shadow: 1px 1px #000000"|[[Wiring|Connection Panel]] for '''{{{panelfor|{{PAGENAME}}}}}'''<br><small>''Hover over pins to see their descriptions.''</small>
|- {{#vardefine:rows|{{#if:{{{input11|{{{output11|}}}}}}|11|{{#if:{{{input10|{{{output10|}}}}}}|10|{{#if:{{{input9|{{{output9|}}}}}}|9|{{#if:{{{input8|{{{output8|}}}}}}|8|{{#if:{{{input7|{{{output7|}}}}}}|7|{{#if:{{{input6|{{{output6|}}}}}}|6|{{#if:{{{input5|{{{output5|}}}}}}|5|{{#if:{{{input4|{{{output4|}}}}}}|4|{{#if:{{{input3|{{{output3|}}}}}}|3|{{#if:{{{input2|{{{output2|}}}}}}|2|1}}}}}}}}}}}}}}}}}}}}}}
+
|- {{#vardefine:height|{{#expr:28
| style="position:relative; width:370px; height:{{#expr:{{#var:rows}}*60+26}}px" |
+
+{{#if:{{{output1|}}}{{{input1|}}}|60|0}}
 +
+{{#if:{{{output2|}}}{{{input2|}}}|60|0}}
 +
+{{#if:{{{output3|}}}{{{input3|}}}|60|0}}
 +
+{{#if:{{{output4|}}}{{{input4|}}}|60|0}}
 +
+{{#if:{{{output5|}}}{{{input5|}}}|60|0}}
 +
+{{#if:{{{output6|}}}{{{input6|}}}|60|0}}
 +
+{{#if:{{{output7|}}}{{{input7|}}}|60|0}}
 +
+{{#if:{{{output8|}}}{{{input8|}}}|60|0}}
 +
+{{#if:{{{output9|}}}{{{input9|}}}|60|0}}
 +
+{{#if:{{{output10|}}}{{{input10|}}}|60|0}}
 +
+{{#if:{{{output11|}}}{{{input11|}}}|60|0}}}}}}
 +
| 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 48: Line 59:
 
|}
 
|}
 
{| class="connectionpanel-table2"
 
{| class="connectionpanel-table2"
{{#if:{{{input1tt|}}}|{{Connection panel/TT|{{{input1tt|}}}}}}}
+
{{#if:{{{input1|}}}|{{Connection panel/TT|{{{input1tt|}}}}}
{{#if:{{{input2tt|}}}|{{!}}-
+
{{#if:{{{input2|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{input2tt|}}}}}}}
+
{{Connection panel/TT|{{{input2tt|}}}}}
{{#if:{{{input3tt|}}}|{{!}}-
+
{{#if:{{{input3|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{input3tt|}}}}}}}
+
{{Connection panel/TT|{{{input3tt|}}}}}
{{#if:{{{input4tt|}}}|{{!}}-
+
{{#if:{{{input4|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{input4tt|}}}}}}}
+
{{Connection panel/TT|{{{input4tt|}}}}}
{{#if:{{{input5tt|}}}|{{!}}-
+
{{#if:{{{input5|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{input5tt|}}}}}}}
+
{{Connection panel/TT|{{{input5tt|}}}}}
{{#if:{{{input6tt|}}}|{{!}}-
+
{{#if:{{{input6|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{input6tt|}}}}}}}
+
{{Connection panel/TT|{{{input6tt|}}}}}
{{#if:{{{input7tt|}}}|{{!}}-
+
{{#if:{{{input7|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{input7tt|}}}}}}}
+
{{Connection panel/TT|{{{input7tt|}}}}}
{{#if:{{{input8tt|}}}|{{!}}-
+
{{#if:{{{input8|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{input8tt|}}}}}}}
+
{{Connection panel/TT|{{{input8tt|}}}}}
{{#if:{{{input9tt|}}}|{{!}}-
+
{{#if:{{{input9|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{input9tt|}}}}}}}
+
{{Connection panel/TT|{{{input9tt|}}}}}
{{#if:{{{input10tt|}}}|{{!}}-
+
{{#if:{{{input10|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{input10tt|}}}}}}}
+
{{Connection panel/TT|{{{input10tt|}}}}}
{{#if:{{{input11tt|}}}|{{!}}-
+
{{#if:{{{input11|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{input11tt|}}}}}}}
+
{{Connection panel/TT|{{{input11tt|}}}}}}}}}}}}}}}}}}}}}}}}}}}
 
|}
 
|}
 
{| 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" {{!}}
Line 134: Line 145:
 
|}
 
|}
 
{| class="connectionpanel-table4"
 
{| class="connectionpanel-table4"
{{#if:{{{output1tt|}}}|{{Connection panel/TT|{{{output1tt|}}}}}}}
+
{{#if:{{{output1|}}}|{{Connection panel/TT|{{{output1tt|}}}}}
{{#if:{{{output2tt|}}}|{{!}}-
+
{{#if:{{{output2|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{output2tt|}}}}}}}
+
{{Connection panel/TT|{{{output2tt|}}}}}
{{#if:{{{output3tt|}}}|{{!}}-
+
{{#if:{{{output3|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{output3tt|}}}}}}}
+
{{Connection panel/TT|{{{output3tt|}}}}}
{{#if:{{{output4tt|}}}|{{!}}-
+
{{#if:{{{output4|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{output4tt|}}}}}}}
+
{{Connection panel/TT|{{{output4tt|}}}}}
{{#if:{{{output5tt|}}}|{{!}}-
+
{{#if:{{{output5|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{output5tt|}}}}}}}
+
{{Connection panel/TT|{{{output5tt|}}}}}
{{#if:{{{output6tt|}}}|{{!}}-
+
{{#if:{{{output6|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{output6tt|}}}}}}}
+
{{Connection panel/TT|{{{output6tt|}}}}}
{{#if:{{{output7tt|}}}|{{!}}-
+
{{#if:{{{output7|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{output7tt|}}}}}}}
+
{{Connection panel/TT|{{{output7tt|}}}}}
{{#if:{{{output8tt|}}}|{{!}}-
+
{{#if:{{{output8|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{output8tt|}}}}}}}
+
{{Connection panel/TT|{{{output8tt|}}}}}
{{#if:{{{output9tt|}}}|{{!}}-
+
{{#if:{{{output9|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{output9tt|}}}}}}}
+
{{Connection panel/TT|{{{output9tt|}}}}}
{{#if:{{{output10tt|}}}|{{!}}-
+
{{#if:{{{output10|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{output10tt|}}}}}}}
+
{{Connection panel/TT|{{{output10tt|}}}}}
{{#if:{{{output11tt|}}}|{{!}}-
+
{{#if:{{{output11|}}}|{{!}}-
 
{{!}} style="height:10px" {{!}}
 
{{!}} style="height:10px" {{!}}
 
{{!}}-
 
{{!}}-
{{Connection panel/TT|{{{output11tt|}}}}}}}
+
{{Connection panel/TT|{{{output11tt|}}}}}}}}}}}}}}}}}}}}}}}}}}}
 
|}
 
|}
 
|}</includeonly></onlyinclude>
 
|}</includeonly></onlyinclude>

Latest revision as of 02:20, 1 July 2022

Template-info.png Documentation
Connection Panel for Connection panel
Hover over pins to see their descriptions.
Connection Port.png
Input 1
Connection Port.png
Input 2
Connection Port.png
Input 3
Connection Port.png
Input 4
Connection Port.png
Input 5
Connection Port.png
Input 6
Connection Port.png
Input 7
Connection Port.png
Input 8
Connection Port.png
Input 9
Connection Port.png
Input 10
Connection Port.png
Input 11
Tooltip for input 1.
Tooltip for input 2.
Tooltip for input 3.
Tooltip for input 4.
Tooltip for input 5.
Tooltip for input 6.
Tooltip for input 7.
Tooltip for input 8.
Tooltip for input 9.
Tooltip for input 10.
Tooltip for input 11.
Output 1
Connection Port.png
Output 2
Connection Port.png
Output 3
Connection Port.png
Output 4
Connection Port.png
Output 5
Connection Port.png
Output 6
Connection Port.png
Output 7
Connection Port.png
Output 8
Connection Port.png
Output 9
Connection Port.png
Output 10
Connection Port.png
Output 11
Connection Port.png
Tooltip for output 1.
Tooltip for output 2.
Tooltip for output 3.
Tooltip for output 4.
Tooltip for output 5.
Tooltip for output 6.
Tooltip for output 7.
Tooltip for output 8.
Tooltip for output 9.
Tooltip for output 10.
Tooltip for output 11.