Template:Recipes/register
跳到导航
跳到搜索
此模板为表格“Recipes”添加行,由模板Recipes声明。 查看表格.
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. |
Documentation The documentation below is transcluded from Template:Recipes/register/doc. (edit | history)
[purge]
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
andimage
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.
- The
- Here's a list of all /register subpages (the pages where recipe data is stored):
分类:
- 使用DynamicPageList3解析器函数的页面
- Lua-based templates
- Recipes templates