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" /><!-- | ||
-->{{#invoke: Item | -->{{#vardefine: item_recipe_method|{{{1}}}}}<!-- | ||
# TODO: the lookup also happens the item recipe module. perform a single lookup if possible. | |||
-->{{#vardefine: item_recipe_product|{{#invoke:Item|lookup_item_id_by_name_and_amount|{{{2}}}|1}}<!--/vardefine-->}}<!-- | |||
--><div style="display: flex; flex-direction: row; align-items:center; gap: 1ch;"><!-- | |||
--><div>{{item|{{#var:item_recipe_product}}<!--/item-->}}</div><!-- | |||
--><div>{{colored text|gray|is made on}} {{item|{{#var:item_recipe_method}}<!--/item-->}} {{colored text|gray|using}}</div><!-- | |||
-->{{#invoke: Item recipe|generate_recipe_skeleton|{{#var:item_recipe_method}}|{{#var:item_recipe_product}}<!--/invoke-->}}<!-- | |||
--></div></includeonly><noinclude> | |||
{{docs|bb= | {{docs|bb= | ||
{{uses lua|Item recipe}} | {{uses lua|Item recipe}} | ||
Line 8: | Line 17: | ||
}} | }} | ||
{{item recipe|protolathe|satchel of holding}} | |||
{{item recipe| | |||
<templatedata> | <templatedata> |
Revision as of 16:07, 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
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Method | 1 | Item production method. Use "all" to generate recipes across all possible production methods. TODO commas for multiple methods at the same time.
| Line | required |
Item | 2 | Item name, ID or alias. Any casing is allowed for name/alias, but not for ID. Do not pass {{item}} here. | Line | required |
Layout | 3 | Recipe layout.
| Line | suggested |