Template:IngredientList: Difference between revisions

Add Meat-Based Meals
(Add documentation)
(Add Meat-Based Meals)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#arraydefine:ingredientArray| {{{1|}}} }}
<includeonly>{{#arraydefine:ingredientArray| {{{1|}}} }}
{{#arrayprint:ingredientArray|<br/>|@@@@| {{#switch:@@@@
{{#arrayprint:ingredientArray|<br/>|@@@@| {{#switch:@@@@
           |Fish
           |Fish
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 101: Line 106:
           |#default=}}
           |#default=}}
     |noCategories
     |noCategories
     |#default=}}}}<noinclude>
     |#default=}}}}</includeonly><noinclude>
==Description==
==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 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.
Line 112: Line 117:
<pre>{{IngredientList | <<Ingredient 1>>, <<Ingredient 2>>, <<Ingredient 3>>, <<Ingredient 4>>, <<Ingredient 5>> }}</pre>
<pre>{{IngredientList | <<Ingredient 1>>, <<Ingredient 2>>, <<Ingredient 3>>, <<Ingredient 4>>, <<Ingredient 5>> }}</pre>


Values should be entered as plain text, separated by commas, with no formatting or templates surrounding them.
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:
There are also optional parameters that can be used:
Line 120: Line 125:


==Examples==
==Examples==
<pre>{{IngredientList | Pumpkin, Mint | addCategories }}</pre>
<pre>{{IngredientList | Vegetables, Mint | addCategories }}</pre>
results in...
results in... (note that the relevant categories are added to the page)


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




<pre>{{IngredientList | Slush Ice, Lemon }}</pre>
<pre>{{IngredientList | Slush Ice, Lemon, Sugarcane, Vanilla, Clay }}</pre>
results in...
results in...


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


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>
moderator
26,962

edits