Difference between revisions of "Template:Crafting grid"

From ComputerCraft Wiki
Jump to: navigation, search
m (Un-breaking the template.)
 
(15 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: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:Empty-crafting-table.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><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.