Template:Recipe

This template is used like this:

This template calls  in Module:RenderRecipe to get recipes for a product and/or a building. This will generate a new wikitable full of content from the game: buildings, stars of efficiency, ingredients, and products.

This template standardizes the display of recipes throughout this wiki and greatly simplifies the amount of writing that is necessary when adding new content pages, especially for resources and buildings.

Usage
Giving the template both a product and a building will result in a table with exactly one recipe. Giving the template either a product or a building will result in a table with (usually) more than one row. If nothing is provided, an error will appear identifying the expectation.

Here are ways to call the template, as they would be written in the article calling the template:

Examples
The following are generated by calling the template, as shown in the examples in the table above.

1.  yields:

2.  yields:

3.  yields:

The following are error states generated by calling the template incorrectly.

4. With no arguments,  yields:



5. Skipping the double pipe AND not specifying that the provided name is the building in  yields:



6. Mixing naming the arguments and not naming the arguments  yields:



7. Specifying products or buildings with no recipes  yields: