Difference between revisions of "Template:Crafting grid"

From ComputerCraft Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<div style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:256px; height:114px; position:relative; clear: both;">
+
<div style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:256px; height:132px; position:relative;">
<div style="left:0px; top:0px; width:256px; height:114px;">[[Image:Empty-crafting-table.png|256px|link=|alt=]]</div>
+
<div style="left:0px; top:0px; width:256px; height:132px;">[[Image:Crafting_GUI.png|256px|link=|alt=]]</div>
  
{{#if:{{{A1|}}}|<div style="left:14px; top:0px; width:32px; height:32px; position:absolute;">
+
{{#if:{{{A1|}}}|<div style="left:14px; top:9px; width:32px; height:32px; position:absolute;">
 
[[Image:{{#if:{{{A1-image|}}}|{{{A1-image}}}|Grid_{{{A1}}}.png}}|32px|link={{#if:{{{A1-link|}}}|{{{A1-link}}}|{{{A1}}}}}|alt={{{A1}}}]]
 
[[Image:{{#if:{{{A1-image|}}}|{{{A1-image}}}|Grid_{{{A1}}}.png}}|32px|link={{#if:{{{A1-link|}}}|{{{A1-link}}}|{{{A1}}}}}|alt={{{A1}}}]]
 
</div>}}
 
</div>}}
{{#if:{{{A2|}}}|<div style="left:14px; top:36px; width:32px; height:32px; position:absolute;">
+
{{#if:{{{A2|}}}|<div style="left:14px; top:45px; width:32px; height:32px; position:absolute;">
 
[[Image:{{#if:{{{A2-image|}}}|{{{A2-image}}}|Grid_{{{A2}}}.png}}|32px|link={{#if:{{{A2-link|}}}|{{{A2-link}}}|{{{A2}}}}}|alt={{{A2}}}]]
 
[[Image:{{#if:{{{A2-image|}}}|{{{A2-image}}}|Grid_{{{A2}}}.png}}|32px|link={{#if:{{{A2-link|}}}|{{{A2-link}}}|{{{A2}}}}}|alt={{{A2}}}]]
 
</div>}}
 
</div>}}
{{#if:{{{A3|}}}|<div style="left:14px; top:72px; width:32px; height:32px; position:absolute;">
+
{{#if:{{{A3|}}}|<div style="left:14px; top:81px; width:32px; height:32px; position:absolute;">
 
[[Image:{{#if:{{{A3-image|}}}|{{{A3-image}}}|Grid_{{{A3}}}.png}}|32px|link={{#if:{{{A3-link|}}}|{{{A3-link}}}|{{{A3}}}}}|alt={{{A3}}}]]
 
[[Image:{{#if:{{{A3-image|}}}|{{{A3-image}}}|Grid_{{{A3}}}.png}}|32px|link={{#if:{{{A3-link|}}}|{{{A3-link}}}|{{{A3}}}}}|alt={{{A3}}}]]
 
</div>}}
 
</div>}}
Line 48: Line 48:
 
</div>
 
</div>
 
}}
 
}}
</div></div>
+
</div></div>{{#if:{{{nobreak|}}}||{{-}}}}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 21:36, 12 March 2012


This is the standard Minecraft crafting grid. The code is borrowed from the IndustrialCraft wiki.

Usage:

 {{Crafting grid
 |A1=console
 |B3=console
 |Output=console
 }}
 

Results in:








The name of the images should be in the form of "grid_<name of the item>.png".