Jump to content

Template:Crafting: Difference between revisions

288 bytes removed ,  3 March 2023
m
Made the number of result items into a letter. Still need to add a link to the letter if page name is different from result item.
imported>Ttv pedro270707
mNo edit summary
imported>Ttv pedro270707
m (Made the number of result items into a letter. Still need to add a link to the letter if page name is different from result item.)
Line 83: Line 83:
}}
}}
{{#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;">
<div style="left:222px; top:64px; width:16px; height:21px; position:absolute;user-select:none;" data-mctitle="{{#if: {{{nameRESULT|}}} | {{{nameRESULT|}}} | {{{RESULT}}} }}" class="minecraft-item">
[[File:GridNumbersCSS.png|160x16px]]
<div class="pixelated c-f" style="right:2px; bottom:-10px; position:absolute; text-shadow: 0.125em 0.125em 0 #404040">
{{{AMOUNT}}}
</div>
</div>
</div>
</div>
<div style="left:222px; top:64px; width:16px; height:21px; position:absolute; overflow:hidden;">
|
<div class="pixelated" style="left:{{#expr:-16 * (({{{AMOUNT|}}} - 1) mod 10)}}px; top:-7px; width:160px; height:16px; position:absolute;">
[[File:GridNumbersCSS.png|160x16px|link={{#ifeq: {{PAGENAME}} | {{{RESULT}}} | |{{{RESULT}}}}}]]
</div>
</div>
|<div></div>
}}
}}
</div></includeonly><noinclude>{{Crafting|4=Crude Steel|5=Crude Steel|6=Crude Steel|RESULT=Steel Ingot}}</noinclude>
</div></includeonly><noinclude>{{Crafting|4=Crude Steel|5=Crude Steel|6=Crude Steel|RESULT=Steel Ingot|AMOUNT=4}}</noinclude>