This page is protected and can only be modified by administrators

Template:Table/Crafting

From Aether Project Wiki
(Redirected from Template:Crafting)
Jump to navigation Jump to search
[view | edit | history | purge]Documentation
Lua logo.svg
This template uses Module:Crafting, a script written in Lua.

Using this template, you can create tables like those commonly used in the “Crafting” and “Crafting ingredient” sections of articles about blocks and items. It can be used similarly to {{Grid/Crafting Table}}, except it creates the table for you.

By default, the table generates with 3 columns: Name, Ingredients, and the main column containing {{Grid/Crafting Table}}. You can set the parameter {{{showname=1}}} or {{{showname=0}}} in the first template of the table to show or hide the Name column. To group multiple crafting templates into one table, you also need to set {{{head=1}}} in the first template of the table, and {{{foot=1}}} in the last. A 4th column called Description can be added with {{{showdescription=1}}} and {{{description=The description for the recipe}}}.

Displaying a shapeless recipe can be accomplished by simply leaving out the grid positions for all ingredients. If the recipe is shapeless and uses less than 5 slots, the template will automatically arrange the items into the bottom-left square, indicating that the recipe can be used in the inventory crafting area.

Example usage:

{{Crafting
  |head=1
  |name=[[mcw:Torch|Torch]]
  |ingredients=[[mcw:Coal|Coal]] +<br>[[mcw:Stick|Stick]]
  |B2=Coal
  |B3=Stick
  |Output=Torch,4
  |showdescription=1
  |description=The description cell can contain ''formatted'' text.
}}
{{Crafting
  |name=[[mcw:Fire Charge|Fire Charge]]
  |ingredients=[[mcw:Blaze Powder|Blaze Powder]] +<br>[[mcw:Gunpowder|Gunpowder]] +<br>[[mcw:Coal|Coal]]
  |Blaze Powder
  |Gunpowder
  |Coal
  |Output=Fire Charge,3
  }}
{{Crafting
  |name=[[mcw:Block of Coal|Block of Coal]]
  |ingredients=[[mcw:Coal|Coal]]
  |A1= Coal |B1= Coal |C1= Coal
  |A2= Coal |B2= Coal |C2= Coal
  |A3= Coal |B3= Coal |C3= Coal
  |Output=Block of Coal
  |Upcoming=Java Edition 1.6.1
}}
{{Crafting
  |name=[[mcw:Pickaxe|Pickaxe]]
  |ingredients=[[mcw:Stick|Stick]]s +<br>[[mcw:Planks|Planks]] or<br> [[mcw:Cobblestone|Cobblestone]] or<br>[[mcw:Iron Ingot|Iron Ingot]]s or<br>[[mcw:Gold Ingot|Gold Ingot]]s or<br>[[mcw:Diamond|Diamond]]s
  |A1=Oak Planks; Cobblestone; Iron Ingot; Gold Ingot; Diamond 
  |B1=Oak Planks; Cobblestone; Iron Ingot; Gold Ingot; Diamond 
  |C1=Oak Planks; Cobblestone; Iron Ingot; Gold Ingot; Diamond 
  |B2=Stick
  |B3=Stick
  |Output=Wooden Pickaxe; Stone Pickaxe; Iron Pickaxe; Golden Pickaxe; Diamond Pickaxe
  |foot=1
}}

produces:

Name Ingredients Crafting recipe Description
Torch Coal +
Stick
The description cell can contain formatted text.
Fire Charge Blaze Powder +
Gunpowder +
Coal
Block of Coal Coal

Pickaxe Sticks +
Planks or
Cobblestone or
Iron Ingots or
Gold Ingots or
Diamonds

[view | edit | history | purge]The above documentation is transcluded from Template:Table/Crafting/doc.