moderator
26,674
edits
No edit summary |
(Add Meat-Based Meals) |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#arraydefine:ingredientArray| {{{1|}}} }} | <includeonly>{{#arraydefine:ingredientArray| {{{1|}}} }} | ||
{{#arrayprint:ingredientArray|<br/>|@@@@| {{name|@@@@}} {{#switch:@@@@ | {{#arrayprint:ingredientArray|<br/>|@@@@| {{#switch:@@@@ | ||
|Fish | |||
|Fruit | |||
|Grains | |||
|Dairy and Oil | |||
|Meat | |||
|Seafood | |||
|Spices | |||
|Sweets | |||
|Ice | |||
|Vegetables={{ingredient|@@@@}} | |||
|Slush Ice={{name|@@@@}} | |||
|Egg-cellent Fruit | |||
|Spring V-EGG-etable | |||
|Wild Spring Egg=''{{name|@@@@}}'' | |||
|#default={{name|@@@@}}}} {{#switch:{{{2|}}} | |||
|addCategories={{#switch:@@@@ | |||
|Anglerfish | |||
|Bass | |||
|Bream | |||
|Carp | |||
|Catfish | |||
|Cod | |||
|Fugu | |||
|Here and There Fish | |Here and There Fish | ||
| | |Herring | ||
|Kingfish | |||
|Lancetfish | |||
|Perch | |||
|Pike | |||
|Rainbow Trout | |||
|Salmon | |||
|Sole | |||
|Swordfish | |||
|Tilapia | |||
|Tuna | |||
|Walleye | |||
|White Sturgeon | |||
|Fish=[[Category:Fish-Based Meals]] | |||
|Apple | |||
|Banana | |||
|Blueberry | |||
|Cherry | |||
|Coconut | |||
|Coffee Bean | |||
|Dreamlight Fruit | |||
|Gooseberry | |||
|Lemon | |||
|Raspberry | |||
|Fruit=[[Category:Fruit-Based Meals]] | |||
|Rice | |||
|Wheat | |||
|Grains=[[Category:Grain-Based Meals]] | |||
|Butter | |||
|Canola | |||
|Cheese | |||
|Egg | |||
|Milk | |||
|Peanut | |||
|Soya | |||
|Dairy and Oil= | |||
|Clam | |||
|Crab | |||
|Lobster | |||
|Oyster | |||
|Scallop | |||
|Shrimp | |||
|Squid | |||
|Seafood=[[Category:Seafood-Based Meals]] | |||
|Basil | |||
|Garlic | |||
|Ginger | |||
|Mint | |||
|Oregano | |||
|Spices=[[Category:Meals with Spices]] | |||
|Cocoa Bean | |||
|Sugarcane | |||
|Vanilla | |||
|XXXXX= | |||
|Slush Ice= | |||
|Asparagus | |Asparagus | ||
|Bell Pepper | |Bell Pepper | ||
|Carrot | |||
|Chili Pepper | |||
|Corn | |||
|Cucumber | |||
|Eggplant | |||
|Leek | |Leek | ||
|Lettuce=[[Category:Vegetable | |Lettuce | ||
|#default=}}}}<noinclude> | |Mushroom | ||
|Okra | |||
|Onion | |||
|Potato | |||
|Pumpkin | |||
|Spinach | |||
|Tomato | |||
|Zucchini | |||
|Vegetables=[[Category:Vegetable-Based Meals]] | |||
|Pork | |||
|Poultry | |||
|Venison=[[Category:Meat-Based Meals]] | |||
|Egg-cellent Fruit | |||
|Spring V-EGG-etable | |||
|Wild Spring Egg=[[Category:Limited Time]] | |||
|#default=}} | |||
|noCategories | |||
|#default=}}}}</includeonly><noinclude> | |||
==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. | |||
{{IngredientList | Vanilla, Sugarcane }} | ==Usage== | ||
This template can be used by entering the following onto a relevant page: | |||
<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. 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: | |||
<pre>{{IngredientList | <<Comma-separated Ingredient List>> | addCategories }}</pre> | |||
If <code>addCategories</code> 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== | |||
<pre>{{IngredientList | Vegetables, Mint | addCategories }}</pre> | |||
results in... (note that the relevant categories are added to the page) | |||
{{IngredientList | Vegetables, Mint | addCategories }} | |||
<pre>{{IngredientList | Slush Ice, Lemon, Sugarcane, Vanilla, Clay }}</pre> | |||
results in... | |||
{{IngredientList | Slush Ice, Lemon, Sugarcane, Vanilla, Clay }} | |||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |