Difference between revisions of "Template:Ctrlingbox"

From StarMade Wiki
m
m
Line 1: Line 1:
{{#switch:{{{1}}} <!-- $1=format $2=type (ctrl or name for item) $3=align -->  
+
{{#switch:{{{2}}} <!-- $1=type (ctrl or name for item) $2=format $3=align -->  
|0 = {{#switch:{{{2}}}
+
|0 = {{#switch:{{{1}}}
 
|Ctrling|CtrlBy=1 {{{1|}}} 2 {{{3|}}} 3 {{{3|}}}{{#if:{{{4|}}}|{{ib|{{{4}}}}} <!-- new line for clarity ---- first data parameter
 
|Ctrling|CtrlBy=1 {{{1|}}} 2 {{{3|}}} 3 {{{3|}}}{{#if:{{{4|}}}|{{ib|{{{4}}}}} <!-- new line for clarity ---- first data parameter
 
-->{{#if:{{{5|}}}|, {{ib|{{{5}}}}} <!-- new line for clarity ---- check 5 only if 4
 
-->{{#if:{{{5|}}}|, {{ib|{{{5}}}}} <!-- new line for clarity ---- check 5 only if 4
Line 42: Line 42:
 
}}
 
}}
 
|1={{{!}} class="wikitable"
 
|1={{{!}} class="wikitable"
!colspan="{{#switch:{{{2}}}
+
!colspan="{{#switch:{{{1}}}
 
|CtrlBy|Ctrling={{#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|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
 
|CtrlBy|Ctrling={{#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|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
|3}}" height="30px"{{#if:{{{3|}}}|style="{{#ifeq:{{{3}}}|right|float:right;|float:left;}}"}}{{!}}<big>{{#switch:{{{2}}}
+
|3}}" height="30px"{{#if:{{{3|}}}|style="{{#ifeq:{{{3}}}|right|float:right;|float:left;}}"}}{{!}}<big>{{#switch:{{{1}}}
 
|Ctrling=Connection allowed to
 
|Ctrling=Connection allowed to
 
|CtrlBy=Connection allowed by
 
|CtrlBy=Connection allowed by
 
|Production info}}</big>  
 
|Production info}}</big>  
 
{{!}}-
 
{{!}}-
{{#switch:{{{2}}}
+
{{#switch:{{{1}}}
 
|Ctrling|CtrlBy=!{{#if:{{{4|}}}|style="width: 100px;"{{!}}[[{{Db|{{{4}}}|link}}]]  <!-- new line for clarity ---- check 4 only if 3 if true
 
|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 ---- ....
Line 117: Line 117:
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}
 
-->}}
|{{!}} colspan="3"{{!}}<big>Produced in</big>{{DbParser|{{{2}}}|link}}{{DbParser|{{{2}}}|image|40}}
+
|{{!}} colspan="3"{{!}}<big>Produced in</big>{{DbParser|{{{1}}}|link}}{{DbParser|{{{1}}}|image|40}}
 
{{!}}-  
 
{{!}}-  
 
! colspan="3"{{!}}<big>Ressources Required :</big>
 
! colspan="3"{{!}}<big>Ressources Required :</big>
Line 131: Line 131:
 
! colspan"2" scope="row" style="width:200"{{!}}<big>{{DbParser|{{{4}}}|link}}</big>{{DbParser|{{{12}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}<big>{{{13}}}x</big>}}}}}}}}}}
 
! colspan"2" scope="row" style="width:200"{{!}}<big>{{DbParser|{{{4}}}|link}}</big>{{DbParser|{{{12}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}<big>{{{13}}}x</big>}}}}}}}}}}
 
{{!}}-
 
{{!}}-
! style="width:100"{{!}}<big>Produce in <font style="color:white">{{DbParser|{{{2}}}|FactoryBakeTime}}</font> sec</big>
+
! style="width:100"{{!}}<big>Produce in <font style="color:white">{{DbParser|{{{1}}}|FactoryBakeTime}}</font> sec</big>
 
! colspan="2" style="width:140"{{!}}<big>{{DbParser|{{{4}}}|link}}</big>{{DbParser|{{{4}}}|image|40}}
 
! colspan="2" style="width:140"{{!}}<big>{{DbParser|{{{4}}}|link}}</big>{{DbParser|{{{4}}}|image|40}}
 
}}
 
}}
 
{{!}}}
 
{{!}}}
 
|Bad format request}}
 
|Bad format request}}

Revision as of 21:41, 13 May 2018

Bad format request