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; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{2}}} | + | <div class="cubefront" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{2}}}((trunc ({{{2}}}/16))*16))*-128}}">[[file:b{{#expr: (trunc({{{2}}}/16))*16}}.png]]</div> |
− | <div class="cubeback" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{3}}} | + | <div class="cubeback" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{3}}}((trunc ({{{3}}}/16))*16))*-128}}">[[file:b{{#expr: (trunc({{{3}}}/16))*16}}.png]]</div> |
− | <div class="cubetop" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{4}}} | + | <div class="cubetop" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{4}}}((trunc ({{{4}}}/16))*16))*-128}}">[[file:b{{#expr: (trunc({{{4}}}/16))*16}}.png]]</div> |
− | <div class="cubebottom" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{5}}} | + | <div class="cubebottom" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{5}}}((trunc ({{{5}}}/16))*16))*-128}}">[[file:b{{#expr: (trunc({{{5}}}/16))*16}}.png]]</div> |
− | <div class="cubeleft" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{6}}} | + | <div class="cubeleft" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{6}}}((trunc ({{{6}}}/16))*16))*-128}}">[[file:b{{#expr: (trunc({{{6}}}/16))*16}}.png]]</div> |
− | <div class="cuberight" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{7}}} | + | <div class="cuberight" style="overflow: hidden; widht:128; height:128 ;position:absolute;left:-{{#expr: ({{{7}}}((trunc ({{{7}}}/16))*16))*-128}}">[[file:b{{#expr: (trunc({{{7}}}/16))*16}}.png]]</div> |
</div> | </div> | ||
</div> | </div> |