Difference between revisions of "Template:Itembox"

From StarMade Wiki
m
m
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|{{ib|{{{1}}}}}\n<!--
+
{{#if:{{{2|}}}|{{#switch: {{{2}}}
-->{{#if:{{{2|}}}|{{ib|{{{2}}}}}\n <!-- new line for clarity
+
|Ctrling|CtrlBy|Item= {{DbSub|{{{1}}}|{{{2}}}|0}}
-->{{#if:{{{3|}}}|{{ib|{{{3}}}}} <!-- new line for clarity ---- check 3 only if 2 if true
+
|{{DbParser|{{{1}}}|{{{2}}}|{{{3}}}}}
-->{{#if:{{{4|}}}|{{ib|{{{4}}}}} <!-- new line for clarity ---- check 4 only if 3 if true
+
}}|<div onmouseover="document.getElementById('InfoDbBox').style.visibility='visible'" onmouseout="document.getElementById('InfoDbBox').style.visibility='hidden'">[[File:{{DbParser|{{{1}}}|link}}.png|20px|link={{DbParser|{{{1}}}|link}}]]<!-- line for clarity --- if no second parameter, display icon + link
-->{{#if:{{{5|}}}|{{ib|{{{5}}}}} <!-- new line for clarity ---- ....
+
-->[[{{DbParser|{{{1}}}|link}}|{{DbParser|{{{1}}}|link}}]]<div id="InfoDbBox" style="visibility: hidden; position: absolute; z-index: 1; top: -5px; left: 105%;" >{{blockbox|1|{{{1}}}}}</div></div>}}
-->{{#if:{{{6|}}}|{{ib|{{{6}}}}} <!-- new line for clarity
 
-->{{#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}}
 

Latest revision as of 22:26, 14 May 2018

20px[[|]]