Difference between revisions of "Template:Tablebox"

From StarMade Wiki
(Created page with "{{#switch:{{{2}}} <!-- $1=type $2=format $3=align --> |0 = {{#switch:{{{1}}} |Ctrling|CtrlBy= {{#if:{{{4|}}}|{{ib|{{{4}}}}} <!-- new line for clarity ---- first data paramete...")
 
m
Line 1: Line 1:
 
{{#switch:{{{2}}} <!-- $1=type $2=format $3=align -->  
 
{{#switch:{{{2}}} <!-- $1=type $2=format $3=align -->  
|0 = {{#switch:{{{1}}}
+
|0 = {{#switch:{{{1}}} <!-- ===== 0 : ib request : just icon+name all on a line ======== -->
 
|Ctrling|CtrlBy=
 
|Ctrling|CtrlBy=
{{#if:{{{4|}}}|{{ib|{{{4}}}}} <!-- new line for clarity ---- first data parameter
+
{{#if:{{{4|}}}|[[File:{{DbParser|{{{4}}}|link}}.png|20px|link={{DbParser|{{{4}}}|link}}]][[{{DbParser|{{{4}}}|link}}|{{DbParser|{{{4}}}|link}}]] <!-- new line for clarity ---- first data parameter
-->{{#if:{{{5|}}}|, {{ib|{{{5}}}}} <!-- new line for clarity ---- check 5 only if 4
+
-->{{#if:{{{5|}}}|, [[File:{{DbParser|{{{5}}}|link}}.png|20px|link={{DbParser|{{{5}}}|link}}]][[{{DbParser|{{{5}}}|link}}|{{DbParser|{{{5}}}|link}}]] <!-- new line for clarity ---- check 5 only if 4
-->{{#if:{{{6|}}}|, {{ib|{{{6}}}}} <!-- new line for clarity
+
-->{{#if:{{{6|}}}|, [[File:{{DbParser|{{{6}}}|link}}.png|20px|link={{DbParser|{{{6}}}|link}}]][[{{DbParser|{{{6}}}|link}}|{{DbParser|{{{6}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{7|}}}|, {{ib|{{{7}}}}} <!-- new line for clarity
+
-->{{#if:{{{7|}}}|, [[File:{{DbParser|{{{7}}}|link}}.png|20px|link={{DbParser|{{{7}}}|link}}]][[{{DbParser|{{{7}}}|link}}|{{DbParser|{{{7}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{8|}}}|, {{ib|{{{8}}}}} <!-- new line for clarity
+
-->{{#if:{{{8|}}}|, [[File:{{DbParser|{{{8}}}|link}}.png|20px|link={{DbParser|{{{8}}}|link}}]][[{{DbParser|{{{8}}}|link}}|{{DbParser|{{{8}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{9|}}}|, {{ib|{{{9}}}}} <!-- new line for clarity
+
-->{{#if:{{{9|}}}|, [[File:{{DbParser|{{{9}}}|link}}.png|20px|link={{DbParser|{{{9}}}|link}}]][[{{DbParser|{{{9}}}|link}}|{{DbParser|{{{9}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{10|}}}|, {{ib|{{{10}}}}} <!-- new line for clarity
+
-->{{#if:{{{10|}}}|, [[File:{{DbParser|{{{10}}}|link}}.png|20px|link={{DbParser|{{{10}}}|link}}]][[{{DbParser|{{{10}}}|link}}|{{DbParser|{{{10}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{11|}}}|, {{ib|{{{11}}}}} <!-- new line for clarity
+
-->{{#if:{{{11|}}}|, [[File:{{DbParser|{{{11}}}|link}}.png|20px|link={{DbParser|{{{11}}}|link}}]][[{{DbParser|{{{11}}}|link}}|{{DbParser|{{{11}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{12|}}}|, {{ib|{{{12}}}}} <!-- new line for clarity
+
-->{{#if:{{{12|}}}|, [[File:{{DbParser|{{{12}}}|link}}.png|20px|link={{DbParser|{{{12}}}|link}}]][[{{DbParser|{{{12}}}|link}}|{{DbParser|{{{12}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{13|}}}|, {{ib|{{{13}}}}} <!-- new line for clarity
+
-->{{#if:{{{13|}}}|, [[File:{{DbParser|{{{13}}}|link}}.png|20px|link={{DbParser|{{{13}}}|link}}]][[{{DbParser|{{{13}}}|link}}|{{DbParser|{{{13}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{14|}}}|, {{ib|{{{14}}}}} <!-- new line for clarity
+
-->{{#if:{{{14|}}}|, [[File:{{DbParser|{{{14}}}|link}}.png|20px|link={{DbParser|{{{14}}}|link}}]][[{{DbParser|{{{14}}}|link}}|{{DbParser|{{{14}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{15|}}}|, {{ib|{{{15}}}}} <!-- new line for clarity
+
-->{{#if:{{{15|}}}|, [[File:{{DbParser|{{{15}}}|link}}.png|20px|link={{DbParser|{{{15}}}|link}}]][[{{DbParser|{{{15}}}|link}}|{{DbParser|{{{15}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{16|}}}|, {{ib|{{{16}}}}} <!-- new line for clarity
+
-->{{#if:{{{16|}}}|, [[File:{{DbParser|{{{16}}}|link}}.png|20px|link={{DbParser|{{{16}}}|link}}]][[{{DbParser|{{{16}}}|link}}|{{DbParser|{{{16}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{17|}}}|, {{ib|{{{17}}}}} <!-- new line for clarity
+
-->{{#if:{{{17|}}}|, [[File:{{DbParser|{{{17}}}|link}}.png|20px|link={{DbParser|{{{17}}}|link}}]][[{{DbParser|{{{17}}}|link}}|{{DbParser|{{{17}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{18|}}}|, {{ib|{{{18}}}}} <!-- new line for clarity
+
-->{{#if:{{{18|}}}|, [[File:{{DbParser|{{{18}}}|link}}.png|20px|link={{DbParser|{{{18}}}|link}}]][[{{DbParser|{{{18}}}|link}}|{{DbParser|{{{18}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{19|}}}|, {{ib|{{{19}}}}} <!-- new line for clarity
+
-->{{#if:{{{19|}}}|, [[File:{{DbParser|{{{19}}}|link}}.png|20px|link={{DbParser|{{{19}}}|link}}]][[{{DbParser|{{{19}}}|link}}|{{DbParser|{{{19}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{20|}}}|, {{ib|{{{20}}}}}}}<!-- new line for clarity
+
-->{{#if:{{{20|}}}|, [[File:{{DbParser|{{{20}}}|link}}.png|20px|link={{DbParser|{{{20}}}|link}}]][[{{DbParser|{{{20}}}|link}}|{{DbParser|{{{20}}}|link}}]]}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
Line 35: Line 35:
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}
 
-->}}
|{{#if:{{{4|}}}|{{{5}}}x {{ib|{{{4}}}}}<!-- new line for clarity  
+
|{{#if:{{{4|}}}|{{{5}}}x [[File:{{DbParser|{{{4}}}|link}}.png|20px|link={{DbParser|{{{4}}}|link}}]][[{{DbParser|{{{4}}}|link}}|{{DbParser|{{{4}}}|link}}]]<!-- new line for clarity  
-->{{#if:{{{6|}}}|, {{{7}}}x {{ib|{{{6}}}}}  <!-- new line for clarity
+
-->{{#if:{{{6|}}}|, {{{7}}}x [[File:{{DbParser|{{{6}}}|link}}.png|20px|link={{DbParser|{{{6}}}|link}}]][[{{DbParser|{{{6}}}|link}}|{{DbParser|{{{6}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{8|}}}|, {{{9}}}x {{ib|{{{8}}}}} <!-- new line for clarity
+
-->{{#if:{{{8|}}}|, {{{9}}}x [[File:{{DbParser|{{{8}}}|link}}.png|20px|link={{DbParser|{{{8}}}|link}}]][[{{DbParser|{{{8}}}|link}}|{{DbParser|{{{8}}}|link}}]] <!-- new line for clarity
-->{{#if:{{{10|}}}|, {{{11}}}x  {{ib|{{{10}}}}}<!-- new line for clarity
+
-->{{#if:{{{10|}}}|, {{{11}}}x  [[File:{{DbParser|{{{10}}}|link}}.png|20px|link={{DbParser|{{{10}}}|link}}]][[{{DbParser|{{{10}}}|link}}|{{DbParser|{{{10}}}|link}}]]<!-- new line for clarity
-->{{#if:{{{12|}}}|, {{{13}}}xx {{ib|{{{12}}}}} }} }} }} }} }}
+
-->{{#if:{{{12|}}}|, {{{13}}}xx [[File:{{DbParser|{{{12}}}|link}}.png|20px|link={{DbParser|{{{12}}}|link}}]][[{{DbParser|{{{12}}}|link}}|{{DbParser|{{{12}}}|link}}]] }} }} }} }} }}
}}
+
}} <!-- ============== 1 : block box request : table formatted============== -->
 
|1={{{!}} class="wikitable" {{#ifeq:{{{3}}}|right|style="float:right; margin-left: 4px; margin-bottom: 2px;"|{{#ifeq:{{{3}}}|left|style="float:left; margin-right: 4px; margin-bottom: 2px;"}}}}
 
|1={{{!}} class="wikitable" {{#ifeq:{{{3}}}|right|style="float:right; margin-left: 4px; margin-bottom: 2px;"|{{#ifeq:{{{3}}}|left|style="float:left; margin-right: 4px; margin-bottom: 2px;"}}}}
 
!colspan="{{#switch:{{{1}}}
 
!colspan="{{#switch:{{{1}}}
Line 139: Line 139:
 
! colspan="3"  {{!}}<big>{{DbParser|{{{1}}}|link}}</big>{{DbParser|{{{1}}}|image|40}}
 
! colspan="3"  {{!}}<big>{{DbParser|{{{1}}}|link}}</big>{{DbParser|{{{1}}}|image|40}}
 
}}}}
 
}}}}
{{!}}}  
+
{{!}}} <!-- ========== 2: vertical small list (Ctrling+CtrlBy)=============== -->
 +
|2= {{#ifeq:{{{1}}}|CtrlBy|<font style="color:DarkOrange;"><b>&#8595;&#8595;&#8595;</b></font><br/>
 +
}}{{#if:{{{4|}}}|[[File:{{Db|{{{4}}}|link}}.png|20px|link={{Db|{{{4}}}|link}}]][[{{Db|{{{4}}}|link}}|{{Db|{{{4}}}|link}}]]{{#if:{{{5|}}}|<br/>
 +
[[File:{{Db|{{{5}}}|link}}.png|20px|link={{Db|{{{5}}}|link}}]][[{{Db|{{{5}}}|link}}|{{Db|{{{5}}}|link}}]]{{#if:{{{6|}}}|<br/>
 +
[[File:{{Db|{{{6}}}|link}}.png|20px|link={{Db|{{{6}}}|link}}]][[{{Db|{{{6}}}|link}}|{{Db|{{{6}}}|link}}]]{{#if:{{{7|}}}|<br/>
 +
[[File:{{Db|{{{7}}}|link}}.png|20px|link={{Db|{{{7}}}|link}}]][[{{Db|{{{7}}}|link}}|{{Db|{{{7}}}|link}}]]{{#if:{{{8|}}}|<br/>
 +
[[File:{{Db|{{{8}}}|link}}.png|20px|link={{Db|{{{8}}}|link}}]][[{{Db|{{{8}}}|link}}|{{Db|{{{8}}}|link}}]]{{#if:{{{9|}}}|<br/>
 +
[[File:{{Db|{{{9}}}|link}}.png|20px|link={{Db|{{{9}}}|link}}]][[{{Db|{{{9}}}|link}}|{{Db|{{{9}}}|link}}]]{{#if:{{{10|}}}|<br/>
 +
[[File:{{Db|{{{10}}}|link}}.png|20px|link={{Db|{{{10}}}|link}}]][[{{Db|{{{10}}}|link}}|{{Db|{{{10}}}|link}}]]{{#if:{{{11|}}}|<br/>
 +
[[File:{{Db|{{{11}}}|link}}.png|20px|link={{Db|{{{11}}}|link}}]][[{{Db|{{{11}}}|link}}|{{Db|{{{11}}}|link}}]]{{#if:{{{12|}}}|<br/>
 +
[[File:{{Db|{{{12}}}|link}}.png|20px|link={{Db|{{{12}}}|link}}]][[{{Db|{{{12}}}|link}}|{{Db|{{{12}}}|link}}]]{{#if:{{{13|}}}|<br/>
 +
[[File:{{Db|{{{13}}}|link}}.png|20px|link={{Db|{{{13}}}|link}}]][[{{Db|{{{13}}}|link}}|{{Db|{{{13}}}|link}}]]{{#if:{{{14|}}}|<br/>
 +
[[File:{{Db|{{{14}}}|link}}.png|20px|link={{Db|{{{14}}}|link}}]][[{{Db|{{{14}}}|link}}|{{Db|{{{14}}}|link}}]]}}}}}}}}}}}}}}}}}}}}}}{{#ifeq:{{{1}}}|Ctrling|<br/><font style="color:Purple;"><b>&#8595;&#8595;&#8595;</b></font>
 +
}}
 
|Bad format request}}
 
|Bad format request}}

Revision as of 18:05, 15 May 2018

Bad format request