Revision as of 22:30, 2 October 2022 by NaK(talk | contribs)(Created "Template: Recipe item" and moved some codes there. The moved codes are ones to draw plus icon and item icon.)
This template provides a method to rapidly illustrate crafting recipes without in-depth knowledge of wiki syntax or manual repetition/copy-pasting.
Basic usage
The following 2 templates are provided for making a recipe.
Template: Recipe define: Defines a recipe. The defined recipe can be called by Template: Recipe fetch from any page in this wiki. Usually, recipes are defined on the page of a building. This template only defines recipes but does not display anything.
Both templates can be used with the format written in #Examples in this document.
Parameters
The template accepts the following parameters:
Building: Name of buildings (example: Blast Furnace). No need to specify on pages using Template:Infobox machine because the building is automatically detected.
Input1Name, Input2Name, ..., Input6Name: Name of materials (example: Iron Ore)
Input1Name = Mining (optional): Applies special format for mining.
Output1Name, Output2Name, ... Output6Name: Name of products (example: Molten Iron)
Output1Name = Dumping (optional): Applies special format for dumping.
Input1Qty, ..., Input6Qty, Output1Qty, ..., Output6Qty: Amount of materials or products per 1 cycle of recipe.
Time: Cycle time of recipe.
Input1Unit, ..., Input6Unit, Output1Unit, ..., Output6Unit (optional): Adds unit (for Electricity and Mechanical Power)
HideBldg (optional, rare): Hides building in recipe. No need to specify on pages using Template:Infobox machine (the building is automatically hidden).
Unreleased = yes (optional, rare): Applies special format for unreleased recipe
Limitations
This template can accept up to 6 inputs, 6 outputs, and 1 time value per recipe. The output can include only 1 pollution.