Revision as of 04:07, 2 May 2023 by L32(talk | contribs)(Attempt to fix definition fails with Float fields in the table by specifying parameter usage and default values.)
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.
This template invokes definition of game's source data (either directly, or with one or several template invokes). Editing an article, which invokes this template will result in updates to some of the stored tables, which in turn updates automated data lists. See more.