Difference between revisions of "Template:Ctrlingbox"

From StarMade Wiki
m
m
Line 1: Line 1:
{{#switch:{{{1}}} <!-- $1=format $2=type $3=align -->  
+
{{#switch:{{{1}}} <!-- $1=format $2=type (ctrl or name for item) $3=align -->  
 
|0 = <!-- Use parameter send in Ctrl table to know requested format  
 
|0 = <!-- Use parameter send in Ctrl table to know requested format  
 
-->{{#if:{{{4|}}}|{{ib|{{{4}}}}} <!-- new line for clarity ---- first data parameter
 
-->{{#if:{{{4|}}}|{{ib|{{{4}}}}} <!-- new line for clarity ---- first data parameter
Line 35: Line 35:
 
-->}}
 
-->}}
 
|1={{{!}} class="wikitable"
 
|1={{{!}} class="wikitable"
!colspan="{{#if:{{{20|}}}|19|{{#if:{{{19|}}}|18|{{#if:{{{18|}}}|17|{{#if:{{{17|}}}|16|{{#if:{{{16|}}}|15|{{#if:{{{15|}}}|14|{{#if:{{{14|}}}|13|{{#if:{{{13|}}}||12|{{#if:{{{12|}}}|11|{{#if:{{{11|}}}|10|{{#if:{{{10|}}}|9|{{#if:{{{9|}}}|8|{{#if:{{{8|}}}|7|{{#if:{{{7|}}}|6|{{#if:{{{6|}}}|5|{{#if:{{{5|}}}|4|{{#if:{{{4|}}}|3|{{#if:{{{3|}}}|2|{{#if:{{{2|}}}|1|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" height="30px"{{!}}<big>{{#switch:{{{2}}}
+
!colspan="{{#if:{{{20|}}}|19|{{#if:{{{19|}}}|18|{{#if:{{{18|}}}|17|{{#if:{{{17|}}}|16|{{#if:{{{16|}}}|15|{{#if:{{{15|}}}|14|{{#if:{{{14|}}}|13|{{#if:{{{13|}}}||12|{{#if:{{{12|}}}|11|{{#if:{{{11|}}}|10|{{#if:{{{10|}}}|9|{{#if:{{{9|}}}|8|{{#if:{{{8|}}}|7|{{#if:{{{7|}}}|6|{{#if:{{{6|}}}|5|{{#if:{{{5|}}}|4|{{#if:{{{4|}}}|3|{{#if:{{{3|}}}|2|{{#if:{{{2|}}}|1|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" height="30px"{{#if:{{{3|}}}|style="{{#ifeq:{{{3}}}|right|float:right;|float:left;}}"}}{{!}}<big>{{#switch:{{{2}}}
 
|Ctrling=Connection to
 
|Ctrling=Connection to
 
|CtrlBy=Connected by
 
|CtrlBy=Connected by
|Item=Production info}}</big>  
+
|Production info}}</big>  
 
{{!}}-
 
{{!}}-
! {{#if:{{{4|}}}|style="width: 100px;"{{!}}[[{{Db|{{{4}}}|link}}]]  <!-- new line for clarity ---- check 4 only if 3 if true
+
! {{#switch:{{{2}}}
 +
|Ctrling|CtrlBy={{#if:{{{4|}}}|style="width: 100px;"{{!}}[[{{Db|{{{4}}}|link}}]]  <!-- new line for clarity ---- check 4 only if 3 if true
 
-->{{#if:{{{5|}}}|{{!}}{{!}}style="width: 100px;"{{!}}[[{{Db|{{{5}}}|link}}]]  <!-- new line for clarity ---- ....
 
-->{{#if:{{{5|}}}|{{!}}{{!}}style="width: 100px;"{{!}}[[{{Db|{{{5}}}|link}}]]  <!-- new line for clarity ---- ....
 
-->{{#if:{{{6|}}}|{{!}}{{!}}style="width: 100px;"{{!}}[[{{Db|{{{6}}}|link}}]]  <!-- new line for clarity
 
-->{{#if:{{{6|}}}|{{!}}{{!}}style="width: 100px;"{{!}}[[{{Db|{{{6}}}|link}}]]  <!-- new line for clarity
Line 105: Line 106:
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
-->}}<!-- new line for clarity
+
-->}}<!-- new line for clarity {{!}}
 
-->}}
 
-->}}
 +
|{{!}} colspan="3" style="vertical-align:middle;"{{!}}<big>Produced in</big>{{Dbparser|{{{2}}}|link}}{{Dbparser|{{{2}}}|image|40}}
 +
{{!}}-
 +
{{#if:{{{4|}}}|! colspan"2" scope="row" style="width:200"{{!}}<big>{{ib|{{{4}}}|link}}</big>}}{{ib|{{{4}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}{{5}}x
 +
{{#if:{{{6|}}}|{{!}}-
 +
! colspan"2" scope="row" style="width:200"{{!}}<big>{{ib|{{{4}}}|link}}</big>}}{{ib|{{{6}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}{{7}}x
 +
{{#if:{{{8|}}}|{{!}}-
 +
! colspan"2" scope="row" style="width:200"{{!}}<big>{{ib|{{{4}}}|link}}</big>}}{{ib|{{{8}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}{{9}}x
 +
{{#if:{{{10|}}}|{{!}}-
 +
! colspan"2" scope="row" style="width:200"{{!}}<big>{{ib|{{{4}}}|link}}</big>}}{{ib|{{{10}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}{{11}}x
 +
{{#if:{{{12|}}}|{{!}}-
 +
! colspan"2" scope="row" style="width:200"{{!}}<big>{{ib|{{{4}}}|link}}</big>}}{{ib|{{{12}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}{{13}}x}} }} }} }} }}
 +
{{!}}-
 +
! style="width:100"{{!}}{{!}}<big>Produce in <font style="color:white">{{Dbparser|{{{2}}}|FactoryBakeTime}}</font> sec</big>
 +
! colspan="2" style="width:140"{{!}}<big>{{ib|{{{4}}}|link}}</big>}}{{ib|{{{4}}}|image|40
 +
}}
 
{{!}}}
 
{{!}}}
 
|Bad format request}}
 
|Bad format request}}

Revision as of 19:28, 13 May 2018

}} }} }}

|- ! style="width:100"||Produce in Template:Dbparser sec ! colspan="2" style="width:140"|}}40px |} |Bad format request}}