Template:Recipe

Generates recipe tables. Use this wherever you need to show how to use Goods or Buildings.

Overview
Create a concise, sortable table using game data to show in-game recipes. The table mimics the layout of the in-game recipe browser, with the building, efficiency of the recipe, number of ingredients, and the product. Optionally, outputs just a list of buildings with their efficiency stars.

Parameters
At least one of these is required. Depending on which parameters you provide, the table may ignore other parameters. If the names provided are not spelled correctly (including punctuation), matching their in-game names, the recipe will return an error.

Errors
When a product, building, or ingredient is not spelled correctly or is not a valid name, the template returns an error message to help you locate the spelling or name mistake.

Example:

Broken:

Fixed:

There may be cases where the name you should use to look up a good or building is not the right name. Please post these to this template's discussion page.

Basic Usage for Products and Buildings
A standard use of the template to show exactly one recipe for a product, in one building:

Yields:

Here are several ways to call the template for products and buildings.

Ingredients
Unlike when specifying the product and/or building, when you specify the, you explicitly must name the parameter (with  ...). When you do so, the template ignores the other parameters you may have provided. This can be confusing if, for example, you are looking for all of the recipes in the Brick Oven that use Herbs—this is not possible at this time. This may be fixed in the future if there are sufficient needs for further filtering.

The results of specifying the ingredient can be a long table. But on a resource's page, this information is expected to be valuable.

Both result in:

Further Examples and Errors
The following are generated by calling the template as shown in the parameter examples table above.

1. product and building:

Yields:

2. product only

Yields:

3. building only

Yields:

4. with the output override

Yields:

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

5. with no parameters

Yields:

6. using only one pipe and not specifying that the provided name is the building

Yields:

7. asking for products or buildings with no recipes

Yields: