Template:IngredientList: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
No edit summary
(Add Meat-Based Meals)
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
           |Grains
           |Grains
           |Dairy and Oil
           |Dairy and Oil
          |Meat
           |Seafood
           |Seafood
           |Spices
           |Spices
           |Sweets
           |Sweets
          |Ice
           |Vegetables={{ingredient|@@@@}}
           |Vegetables={{ingredient|@@@@}}
           |Slush Ice={{name|@@@@}}
           |Slush Ice={{name|@@@@}}
Line 96: Line 98:
           |Zucchini
           |Zucchini
           |Vegetables=[[Category:Vegetable-Based Meals]]
           |Vegetables=[[Category:Vegetable-Based Meals]]
          |Pork
          |Poultry
          |Venison=[[Category:Meat-Based Meals]]
           |Egg-cellent Fruit
           |Egg-cellent Fruit
           |Spring V-EGG-etable
           |Spring V-EGG-etable
Line 121: Line 126:
==Examples==
==Examples==
<pre>{{IngredientList | Vegetables, Mint | addCategories }}</pre>
<pre>{{IngredientList | Vegetables, Mint | addCategories }}</pre>
results in...
results in... (note that the relevant categories are added to the page)


{{IngredientList | Vegetables, Mint | addCategories }}
{{IngredientList | Vegetables, Mint | addCategories }}

Latest revision as of 17:50, 11 January 2024

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... (note that the relevant categories are added to the page)


Vegetables.png Any Vegetable
Mint


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

results in...


Slush Ice
Lemon
Sugarcane
Vanilla
Clay