Difference between revisions of "Template:3dblock"
From StarMade Wiki
m |
m |
||
Line 1: | Line 1: | ||
− | {{#switch:{{{1}}} <!-- add a parameters for after use, as they was making rewrite all code for it further --> | + | {{#switch:{{{1}}} <!-- add a parameters for after use, as they was making rewrite all code for it further :: $1 format, $2 name --> |
|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: -80*({{{2}}}-((trunc({{{2}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{2}}}/16))*16}}.png|x80px]]</div></div> | + | <div class="cubefront" style="overflow:hidden;"><div style="margin-left: {{#expr: -80*({{{2}}}-((trunc({{{2}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{2}}}/16))*16}}.png|x80px|link={{Db|{{{2}}}|link}}]]</div></div> |
− | <div class="cubeback" style="overflow:hidden;"><div style="margin-left: {{#expr: -80*({{{3}}}-((trunc({{{3}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{3}}}/16))*16}}.png|x80px]]</div></div> | + | <div class="cubeback" style="overflow:hidden;"><div style="margin-left: {{#expr: -80*({{{3}}}-((trunc({{{3}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{3}}}/16))*16}}.png|x80px|link={{Db|{{{2}}}|link}}]]</div></div> |
− | <div class="cubetop" style="overflow:hidden;" ><div style=" margin-left: {{#expr: -80*({{{4}}}-((trunc({{{4}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{4}}}/16))*16}}.png|x80px]]</div></div> | + | <div class="cubetop" style="overflow:hidden;" ><div style=" margin-left: {{#expr: -80*({{{4}}}-((trunc({{{4}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{4}}}/16))*16}}.png|x80px|link={{Db|{{{2}}}|link}}]]</div></div> |
− | <div class="cubebottom" style="overflow:hidden;"><div style=" margin-left: {{#expr: -80*({{{5}}}-((trunc({{{5}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{5}}}/16))*16}}.png|x80px]]</div></div> | + | <div class="cubebottom" style="overflow:hidden;"><div style=" margin-left: {{#expr: -80*({{{5}}}-((trunc({{{5}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{5}}}/16))*16}}.png|x80px|link={{Db|{{{2}}}|link}}]]</div></div> |
− | <div class="cubeleft" style="overflow:hidden;"><div style=" margin-left: {{#expr: -80*({{{6}}}-((trunc({{{6}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{6}}}/16))*16}}.png|x80px]]</div></div> | + | <div class="cubeleft" style="overflow:hidden;"><div style=" margin-left: {{#expr: -80*({{{6}}}-((trunc({{{6}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{6}}}/16))*16}}.png|x80px|link={{Db|{{{2}}}|link}}]]</div></div> |
− | <div class="cuberight" style="overflow:hidden;"><div style=" margin-left: {{#expr: -80*({{{7}}}-((trunc({{{7}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{7}}}/16))*16}}.png|x80px]]</div></div> | + | <div class="cuberight" style="overflow:hidden;"><div style=" margin-left: {{#expr: -80*({{{7}}}-((trunc({{{7}}}/16))*16))}}px;">[[file:b{{#expr: (trunc({{{7}}}/16))*16}}.png|x80px|link={{Db|{{{2}}}|link}}]]</div></div> |
</div> | </div> | ||
− | </div><br/><br/><br/> | + | </div><br/><br/><br/><br/><br/><br/> |
|1=not used yet | |1=not used yet | ||
}} | }} |