Editing Template:GetRecipes
From Eco - English Wiki
Your changes will be displayed to readers once an authorized user accepts them. (help)
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
{{GetRecipes|item=Item Name}} | {{GetRecipes|item=Item Name}} | ||
{{GetRecipes|table=Crafting Table}} | {{GetRecipes|table=Crafting Table}} | ||
{{GetRecipes|table=Crafting Table|group=Group}} | |||
{{GetRecipes|group=Group}} | |||
</pre> | </pre> | ||
This template can be used to grab all recipes that are relevant to a given item or | This template can be used to grab all recipes that are relevant to a given item, table, or group. It formats the results into wikitables with their own headers. | ||
==== For Items ==== | ==== For Items ==== | ||
* The first table displays every recipe in the game that creates the item as product, and has the header "Crafting Recipes". | * The first table displays every recipe in the game that creates the item as product, and has the header "Crafting Recipes". | ||
Line 16: | Line 18: | ||
==== For Tables ==== | ==== For Tables ==== | ||
A table is created that displays every recipe that is available at the table. It has the header "Recipes at {Table}". | 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. | |||
==== For Groups ==== | |||
A table is created that displays all recipes where the product belongs to the specified group. It has the header "{Group} Recipes". | |||
If no relevant recipes are found, the template will display "''None''" instead of a table. | If no relevant recipes are found, the template will display "''None''" instead of a table. | ||
Line 24: | Line 29: | ||
; table | ; table | ||
: A crafting table in the game. This has no effect if 'item' is specified. | : A crafting table in the game. This has no effect if 'item' is specified. | ||
; group | |||
: A group for items in the game. This can be combined with 'table' to narrow down the selected recipes. It has no effect if 'item' is specified. | |||
==Example== | ==Example== | ||
<pre> | <pre> | ||
{{GetRecipes| | {{GetRecipes|item=Raw Meat}} | ||
</pre> | </pre> | ||
{{GetRecipes| | {{GetRecipes|item=Raw Meat}} | ||
</noinclude> | </noinclude> |