Empyrion: Galactic Survival Wiki
Advertisement

DO NOT USE THE CRAFTS TEMPLATE DIRECTLY! see template:Crafts

Template-info.png Documentation

This is a documentation only page, it documents the sub-pages:

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.

Table formatting

Basic format of the table

 {{crafts top}}:Opens the table.
 {{crafts row}}:A row.
 ...
 {{crafts row}}:A row.
 {{crafts bottom}}:Closes the table.

A table must contain {{crafts top}} and {{crafts bottom}} to denote the start and end of the table. In between there can be any number of{{crafts row}}.

Formatting each row in {{crafts row}}

All attributes under {{crafts row}} template.

{{crafts row |top= |image=
 | tool =
 | toolspan =

 | result =          | resultamount = 
 | item1 =           | amount1 =  
 | item2 =           | amount2 =  
 | item3 =           | amount3 =  
 | item4 =           | amount4 = 
 | item5 =           | amount5 = 
}}
  • 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 {{crafts row}}.
  • 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.

{{crafts row |top= |image=
 | tool =
 | toolspan =

 | result=        | 
 |                | 
 |                | 
 |                | 
 |                | 
 |                | 
}}

Example of usage

Single Item
Full Version Anonymous parameter version
{{crafts top}}

{{crafts row |image=y
 | tool ={{item link|Large Constructor}}
 | toolspan = 1

 | result  = Iron Ingot | result amount = 10
 | Item1   = Iron Ore   | amount1       = 5
}}

{{crafts bottom}}
{{crafts top}}

{{crafts row |image=y 
 | tool ={{item link|Large Constructor}}
 | toolspan = 1

 | result  = Iron Ingot | 10
 | Iron Ore | 5
}}

{{crafts bottom}}

Output

Template:Crafts first sub row

Template:Crafts bottom


Multiple Item Single constructor
Full Version Anonymous parameter version
{{crafts top}}

{{crafts row |image=y
 | tool ={{item link|Food Processor|size=150x150px}}
 | toolspan =13

 | result = Cheese| 
 | item1 =  Mule Milk| 

}}
{{crafts row |image=y
 | result = Kavae Coffee| 
 | item1 =  Kavae Beans| 
 | item2=   Purified Water|
}}

{{crafts row |image=y
 | result = Canned Vegetables |
 | item1 =   Tomatoes| 
 | item2=   Space Durians|
 | item3=   Pumpkins|
 | item4=   Purified Water|
 | item5=    Metal Plate|
 }}

{{crafts row |image=y
 | result = Veggie Burger| 
 | item1 =   Bread| 
 | item2=   Textured Plant Protein|
 | item3=   Opuntia Cactus Spears| amount3 = 2
 | item4=   Cheese| amount4 = 2
}}

{{crafts row |image=y
 | result = Salami| 
 | item1 =  Raw Meat| 
}}

{{crafts bottom}}
{{crafts top}}

{{crafts row |image=y
 | tool ={{item link|Food Processor|size=150x150px}}
 | toolspan =13

 | result = Cheese| 
 | Mule Milk| 
}}

{{crafts row |image=y
 | result = Kavae Coffee| 
 |  Kavae Beans| 
 | Purified Water|
}}

{{crafts row |image=y
 | result = Canned Vegetables| 
 | Tomatoes| 
 | Space Durians|
 | Pumpkins|
 | Purified Water|
 | Metal Plate|
 }}

{{crafts row |image=y
 | result = Veggie Burger| 
 |Bread| 
 |Textured Plant Protein|
 |Opuntia Cactus Spears|2
 |Cheese| 2
}}

{{crafts row |image=y
 | result = Salami| 
 |Raw Meat| 
}}

{{crafts bottom}}

Output

Template:Crafts first sub row Template:Crafts first sub row Template:Crafts first sub row


Template:Crafts first sub row


Template:Crafts first sub row


Template:Crafts bottom

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.

Advertisement