Difference between revisions of "Template:3dblock"
From StarMade Wiki
m |
m |
||
Line 2: | Line 2: | ||
|0=<div class="wrapcube"><!-- | |0=<div class="wrapcube"><!-- | ||
--><div class="cube3d"><!-- | --><div class="cube3d"><!-- | ||
− | --><div class="cubefront" style="overflow:hidden;"><div style="margin-left: {{#expr: -90*({{{4}}}-((trunc({{{4}}}/16))*16)) | + | --><div class="cubefront" style="overflow:hidden;"><div style="margin-left: {{#expr: -90*({{{4}}}-((trunc({{{4}}}/16))*16))-14}}px; margin-top:-14px;">[[file:b{{#expr: (trunc({{{4}}}/16))*16}}.png|x90px|link={{Db|{{{1}}}|link}}]]</div></div><!-- |
− | --><div class="cubeback" style="overflow:hidden;"><div style="margin-left: {{#expr: -90*({{{5}}}-((trunc({{{5}}}/16))*16)) | + | --><div class="cubeback" style="overflow:hidden;"><div style="margin-left: {{#expr: -90*({{{5}}}-((trunc({{{5}}}/16))*16))-14}}px; margin-top:-14px;">[[file:b{{#expr: (trunc({{{5}}}/16))*16}}.png|x90px|link={{Db|{{{1}}}|link}}]]</div></div><!-- |
− | --><div class="cubetop" style="overflow:hidden;" ><div style=" margin-left: {{#expr: -90*({{{6}}}-((trunc({{{6}}}/16))*16)) | + | --><div class="cubetop" style="overflow:hidden;" ><div style=" margin-left: {{#expr: -90*({{{6}}}-((trunc({{{6}}}/16))*16))-14}}px; margin-top:-14px;">[[file:b{{#expr: (trunc({{{6}}}/16))*16}}.png|x90px|link={{Db|{{{1}}}|link}}]]</div></div><!-- |
− | --><div class="cubebottom" style="overflow:hidden;"><div style=" margin-left: {{#expr: -90*({{{7}}}-((trunc({{{7}}}/16))*16)) | + | --><div class="cubebottom" style="overflow:hidden;"><div style=" margin-left: {{#expr: -90*({{{7}}}-((trunc({{{7}}}/16))*16))-14}}px; margin-top:-14px;">[[file:b{{#expr: (trunc({{{7}}}/16))*16}}.png|x90px|link={{Db|{{{1}}}|link}}]]</div></div> |
{{#switch:{{Db|{{{1}}}|BlockStyle}}| | {{#switch:{{Db|{{{1}}}|BlockStyle}}| | ||
− | |0=<div class="cubeleft" style="overflow:hidden;"><div style=" margin-left: {{#expr: -90*({{{8}}}-((trunc({{{8}}}/16))*16)) | + | |0=<div class="cubeleft" style="overflow:hidden;"><div style=" margin-left: {{#expr: -90*({{{8}}}-((trunc({{{8}}}/16))*16))-14}}px; margin-top:-14px;">[[file:b{{#expr: (trunc({{{8}}}/16))*16}}.png|x90px|link={{Db|{{{1}}}|link}}]]</div></div><!-- |
− | --><div class="cuberight" style="overflow:hidden;"><div style=" margin-left: {{#expr: -90*({{{9}}}-((trunc({{{9}}}/16))*16)) | + | --><div class="cuberight" style="overflow:hidden;"><div style=" margin-left: {{#expr: -90*({{{9}}}-((trunc({{{9}}}/16))*16))-14}}px; margin-top:-14px; ">[[file:b{{#expr: (trunc({{{9}}}/16))*16}}.png|x90px|link={{Db|{{{1}}}|link}}]]</div></div> |
− | |6=<div class="cubeleft6" style="overflow:hidden;"><div style=" margin-left: {{#expr: -90*({{{8}}}-((trunc({{{8}}}/16))*16)) | + | |6=<div class="cubeleft6" style="overflow:hidden;"><div style=" margin-left: {{#expr: -90*({{{8}}}-((trunc({{{8}}}/16))*16))-14}}px; margin-top:-14px;">[[file:b{{#expr: (trunc({{{8}}}/16))*16}}.png|x90px|link={{Db|{{{1}}}|link}}]]</div></div><!-- |
− | --><div class="cuberight6" style="overflow:hidden;"><div style=" margin-left: {{#expr: -90*({{{9}}}-((trunc({{{9}}}/16))*16)) | + | --><div class="cuberight6" style="overflow:hidden;"><div style=" margin-left: {{#expr: -90*({{{9}}}-((trunc({{{9}}}/16))*16))-14}}px; margin-top:-14px;">[[file:b{{#expr: (trunc({{{9}}}/16))*16}}.png|x90px|link={{Db|{{{1}}}|link}}]]</div></div>}} <!-- |
--></div> | --></div> | ||
</div> | </div> | ||
|1=not used yet | |1=not used yet | ||
}} | }} |