Difference between revisions of "Template:Itembox"

From StarMade Wiki
m
m
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|{{Db|{{{1}}}}}<!--
+
{{#if:{{{2|}}}|{{#switch: {{{2}}}
-->{{#if:{{{2|}}}|{{Db|{{{2}}}}} <!-- new line for clarity
+
|Ctrling|CtrlBy|Item= {{DbSub|{{{1}}}|{{{2}}}|0}}
-->{{#if:{{{3|}}}|{{Db|{{{3}}}}} <!-- new line for clarity ---- check 3 only if 2 if true
+
|{{DbParser|{{{1}}}|{{{2}}}|{{{3}}}}}
-->{{#if:{{{4|}}}|{{Db|{{{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|}}}|{{Db|{{{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|}}}|{{Db|{{{6}}}}} <!-- new line for clarity
 
-->{{#if:{{{7|}}}|{{Db|{{{7}}}}} <!-- new line for clarity
 
-->{{#if:{{{8|}}}|{{Db|{{{8}}}}} <!-- new line for clarity
 
-->{{#if:{{{9|}}}|{{Db|{{{9}}}}} <!-- new line for clarity
 
-->{{#if:{{{10|}}}|{{Db|{{{10}}}}} <!-- new line for clarity
 
-->{{#if:{{{11|}}}|{{Db|{{{11}}}}} <!-- new line for clarity
 
-->{{#if:{{{12|}}}|{{Db|{{{12}}}}} <!-- new line for clarity
 
-->{{#if:{{{13|}}}|{{Db|{{{13}}}}} <!-- new line for clarity
 
-->{{#if:{{{14|}}}|{{Db|{{{14}}}}} <!-- new line for clarity
 
-->{{#if:{{{15|}}}|{{Db|{{{15}}}}} <!-- new line for clarity
 
-->{{#if:{{{16|}}}|{{Db|{{{16}}}}} <!-- new line for clarity
 
-->{{#if:{{{17|}}}|{{Db|{{{17}}}}} <!-- new line for clarity
 
-->{{#if:{{{18|}}}|{{Db|{{{18}}}}} <!-- new line for clarity
 
-->{{#if:{{{19|}}}|{{Db|{{{19}}}}} <!-- new line for clarity
 
-->{{#if:{{{20|}}}|{{Db|{{{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[[|]]