Template:Crafts/doc

This is a documentation only page, it documents the sub-pages:
 * template:crafts top
 * template:crafts row
 * template:crafts first sub row
 * template:crafts sub row
 * template:crafts bottom

Protection and Evolution
The totality of "Crafts" is protected. This is because it is not a beginner friendly template, and even just touching it can have big impacts on the wiki. This does not mean the tables cannot evolve! If you have any suggestion, those in the know-how can easily change the layout of the table. Feel free to suggest in the talk page.

Usage
This template is for creating tables for the crafting recipes of both Constructor and Food Processor. Please see below how to create crafting recipe tables with this template and what all parameters means.

Basic format of the table
 :Opens the table. :A row. ... :A row. :Closes the table.

A table must contain and  to denote the start and end of the table. In between there can be any number of.

Formatting each row in
All attributes under template. 


 * top: is a switch to indicate if it is the first row of the table under the heading. This switch add or remove the separator line between the headings and the first row. It is not recommended to use this in current design standards.
 * image: is a switch to indicate that the formula element images should be shown. This switch is for automatically add image of the listed items if the item name and image name match the template parameters. To automatically add image value should be 'image=y'.
 * tool: is an optional attribute used to create a side cell "crafting station".That sell lists the Crafting stations where item can be created. If the table listed many item which are crafted in the same crafting station only the first of them should have the 'tool' parameter with appropriate 'toolspan' attribute to include all the rows of items. please use template:Item link to insert tool images and link(examples are given in example section). 
 * toolspan: is a optional attribute which must be accompanied with "tool" attribute. This attribute defines rowspan of the crafting station. Count all the rows after table generated, not the number of.
 * result: The products. If "image=y" is used it will show the image of the item.
 * resultamoun": The amount of created product. Leave this field blank if the amount is 1.
 * itemX: The ingredients of the product.
 * amountX: The amount of item necessary. Leave this field blank if the amount is 1.

Anonymous parameter version (recommended)
A version of the template is provided with anonymous parameters. The advantages are:
 * 1) Requires less typing
 * 2) Because the objects are not explicitly indexed, changing the order of the items in the formula becomes as easy as moving around the parameters.

It is used just like the original, but with parameter names omitted. Note that to avoid confusion "result" has to be explicit. For amounts that are equal to 1, leave the field blank, but do put an empty "|". See the example below.



Example of usage
Output

Output

History and Images
Historically, this template allowed you to choose whether or not images would be displayed. Because the template was systematically used with image, the actual support for disabling the images has been removed from code, to reduce server load. Please feel free to ask for this functionality if you want it.