Difference between revisions of "Template:Itembox"
From StarMade Wiki
m |
m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{#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 | + | }}|<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 |
− | -->[[{{DbParser|{{{1}}}|link}}|{{DbParser|{{{1}}}|link}}]]<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>}} |