Editing Template:GetRecipes

From Eco - English Wiki

Your changes will be displayed to readers once an authorized user accepts them. (help)

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 table. It formats the results into wikitables with their own headers.  
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>
{{GetRecipes|item=Iron Axle}}
</pre>
{{GetRecipes|item=Iron Axle}}
<pre>
{{GetRecipes|item=Iron Plate}}
</pre>
{{GetRecipes|item=Iron Plate}}
<pre>
{{GetRecipes|item=Beans}}
</pre>
{{GetRecipes|item=Beans}}
<pre>
{{GetRecipes|item=Board}}
</pre>
{{GetRecipes|item=Board}}
<pre>
{{GetRecipes|item=Iron Bar}}
</pre>
{{GetRecipes|item=Iron Bar}}
<pre>
<pre>
{{GetRecipes|table=Workbench}}
{{GetRecipes|item=Raw Meat}}
</pre>
</pre>
{{GetRecipes|table=Workbench}}
{{GetRecipes|item=Raw Meat}}




</noinclude>
</noinclude>
Please note that all contributions to Eco - English Wiki are considered to be released under the CC BY-NC-SA 4.0 (see Eco:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)