Difference between revisions of "Template:Crafting grid"

From ComputerCraft Wiki
Jump to: navigation, search
m (Un-breaking the template.)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
<div style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:256px; height:132px; position:relative;">
 
<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:132px;">[[Image:Crafting_GUI.png|256px|link=|alt=]]</div>
+
<div style="left:0px; top:0px; width:256px; height:132px;">[[Image:Empty-crafting-table.png|256px|link=|alt=]]</div>
  
 
{{#if:{{{A1|}}}|<div style="left:14px; top:9px; width:32px; height:32px; position:absolute;">
 
{{#if:{{{A1|}}}|<div style="left:14px; top:9px; width:32px; height:32px; position:absolute;">
Line 48: Line 48:
 
</div>
 
</div>
 
}}
 
}}
</div></div>{{#if:{{{nobreak|}}}||{{-}}}}
+
</div></div><br style="clear: both" />
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
Line 56: Line 56:
 
  <nowiki>
 
  <nowiki>
 
  {{Crafting grid
 
  {{Crafting grid
  |A1=console
+
  |A1=Computer
  |B3=console
+
  |B3=Disk_Drive
  |Output=console
+
  |Output=Computer
 
  }}
 
  }}
 
  </nowiki>
 
  </nowiki>
Line 65: Line 65:
  
 
{{Crafting grid
 
{{Crafting grid
|A1=console
+
|A1=Computer
|B3=console
+
|B3=Disk_Drive
|Output=console
+
|Output=Computer
 
}}
 
}}
 
+
<br />
 
The name of the images should be in the form of "grid_<name of the item>.png".
 
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.
 
</noinclude>
 
</noinclude>

Latest revision as of 06:16, 3 June 2013


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

Usage:

 {{Crafting grid
 |A1=Computer
 |B3=Disk_Drive
 |Output=Computer
 }}
 

Results in:


Computer



Disk_Drive



Computer




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.