Template:Item recipe: Difference between revisions
cats |
added a block formatting param |
||
Line 69: | Line 69: | ||
], | ], | ||
"default": "vertical", | "default": "vertical", | ||
"suggested": true | |||
}, | |||
"blocky": { | |||
"label": "Block formatting", | |||
"description": "If enabled, the recipe box will be formatted as a block, resulting in a vertical stacking of recipes if there are multiple of them. By default, recipe boxes are formatted inline.", | |||
"type": "boolean", | |||
"autovalue": "0", | |||
"suggested": true | "suggested": true | ||
} | } | ||
Line 77: | Line 84: | ||
"3", | "3", | ||
"materials only", | "materials only", | ||
"materials only layout" | "materials only layout", | ||
"blocky" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 18:00, 8 May 2025
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
↓
recipe for item 'Magazine (.30 rifle)' with method 'autolathe' not found
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 |
Block formatting | blocky | If enabled, the recipe box will be formatted as a block, resulting in a vertical stacking of recipes if there are multiple of them. By default, recipe boxes are formatted inline.
| Boolean | suggested |