Difference between revisions of "Template:Crafting grid"
From ComputerCraft Wiki
Line 1: | Line 1: | ||
− | <div style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:256px; height:114px; position:relative;"> | + | <includeonly> |
+ | <div style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:256px; height:114px; position:relative; clear: both;"> | ||
<div style="left:0px; top:0px; width:256px; height:114px;">[[Image:Empty-crafting-table.png|243px|link=|alt=]]</div> | <div style="left:0px; top:0px; width:256px; height:114px;">[[Image:Empty-crafting-table.png|243px|link=|alt=]]</div> | ||
− | {{#if:{{{A1|}}}|<div style="left:6px; top: | + | {{#if:{{{A1|}}}|<div style="left:6px; top:-4px; 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>}} | ||
Line 48: | Line 49: | ||
}} | }} | ||
</div></div> | </div></div> | ||
+ | </includeonly> | ||
<noinclude> | <noinclude> | ||
+ | This is the standard Minecraft crafting grid. The code is borrowed from the IndustrialCraft wiki. | ||
+ | |||
+ | Usage:<br /> | ||
+ | <nowiki> | ||
+ | {{Crafting grid | ||
+ | |A1=console | ||
+ | |B3=console | ||
+ | |Output=console | ||
+ | }} | ||
+ | </nowiki> | ||
+ | |||
+ | Results in: | ||
+ | |||
{{Crafting grid | {{Crafting grid | ||
|A1=console | |A1=console | ||
+ | |B3=console | ||
|Output=console | |Output=console | ||
}} | }} | ||
+ | |||
+ | The name of the images should be in the form of "grid_<name of the item>.png". | ||
</noinclude> | </noinclude> |
Revision as of 21:29, 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".