Difference between revisions of "Template:Itembox"

From StarMade Wiki
m
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<link rel="stylesheet" href="https://starmadepedia.net/wiki/Template:Infobox_blockalt" />
 
 
{{#if:{{{2|}}}|{{#switch: {{{2}}}
 
{{#if:{{{2|}}}|{{#switch: {{{2}}}
 
|Ctrling|CtrlBy|Item= {{DbSub|{{{1}}}|{{{2}}}|0}}
 
|Ctrling|CtrlBy|Item= {{DbSub|{{{1}}}|{{{2}}}|0}}
 
|{{DbParser|{{{1}}}|{{{2}}}|{{{3}}}}}
 
|{{DbParser|{{{1}}}|{{{2}}}|{{{3}}}}}
}}|<div class="tooltipblock">[[File:{{DbParser|{{{1}}}|link}}.png|20px|link={{DbParser|{{{1}}}|link}}]]<!-- line for clarity  --- if no second parameter, display icon + link
+
}}|<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
--><div class="info">[[{{DbParser|{{{1}}}|link}}|{{DbParser|{{{1}}}|link}}]]</div></div>}}
+
-->[[{{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>}}

Latest revision as of 22:26, 14 May 2018

20px[[|]]