Template:Item recipe: Difference between revisions
(Created page with "<includeonly></includeonly><noinclude> {{docs}} <templatedata> { "params": { "1": { "label": "Item name", "description": "Item name, ID or alias. Any casing is allowed for name/alias, but not for ID. ", "type": "line", "required": true }, "2": { "label": "Layout", "description": "Recipe layout.", "type": "line", "suggestedvalues": [ "vertical", "ver", "horizontal", "hor" ], "default": "vertical", "suggested": true...") |
(param amount → amount multiplier) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly></includeonly><noinclude> | <includeonly>{{#invoke: Item recipe|generate_item_recipe}}</includeonly><noinclude> | ||
{{docs}} | {{docs|bb= | ||
{{uses lua|Item recipe}} | |||
{{uses template styles}} | |||
}} | |||
<templatedata> | <templatedata> | ||
Line 6: | Line 9: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "Item | "label": "Item", | ||
"description": "Item name, ID or alias. Any casing is allowed for name/alias, but not for ID. ", | "description": "Item name, ID or alias. Any casing is allowed for name/alias, but not for ID. Do not pass {{item}} here.", | ||
"type": "line", | "type": "line", | ||
"required": true | "required": true, | ||
"example": "lathe" | |||
}, | }, | ||
"2": { | "2": { | ||
"label": " | "label": "Amount multiplier", | ||
"description": " | "description": "How many times to repeat the recipe? Will adjust the recipe costs, duration and product amounts.", | ||
"type": "number", | |||
"default": "1", | |||
"suggested": true | |||
}, | |||
"3": { | |||
"label": "Method", | |||
"description": "Item production method. Use to differentiate between multiple recipes for a single item, if it has multiple.", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"autolathe", | |||
"protolathe" | |||
], | |||
"suggested": true, | |||
"example": "lathe" | |||
}, | |||
"materials only": { | |||
"aliases": [ | |||
"mat only" | |||
], | |||
"label": "Materials only mode", | |||
"description": "If set, only the recipe materials will be rendered, as opposed to also rendering both the product and the method by default.", | |||
"type": "boolean", | |||
"default": "0" | |||
}, | |||
"materials only layout": { | |||
"aliases": [ | |||
"mat only layout" | |||
], | |||
"label": "Materials only mode", | |||
"description": "When in materials only mode, how to lay out the materials?", | |||
"type": "line", | "type": "line", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
Line 27: | Line 61: | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
"2" | "2", | ||
"3", | |||
"materials only", | |||
"materials only layout" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 18:54, 16 September 2024
Examples
Basic
{{item recipe
↓
Non-default recipes
Not all recipes are available by default.
Non-default recipes will have a note attached, specifying the means of getting said recipe.
Researchable recipes
Recipes that need to be researched first to manufacture.
{{item recipe
↓
Emagged recipes
Recipes that can only be accessed by EMAGging a machine.
{{item recipe
↓
Researchable emagged recipes
Recipes that can only be accessed by researching and then EMAGging a machine.
{{item recipe
↓
Materials-only mode
Renders only the materials, without header or notes.
{{item recipe
↓
Materials-only mode layout
Allows to change how materials are layed out.
Vertical
The default.
Horizontal
{{item recipe
↓
List of recipes by method
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item | 1 | Item name, ID or alias. Any casing is allowed for name/alias, but not for ID. Do not pass {{item}} here.
| Line | required |
Amount multiplier | 2 | How many times to repeat the recipe? Will adjust the recipe costs, duration and product amounts.
| Number | suggested |
Method | 3 | Item production method. Use to differentiate between multiple recipes for a single item, if it has multiple.
| Line | suggested |
Materials only mode | materials only mat only | If set, only the recipe materials will be rendered, as opposed to also rendering both the product and the method by default.
| Boolean | optional |
Materials only mode | materials only layout mat only layout | When in materials only mode, how to lay out the materials?
| Line | suggested |