Template:GetRecipes: Difference between revisions
From Eco - English Wiki
[checked revision] | [unchecked revision] |
Line 34: | Line 34: | ||
<pre> | <pre> | ||
{{GetRecipes|item= | {{GetRecipes|item=Steel Bar}} | ||
</pre> | </pre> | ||
{{GetRecipes|item= | {{GetRecipes|item=Steel Bar}} | ||
<pre> | <pre> | ||
Line 42: | Line 42: | ||
</pre> | </pre> | ||
{{GetRecipes|table=Workbench}} | {{GetRecipes|table=Workbench}} | ||
</noinclude> | </noinclude> |
Revision as of 10:35, 24 September 2020
Documentation
{{TestRecipes|item=Item Name}} {{TestRecipes|table=Crafting Table}}
This template can be used to grab all recipes that are relevant to a given item or table. It formats the results into wikitables with their own headers.
For Items
- The first table displays every recipe in the game that creates the item as product, and has the header "Crafting Recipes".
- The second table displays all recipes that require the item as an ingredient, and has the header "Used in Recipes".
If an item has no relevant recipes for either table, the template will display "None" instead of a table for that section.
For Tables
A table is created that displays every recipe that is available at the table. It has the header "Recipes at {Table}". If no relevant recipes are found, the template will display "None" instead of a table.
Usage
Parameters
- item
- An item in the game. Use the name as it appears in the game, including spaces.
- table
- A crafting table in the game. This has no effect if 'item' is specified.
Example
{{GetRecipes|item=Iron Axle}}
Crafting Recipes
Crafting Station | Item | Materials | Level Needed | Crafting Time (mins) |
Labour Cost | XP Gained | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lathe | Iron Axle x1 | Iron Bar x2 | Mechanics Level 1 |
2 | 75 | 1 |
Used in Recipes
{{GetRecipes|item=Steel Bar}}
Crafting Recipes
Crafting Station | Item | Materials | Level Needed | Crafting Time (mins) |
Labour Cost | XP Gained | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Blast Furnace | Steel Bar x1 | Slag x2 | Iron Bar x2 | Quicklime x1 | Charcoal x2 | Advanced Smelting Level 1 |
1.5 | 60 | 2 | ||||
Blast Furnace | Steel Bar x1 | Slag x2 | Iron Bar x2 | Quicklime x1 | Crushed Coal x1 | Advanced Smelting Level 1 |
1.5 | 60 | 2 |
Used in Recipes
{{GetRecipes|table=Workbench}}
Recipes at Workbench