Difference between revisions of "Template:Crafting"
From ComputerCraft Wiki
Magiczocker (Talk | contribs) m |
Magiczocker (Talk | contribs) |
||
Line 7: | Line 7: | ||
#if: {{{C2|}}} | <div style="top:36px;left:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{C2}}}.png|link={{#if:{{{C2-link|}}}|{{{C2-link}}}|{{{C2}}}}}|32px]]</div> }}{{ | #if: {{{C2|}}} | <div style="top:36px;left:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{C2}}}.png|link={{#if:{{{C2-link|}}}|{{{C2-link}}}|{{{C2}}}}}|32px]]</div> }}{{ | ||
#if: {{{Output|}}} | <div style="top:36px;left:188px;width:32px;height:32px;position:absolute">[[File:Grid {{{Output}}}.png|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|32px]]</div> }}{{ | #if: {{{Output|}}} | <div style="top:36px;left:188px;width:32px;height:32px;position:absolute">[[File:Grid {{{Output}}}.png|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|32px]]</div> }}{{ | ||
+ | #if:{{{OA|}}} | <span style="left:196px; top:54px; width:16px; height:16px; position:absolute; overflow:hidden;"><!-- | ||
+ | --><span style="left:{{#expr:-16 * (floor({{{OA}}}/10) - 1)}}px; top:-5px; width:160px; height:16px; position:absolute;"><!-- | ||
+ | -->[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]<!-- | ||
+ | --></span></span><span style="left:208px; top:54px; width:16px; height:16px; position:absolute; overflow:hidden;"><!-- | ||
+ | --><span style="left:{{#expr:-16 * (({{{OA}}} - 1) mod 10)}}px; top:-5px; width:160px; height:16px; position:absolute;"><!-- | ||
+ | -->[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]<!-- | ||
+ | --></span><!-- | ||
+ | --></span>}}{{ | ||
#if: {{{A3|}}} | <div style="top:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{A3}}}.png|link={{#if:{{{A3-link|}}}|{{{A3-link}}}|{{{A3}}}}}|32px]]</div> }}{{ | #if: {{{A3|}}} | <div style="top:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{A3}}}.png|link={{#if:{{{A3-link|}}}|{{{A3-link}}}|{{{A3}}}}}|32px]]</div> }}{{ | ||
#if: {{{B3|}}} | <div style="top:72px;left:36px;width:32px;height:32px;position:absolute">[[File:Grid {{{B3}}}.png|link={{#if:{{{B3-link|}}}|{{{B3-link}}}|{{{B3}}}}}|32px]]</div> }}{{ | #if: {{{B3|}}} | <div style="top:72px;left:36px;width:32px;height:32px;position:absolute">[[File:Grid {{{B3}}}.png|link={{#if:{{{B3-link|}}}|{{{B3-link}}}|{{{B3}}}}}|32px]]</div> }}{{ | ||
#if: {{{C3|}}} | <div style="top:72px;left:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{C3}}}.png|link={{#if:{{{C3-link|}}}|{{{C3-link}}}|{{{C3}}}}}|32px]]</div> | #if: {{{C3|}}} | <div style="top:72px;left:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{C3}}}.png|link={{#if:{{{C3-link|}}}|{{{C3-link}}}|{{{C3}}}}}|32px]]</div> | ||
}}</div></div></includeonly><noinclude>{{Documentation}}</noinclude> | }}</div></div></includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 06:44, 4 August 2020
This is the standard Minecraft crafting grid.
The name of the images should be in the form of "grid_<name of the item>.png". E.g. the Computer image is named "Grid_Computer.png". Clicking on it will go to the page Computer.
usage:
{{Crafting |A1=Computer |B3=Disk_Drive |Output=Computer }}
result: