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:{{{1}}} <!-- $1=format $2=type (ctrl or name for item) $3=align -->  
|0 = <!-- Use parameter send in Ctrl table to know requested format
+
|0 = {{#switch:{{{2}}}
-->{{#if:{{{4|}}}|{{ib|{{{4}}}}} <!-- new line for clarity ---- first data parameter
+
|Ctrling|CtrlBy={{#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
 
-->{{#if:{{{6|}}}|, {{ib|{{{6}}}}} <!-- new line for clarity
 
-->{{#if:{{{6|}}}|, {{ib|{{{6}}}}} <!-- new line for clarity
Line 34: Line 34:
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}
 
-->}}
 +
|{{#if:{{{4|}}}|{{ib|{{{4}}}x{{{5}}}}} <!-- new line for clarity
 +
-->{{#if:{{{6|}}}|, {{ib|{{{6}}}x{{{7}}}}} <!-- new line for clarity
 +
-->{{#if:{{{8|}}}|, {{ib|{{{8}}}x{{{9}}}}} <!-- new line for clarity
 +
-->{{#if:{{{10|}}}|, {{ib|{{{10}}}x{{{11}}}}} <!-- new line for clarity
 +
-->{{#if:{{{12|}}}|, {{ib|{{{12}}}x{{{13}}}}} <!-- new line for clarity
 +
}}
 
|1={{{!}} class="wikitable"
 
|1={{{!}} class="wikitable"
 
!colspan="{{#switch:{{{2}}}
 
!colspan="{{#switch:{{{2}}}
Line 110: Line 116:
 
-->}}<!-- 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|{{{2}}}|link}}{{DbParser|{{{2}}}|image|40}}
 
{{!}}-  style="vertical-align:middle;"
 
{{!}}-  style="vertical-align:middle;"
 
! colspan="3"{{!}}<big>Ressources Required </big>
 
! colspan="3"{{!}}<big>Ressources Required </big>
 
{{!}}- style="vertical-align:middle;"
 
{{!}}- style="vertical-align:middle;"
{{#if:{{{4|}}}|! colspan"2" scope="row" style="width:200"{{!}}<big>{{Dbparser|{{{4}}}|link}}</big>{{Dbparser|{{{4}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}<big>{{{5}}}x</big>
+
{{#if:{{{4|}}}|! colspan"2" scope="row" style="width:200"{{!}}<big>{{DbParser|{{{4}}}|link}}</big>{{DbParser|{{{4}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}<big>{{{5}}}x</big>
 
{{#if:{{{6|}}}|{{!}}-
 
{{#if:{{{6|}}}|{{!}}-
! colspan"2" scope="row" style="width:200"{{!}}<big>{{Dbparser|{{{4}}}|link}}</big>{{Dbparser|{{{6}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}<big>{{{7}}}x</big>
+
! colspan"2" scope="row" style="width:200"{{!}}<big>{{DbParser|{{{4}}}|link}}</big>{{DbParser|{{{6}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}<big>{{{7}}}x</big>
 
{{#if:{{{8|}}}|{{!}}-
 
{{#if:{{{8|}}}|{{!}}-
! colspan"2" scope="row" style="width:200"{{!}}<big>{{Dbparser|{{{4}}}|link}}</big>{{Dbparser|{{{8}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}<big>{{{9}}}x</big>
+
! colspan"2" scope="row" style="width:200"{{!}}<big>{{DbParser|{{{4}}}|link}}</big>{{DbParser|{{{8}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}<big>{{{9}}}x</big>
 
{{#if:{{{10|}}}|{{!}}-
 
{{#if:{{{10|}}}|{{!}}-
! colspan"2" scope="row" style="width:200"{{!}}<big>{{Dbparser|{{{4}}}|link}}</big>{{Dbparser|{{{10}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}<big>{{{11}}}x</big>
+
! colspan"2" scope="row" style="width:200"{{!}}<big>{{DbParser|{{{4}}}|link}}</big>{{DbParser|{{{10}}}|image|40}}{{!}}{{!}}style="width:40"{{!}}<big>{{{11}}}x</big>
 
{{#if:{{{12|}}}|{{!}}-
 
{{#if:{{{12|}}}|{{!}}-
! 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|{{{2}}}|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 20:18, 13 May 2018

{{#switch:{{{1}}} |0 = {{#switch:{{{2}}} |Ctrling|CtrlBy= |{{#if:|20px[[|]] {{#if:|, 20px[[|]] Bad format request