Template:Grid/Crafting

From Mo' Creatures Wiki
Jump to: navigation, search
MediaWiki logo.png
This template uses a complex MediaWiki Script, guided by Extensions. Please see wp:MediaWiki and mw:Extensions to learn more.
Name Ingredients Crafting recipe
{{{Output}}}
[[{{{Ingredients}}}]]


[view | edit | history | purge]Documentation

Usage[edit source]

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}}. Neverthless, this template was coded flawlessly well that the name column is not present at the right times. To group multiple crafting templates into one table, you need to set {{{Open=1}}} in the first template of the table, and {{{Close=1}}} in the last, only the first template will be {{Crafting}}, the rest, including the last, will be {{Crafting/body}}. A 4th column called Description can be added with {{{Description=The description for the recipe}}}.

Displaying a shapeless recipe can be accomplished by simply setting {{{Shapeless=1}}}.

Example usage:

{{Grid/Crafting
|Ingredients = Caramel Glass
|A2 = Caramel Glass
|A3 = Caramel Glass
|B2 = Caramel Glass
|B3 = Caramel Glass
|C2 = Caramel Glass
|C3 = Caramel Glass
|Output = Caramel Glass Pane,16 [The output amount, only numbers 2-999 will be supported, letters and anything else will not be displayed!]
|Open = 1 [This one is used as an acceptance to the next template]
}}
{{Grid/Crafting/body
|Ingredients = Gummy
|Shapeless = Yes
|B2 = Gummy
|Output = Gummy Ball
}}
{{Grid/Crafting/body
|Ingredients = PEZ,Marshmallow Log,Caramel Glass
|A1 = PEZ
|A2 = Marshmallow Log
|A3 = PEZ
|B1 = Marshmallow Log
|B2 = Caramel Glass
|B3 = Marshmallow Log
|C1 = PEZ
|C2 = Marshmallow Log
|C3 = PEZ
|Output = Alchemy Mixer
}}
{{Grid/Crafting/body
|Ingredients = Marshmallow Log
|Shapeless = Yes
|B2 = Marshmallow Log
|Output = Marshmallow Planks,4
|Close = 1 [This one is used as a closing]
}}

Produces:

Name Ingredients Crafting recipe
Caramel Glass Pane


Gummy Ball
Alchemy Mixer

PEZ +
{{#pad:[|2|[}}Marshmallow Log]] +
{{#pad:[|2|[}}Caramel Glass]]

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