Difference between revisions of "Template:Itembox"

From StarMade Wiki
m
m
Line 1: Line 1:
{{#if:{{{1|}}}|{{ib|{{{1}}}}}<!--
+
<link rel="stylesheet" href="https://starmadepedia.net/wiki/Template:Infobox_blockalt" />
-->{{#if:{{{2|}}}|{{ib|{{{2}}}}} <!-- new line for clarity
+
{{#if:{{{2|}}}|{{#switch: {{{2}}}
-->{{#if:{{{3|}}}|{{ib|{{{3}}}}} <!-- new line for clarity ---- check 3 only if 2 if true
+
|Ctrling|CtrlBy|Item= {{DbSub|{{{1}}}|{{{2}}}|0}}
-->{{#if:{{{4|}}}|{{ib|{{{4}}}}} <!-- new line for clarity ---- check 4 only if 3 if true
+
|{{DbParser|{{{1}}}|{{{2}}}|{{{3}}}}}
-->{{#if:{{{5|}}}|{{ib|{{{5}}}}} <!-- new line for clarity ---- ....
+
}}|<div class="tooltipblock">[[File:{{DbParser|{{{1}}}|link}}.png|20px|link={{DbParser|{{{1}}}|link}}]]<!-- line for clarity --- if no second parameter, display icon + link
-->{{#if:{{{6|}}}|{{ib|{{{6}}}}} <!-- new line for clarity
+
--><div class="info">[[{{DbParser|{{{1}}}|link}}|{{DbParser|{{{1}}}|link}}]]</div></div>}}
-->{{#if:{{{7|}}}|{{ib|{{{7}}}}} <!-- new line for clarity
 
-->{{#if:{{{8|}}}|{{ib|{{{8}}}}} <!-- new line for clarity
 
-->{{#if:{{{9|}}}|{{ib|{{{9}}}}} <!-- new line for clarity
 
-->{{#if:{{{10|}}}|{{ib|{{{10}}}}} <!-- new line for clarity
 
-->{{#if:{{{11|}}}|{{ib|{{{11}}}}} <!-- new line for clarity
 
-->{{#if:{{{12|}}}|{{ib|{{{12}}}}} <!-- new line for clarity
 
-->{{#if:{{{13|}}}|{{ib|{{{13}}}}} <!-- new line for clarity
 
-->{{#if:{{{14|}}}|{{ib|{{{14}}}}} <!-- new line for clarity
 
-->{{#if:{{{15|}}}|{{ib|{{{15}}}}} <!-- new line for clarity
 
-->{{#if:{{{16|}}}|{{ib|{{{16}}}}} <!-- new line for clarity
 
-->{{#if:{{{17|}}}|{{ib|{{{17}}}}} <!-- new line for clarity
 
-->{{#if:{{{18|}}}|{{ib|{{{18}}}}} <!-- new line for clarity
 
-->{{#if:{{{19|}}}|{{ib|{{{19}}}}} <!-- new line for clarity
 
-->{{#if:{{{20|}}}|{{ib|{{{20}}}}}}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!-- new line for clarity
 
-->}}<!--
 
-->}}|no infos}}
 

Revision as of 19:43, 14 May 2018

<link rel="stylesheet" href="https://starmadepedia.net/wiki/Template:Infobox_blockalt" />

20px
[[|]]