Template:Crafting: Difference between revisions

From BTA-Mirror
imported>Azurelmao
No edit summary
imported>Azurelmao
No edit summary
Line 22: Line 22:
{{#if: {{{RESULT|}}}|<div style="position: absolute; left: 202px; top: 50px">[[File:Grid_{{{RESULT}}}.png]]</div>}}
{{#if: {{{RESULT|}}}|<div style="position: absolute; left: 202px; top: 50px">[[File:Grid_{{{RESULT}}}.png]]</div>}}
{{#if: {{{RESULTB|}}}|<div style="position: absolute; left: 205px; top: 51px">[[File:Grid_{{{RESULTB}}}.png|26px]]</div>}}
{{#if: {{{RESULTB|}}}|<div style="position: absolute; left: 205px; top: 51px">[[File:Grid_{{{RESULTB}}}.png|26px]]</div>}}
{{#if:{{{AMOUNT|}}}|
{{#if:{{{AMOUNT|}}}|<div style="left:210px; top:64px; width:16px; height:21px; position:absolute; overflow:hidden;"><div style="left:{{#expr:-16 * (floor({{{AMOUNT|}}}/10) - 1)}}px; top:-7px; width:160px; height:16px; position:absolute;">[[File:GridNumbersCSS.png|160x16px]]</div></div><div style="left:222px; top:64px; width:16px; height:21px; position:absolute; overflow:hidden;"><div style="left:{{#expr:-16 * (({{{AMOUNT|}}} - 1) mod 10)}}px; top:-7px; width:160px; height:16px; position:absolute;">[[File:GridNumbersCSS.png|160x16px]]</div></div>}}
<div style="left:210px; top:64px; width:16px; height:21px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{AMOUNT|}}}/10) - 1)}}px; top:-7px; width:160px; height:16px; position:absolute;">
[[File:GridNumbersCSS.png|160x16px]]
</div>
</div>
<div style="left:222px; top:64px; width:16px; height:21px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{AMOUNT|}}} - 1) mod 10)}}px; top:-7px; width:160px; height:16px; position:absolute;">
[[File:GridNumbersCSS.png|160x16px]]
</div>
</div>
}}
</div></includeonly>
</div></includeonly>

Revision as of 16:01, 6 October 2022