Template:Recipe/doc: Difference between revisions
Appearance
ReisuDesign (talk | contribs) No edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation/Header}} | {{Documentation/Header}} | ||
{{Lua}} | {{Lua}} | ||
{{CSS|Gadget-Recipe}} | |||
This template displays a list of ingredients for a recipe in a similar style to the in-game menus. Categories are automatically created for each ingredient with the format {{L|Category:Uses ((item))}}. | This template displays a list of ingredients for a recipe in a similar style to the in-game menus. Categories are automatically created for each ingredient with the format {{L|Category:Uses ((item))}}. | ||
Latest revision as of 10:38, 12 September 2026
This is the documentation page for Recipe. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
This template uses Module:Recipe, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Recipe.css.
This template displays a list of ingredients for a recipe in a similar style to the in-game menus. Categories are automatically created for each ingredient with the format [[Category:Uses item]].
Syntax
[edit source]{{Recipe
|type = Cooking/Forging/Alchemy/Processing/Creation
|character = character to use
|time = process duration
|sort = display order of items
|yield = yield amount
|item1 = amount1
|item2 = amount2
|itemX = amountX
}}
- time - format using the keywords h, m and s to determine hour, minutes, and seconds, respectively. Defaults to m if no keyword is used.
- sort - determines the order of the recipe, split by semicolons
- yield - denotes the yield amount. Defaults to 1
Examples
[edit source]{{Recipe|Stone = 5|Raw Timber = 3|page = Maizeglow Table Lamp|type = Craft}} yields:
Template Data
[edit source]No description.
| Parameter | Description | Type | Status | |||
|---|---|---|---|---|---|---|
| No parameters specified | ||||||