Template:Recipes/register

From Thorium Mod Wiki
Jump to navigation Jump to search
Lua.svg
This template uses Module:Recipes, a script written in the Lua programming language. Please see wikipedia:Lua and mw:Extension:Scribunto to learn more about Lua.
This template uses the Cargo extension.
This template uses Extension:Cargo, an integral part of the wiki's back-end.
  • This template adds rows to the table "Recipes", which is declared by the template Recipes. View table.
Template-info.svg Documentation The documentation below is transcluded from Template:Recipes/register/doc. (edit | history)

This template is used to store the data for a recipe into the cargo database.

Usage

{{recipes/register
| station = <crafting station name>
| result = <result item name> | amount = <result item amount> | text = <result item text> (optional) | image = <result item image> (optional)
| <ingredient 1 name>¦<ingredient 1 text> (optional) | <ingredient 1 amount>
| <ingredient 2 name>¦<ingredient 2 text> (optional) | <ingredient 2 amount>
...
| <ingredient n name>¦<ingredient n text> (optional) | <ingredient n amount>
}}

Notes

  • All result and ingredient amounts are required, even if they are 1.
  • The text and image parameters are rarely used, and are only appropriate in edge cases.
    • The ¦<ingredient text> markup is also rarely used, and is only appropriate in edge cases.
  • Here's a list of all /register subpages (the pages where recipe data is stored):