From Mo' Creatures Wiki
Jump to: navigation, search
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information
Lua logo.svg
This template uses Module:Crafting, a script written in Lua.
Please see Lua and mw:Extension:Scribunto to learn more.

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 {{Crafting Table}}, except it creates the table for you.

By default, the table generates with 3 columns: Name, Ingredients, and the main column containing {{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:

  |ingredients=Any [[mcw:Wood Planks|Wood Planks]], [[mcw:Iron Ingot|Iron Ingot]] or [[mcw:Diamond|Diamond]] +<br>[[mcw:Lead|Lead]]
  |A1=Any Wood Planks; Iron Ingot; Diamond
  |A2=Any Wood Planks; Iron Ingot; Diamond
  |B3=Any Wood Planks; Iron Ingot; Diamond
  |C3=Any Wood Planks; Iron Ingot; Diamond
  |A3=Any Wood Planks; Iron Ingot; Diamond
  |Output=Wood Tusks, Iron Tusks, Diamond Tusks
  |description=The description cell can contain ''formatted'' text.
  |ingredients=Oak [[mcw:Wood Planks|Wood Planks]] +<br>[[mcw:Iron Ingot|Iron Ingot]] +<br>Matching [[mcw:Wool|Wool]]
  |A1=Oak Wood Planks
  |B1=Oak Wood Planks
  |C1=Oak Wood Planks
  |name=[[Kitty Bed]]
  |A2=Oak Wood Planks
  |B2=Wool; Orange Wool; Red Wool; Purple Wool; Blue Wool; Cyan Wool; Pink Wool; Light Blue Wool; Brown Wool; Black Wool; Yellow Wool; Lime Wool; Light Gray Wool; Gray Wool; Magenta Wool; Green Wool 
  |C2=Oak Wood Planks
  |A3=Iron Ingot
  |Output=White Kitty Bed; Orange Kitty Bed; Red Kitty Bed; Purple Kitty Bed; Blue Kitty Bed; Cyan Kitty Bed; Pink Kitty Bed; Light Blue Kitty Bed; Brown Kitty Bed; Black Kitty Bed; Yellow Kitty Bed; Lime Kitty Bed; Silver Kitty Bed; Gray Kitty Bed; Magenta Kitty Bed; Green Kitty Bed
  |name=[[Ogre Lair Wood Planks]]
  |ingredients=Ogre Lair Log
  |B2=Ogre Lair Log
  |Output=Ogre Lair Wood Planks,4
  |name=[[Sugar Lump]]
  |Output=Sugar Lump


Name Ingredients Crafting recipe Description
Tusks Any Wood Planks, Iron Ingot or Diamond +

Wood TusksIron TusksDiamond Tusks
The description cell can contain formatted text.
Kitty Bed Oak Wood Planks +
Iron Ingot +
Matching Wool
Ogre Lair Wood Planks Ogre Lair Log
Sugar Lump Sugar

Sugar Lump