Template:IngredientList

Revision as of 17:49, 17 June 2023 by Lizz (talk | contribs)

Description

This template is used to format the list of ingredients for a Meal with the appropriate name or ingredient template. Its intended use is on the Meal's page.

This template allows us to display Ingredients in Meal Recipes in a standardized format across the wiki, while still allowing the recipe on the Meal's page to be easily editable by any wiki contributor.

Usage

This template can be used by entering the following onto a relevant page:

{{IngredientList | <<Ingredient 1>>, <<Ingredient 2>>, <<Ingredient 3>>, <<Ingredient 4>>, <<Ingredient 5>> }}

Values should be entered as plain text, separated by commas, with no formatting or templates surrounding them. When providing "Any" ingredients, the possible values are: Dairy and Oil, Fish, Fruit, Grains, Ice, Seafood, Spices, Sweets, Vegetables.

There are also optional parameters that can be used:

{{IngredientList | <<Comma-separated Ingredient List>> | addCategories }}

If addCategories is provided, the template will add categories related to the ingredients contained in the Meal to the page (e.g. Fish-Based Meal, Fruit-Based Meal, etc.). Unless provided, no categories will be added to the page.

Examples

{{IngredientList | Vegetables, Mint | addCategories }}

results in...


Vegetables.png Any Vegetable
Mint


{{IngredientList | Slush Ice, Lemon, Sugarcane, Vanilla, Clay }}

results in...


Slush Ice
Lemon
Sugarcane
Vanilla
Clay