Template:Item recipe: Difference between revisions
(wip) |
(wip) |
||
Line 2: | Line 2: | ||
--><templatestyles src="Template:Item recipe/styles.css" /><!-- | --><templatestyles src="Template:Item recipe/styles.css" /><!-- | ||
# template arguments are all passed to this method | |||
-->{{#invoke: Item recipe|generate_item_recipe}}</includeonly><noinclude> | |||
{{docs|bb= | {{docs|bb= | ||
{{uses lua|Item recipe}} | {{uses lua|Item recipe}} | ||
Line 17: | Line 9: | ||
}} | }} | ||
{{item recipe | {{item recipe|satchel of holding}} | ||
{{item recipe | {{item recipe|bluespace beaker}} | ||
{{item recipe | {{item recipe|force gun}} | ||
<templatedata> | <templatedata> | ||
Line 25: | Line 17: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": " | "label": "Item", | ||
"description": "Item | "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" | "example": "lathe" | ||
}, | }, | ||
"2": { | "2": { | ||
"label": " | "label": "Amount", | ||
"description": "Item | "description": "Amount of items to adjust the recipe for.", | ||
"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", | "type": "line", | ||
" | "suggestedvalues": [ | ||
"autolathe", | |||
"protolathe" | |||
], | |||
"suggested": true, | |||
"example": "lathe" | |||
}, | }, | ||
" | "layout": { | ||
"aliases": [ | |||
"lay" | |||
], | |||
"label": "Layout", | "label": "Layout", | ||
"description": " | "description": "How to layout the recipe?", | ||
"type": "line", | "type": "line", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
Line 53: | Line 56: | ||
"default": "vertical", | "default": "vertical", | ||
"suggested": true | "suggested": true | ||
}, | |||
"materials only": { | |||
"aliases": [ | |||
"mat only" | |||
], | |||
"label": "Materials only", | |||
"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" | |||
} | } | ||
}, | }, | ||
Line 58: | Line 70: | ||
"1", | "1", | ||
"2", | "2", | ||
"3" | "3", | ||
"layout", | |||
"materials only" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 16:29, 25 August 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
Lua error in Module:Item_recipe at line 593: failed to generate a recipe for item: found multiple production methods for recipe ID 'BluespaceBeaker' (input query: 'bluespace beaker') and input production method was NOT specified. Rendering multiple recipes is unsupported, so please specify a production method from available methods for this recipe: 'MedicalTechFab', 'Protolathe'.
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 | 2 | Amount of items to adjust the recipe for.
| Number | suggested |
Method | 3 | Item production method. Use to differentiate between multiple recipes for a single item, if it has multiple.
| Line | suggested |
Layout | layout lay | How to layout the recipe?
| Line | suggested |
Materials only | 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 |