Template:Crafting
This template forms a 'central database' of sorts for crafting recipes. When this template is called, it looks up the relevant recipe, and then passes the data along to the Crafting/Display sub-template which actually draws the table.
Usage is as simple as calling the template, and specifying the output product as a parameter.
By storing all recipes here it is extremely easy to edit them when they are changed by game updates. Instead of having to change the recipe on every page that displays it, it can simply be updated here, and the changes will apply everywhere.
Example Usage
To display the crafting recipe for the Processor, the following would be used:
{{Crafting|Processor}}
This results in the following:
Result | Inputs | Factory |
---|---|---|
Processor x1 | Gold x3 Coils x20 |
Processor Fabricator |
Adding Recipes
Adding recipes is simple assuming the syntax is followed correctly.
The following code is used for the Processor recipe:
| Processor = {{Crafting/Display |Result={{Resource|Processor}} x1 |Inputs={{Resource|Gold}} x3</br>{{Resource|Coils}} x20 |Factory=Processor Fabricator }}
- This is the name of the recipe and what the user will type when calling the template, in this case {{Crafting|Processor}}}
| Processor
- | Result={{Resource|Processor}} The output of the recipe; in this case a Processor. We use the Resource template to display an icon.
- | Inputs={{Resource|Gold}} x3</br>{{Resource|Coils}} x20 The ingredient inputs for the recipe, in this case Gold and Coils. Each input MUST be separated with a </br> tag to display correctly.
- | Factory=Processor Fabricator The factory part the recipe is used in, in this case the Processor Fabricator. Just enter the name of the factory, the is no need to use square brackets like a normal wiki link.
- }} Used to 'close' the recipe so the template knows when the next one begins.
Take care to match the indentations on each line with the existing examples in order to keep the list as clean as possible.
Current Recipes
Below is a list of recipes as of time of writing:
Result | Inputs | Factory |
---|---|---|
Processor x1 | Gold x3 Coils x20 |
Processor Fabricator |
Result | Inputs | Factory |
---|---|---|
Diamond x1 | Carbon x20 | Diamond Smelter |
Result | Inputs | Factory |
---|---|---|
Coils x1 | Copper x1 | Coil Factory |
Result | Inputs | Factory |
---|---|---|
Steel x1 | Iron x1 | Steel Smelter |
Result | Inputs | Factory |
---|---|---|
Enriched Uranium x1 | Uranium x4 | Uranium Enricher |
Result | Inputs | Factory |
---|---|---|
Tri-Steel x1 | Tritanium x1 | Tri-Steel Smelter |
Result | Inputs | Factory |
---|---|---|
Hyper-Coils x1 | Coils x2 Copper x0.5 |
Hyper-Coil Factory |
Result | Inputs | Factory |
---|---|---|
Ammo x1 | Sulfur x0.05 | Cannon Ammo Factory |
Result | Inputs | Factory |
---|---|---|
HE Missile Parts x1 | Iron x0.05 Sulfur x0.05 |
High-Explosive Missile Factory |
Result | Inputs | Factory |
---|---|---|
EMP Missile Parts x1 | Iron x0.45 Copper x0.45 |
E.M.P. Missile Factory |
Result | Inputs | Factory |
---|---|---|
Nuclear Missile Parts x1 | Iron x0.05 Uranium x0.02 |
Nuclear Missile Factory |
Result | Inputs | Factory |
---|---|---|
Mine Parts x1 | Iron x0.1 Ammo x0.4 |
Mine Factory |
Parameter | Description | Type | Status | |
---|---|---|---|---|
Recipe | recipe | The recipe to be displayed. Enter the name of the end product. For example, to display the recipe for Processor, enter Processor
| Unknown | required |