Difference between revisions of "Template:Infobox recipe/doc"
Jump to navigation
Jump to search
(creates template doc) |
m (fixes typo) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
==Usage== | ==Usage== | ||
{{Infobox | {{Infobox recipe | ||
| name = {{{name}}} | | name = {{{name}}} | ||
| image = {{{image}}} | | image = {{{image}}} | ||
| caption = {{{caption}}} | | caption = {{{caption}}} | ||
| alternate_name = {{{alternate_name}}} | | alternate_name = {{{alternate_name}}} | ||
| | | summary = {{{summary}}} | ||
| | | location = {{{location}}} | ||
| creator = {{{creator}}} | | creator = {{{creator}}} | ||
| | | date = {{{date}}} | ||
| time1 = {{{time1}}} | | time1 = {{{time1}}} | ||
| time2 = {{{time2}}} | | time2 = {{{time2}}} | ||
Line 19: | Line 18: | ||
| main_ingredient = {{{main_ingredient}}} | | main_ingredient = {{{main_ingredient}}} | ||
| minor_ingredient = {{{minor_ingredient}}} | | minor_ingredient = {{{minor_ingredient}}} | ||
| yield = {{{yield}}} | |||
| instructions = {{{instructions}}} | |||
| variations = {{{variations}}} | | variations = {{{variations}}} | ||
| serving_size = 100 g | | serving_size = 100 g | ||
Line 31: | Line 32: | ||
}} | }} | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
{{Infobox | {{Infobox recipe | ||
| name = | | name = | ||
| image = | | image = | ||
| caption = | | caption = | ||
| alternate_name = | | alternate_name = | ||
| | | summary = | ||
| | | location = | ||
| creator = | | creator = | ||
| | | date = | ||
| time1 = | | time1 = | ||
| time2 = | | time2 = | ||
Line 46: | Line 46: | ||
| type = | | type = | ||
| served = | | served = | ||
| main_ingredient = | | main_ingredient = <!-- List amounts in parentheses: <nowiki>{{Plainlist|Banana (1)|Yogurt (1 cup)}}</nowiki> --> | ||
| minor_ingredient = | | minor_ingredient = <!-- List amounts in parentheses: <nowiki>{{Plainlist|Vanilla extract (1 tsp)|Cinammon (0.5 tsp)}}</nowiki> --> | ||
| yield = | |||
| instructions = | |||
| variations = | | variations = | ||
| serving_size = 100 g | | serving_size = 100 g | ||
Line 69: | Line 71: | ||
* '''caption''' – Leave empty for no image caption. | * '''caption''' – Leave empty for no image caption. | ||
* '''alternate name''' – Alternate name for the dish. | * '''alternate name''' – Alternate name for the dish. | ||
* ''' | * '''summary''' – Summary description of the dish. | ||
* ''' | * '''location''' – Location of creation of the dish. | ||
* '''creator''' – Creator(s) of the dish. | * '''creator''' – Creator(s) of the dish. | ||
* '''year''' – Year of | * '''year''' – Year of creation of the dish. | ||
* '''time1''' – Min time for cooking the dish. | * '''time1''' – Min time for cooking the dish. | ||
* '''time2''' – Max time for cooking the dish. | * '''time2''' – Max time for cooking the dish. | ||
Line 80: | Line 81: | ||
* '''served''' – Serving temperature for the dish. | * '''served''' – Serving temperature for the dish. | ||
* '''main_ingredient''' – Main ingredient(s) for the dish. Separate multiple values by using {{tl|Plainlist}}. | * '''main_ingredient''' – Main ingredient(s) for the dish. Separate multiple values by using {{tl|Plainlist}}. | ||
** List amounts in parentheses, such as: <nowiki>{{Plainlist|Banana (1)|Yogurt (1 cup)}}</nowiki> | |||
* '''minor_ingredient''' – Minor ingredient(s) for the dish. | * '''minor_ingredient''' – Minor ingredient(s) for the dish. | ||
** List amounts in parentheses, such as: <nowiki>{{Plainlist|Vanilla extract (1 tsp)|Cinammon (0.5 tsp)}}</nowiki> | |||
* '''yield''' – Yield of recipe in serving sizes, based on ingredients and instructions. | |||
* '''instructions''' – Instructions for preparing the dish. Separate multiple values by using {{tl|Plainlist}}. | |||
* '''variations''' – Variations for making the dish. | * '''variations''' – Variations for making the dish. | ||
* '''serving_size''' – Size of the default serving, (use 100 g for the standard 100 [[gram|g]] serving size). | * '''serving_size''' – Size of the default serving, (use 100 g for the standard 100 [[gram|g]] serving size). | ||
Line 92: | Line 97: | ||
* '''other''' – Other information. | * '''other''' – Other information. | ||
* '''complexity''' – The complexity of cooking. Should if provided contain a number between 1 and 5. | * '''complexity''' – The complexity of cooking. Should if provided contain a number between 1 and 5. | ||
==Microformats== | ==Microformats== | ||
===Recipe=== | ===Recipe=== | ||
{{UF-hrecipe}} | {{UF-hrecipe}} | ||
<includeonly> | <includeonly> | ||
</includeonly> | </includeonly> |
Latest revision as of 15:20, 19 May 2014
File:OOjs UI icon book-ltr.svg | This is a documentation subpage for Template:Infobox recipe. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{{name}}} | |||||||
---|---|---|---|---|---|---|---|
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted {{{caption}}} | |||||||
Alternative names |
{{{alternate_name}}} | ||||||
Summary | {{{summary}}} | ||||||
Type | {{{course}}} | ||||||
Location of creation |
{{{location}}} | ||||||
Creators | {{{creator}}} | ||||||
Total time |
|||||||
Serving temperature |
{{{served}}} | ||||||
Main ingredients |
{{{main_ingredient}}} | ||||||
Ingredients generally used |
{{{minor_ingredient}}} | ||||||
Yield | {{{yield}}} | ||||||
Instructions | {{{instructions}}} | ||||||
Variations | {{{variations}}} | ||||||
{{{calories}}} kcal | |||||||
| |||||||
Similar dishes |
{{{similar_dish}}} | ||||||
Other information |
{{{other}}} |
{{Infobox recipe | name = | image = | caption = | alternate_name = | summary = | location = | creator = | date = | time1 = | time2 = | course = | type = | served = | main_ingredient = <!-- List amounts in parentheses: {{Plainlist|Banana (1)|Yogurt (1 cup)}} --> | minor_ingredient = <!-- List amounts in parentheses: {{Plainlist|Vanilla extract (1 tsp)|Cinammon (0.5 tsp)}} --> | yield = | instructions = | variations = | serving_size = 100 g | calories = | protein = | fat = | carbohydrate = | glycemic_index = | similar_dish = | other = | complexity = 3 <!-- Should if provided contain a number between 1 and 5 --> }}
Parameters
Copy and paste the infobox above into the desired article and fill in the values after the equals (=) sign. All of the fields are optional. For questions or examples please see the discussion page.
- name – This comes to the top of the box. If omitted, will be inferred from the page title.
- image – If there's not an image available, leave the field empty.
- caption – Leave empty for no image caption.
- alternate name – Alternate name for the dish.
- summary – Summary description of the dish.
- location – Location of creation of the dish.
- creator – Creator(s) of the dish.
- year – Year of creation of the dish.
- time1 – Min time for cooking the dish.
- time2 – Max time for cooking the dish.
- course – Appetizer, Dessert, Drink, Main course, Salad, or Side dish.
- type – e.g. "pie", "biscuit", etc. Do not use if redundant to
|course=
- served – Serving temperature for the dish.
- main_ingredient – Main ingredient(s) for the dish. Separate multiple values by using {{Plainlist}}.
- List amounts in parentheses, such as: {{Plainlist|Banana (1)|Yogurt (1 cup)}}
- minor_ingredient – Minor ingredient(s) for the dish.
- List amounts in parentheses, such as: {{Plainlist|Vanilla extract (1 tsp)|Cinammon (0.5 tsp)}}
- yield – Yield of recipe in serving sizes, based on ingredients and instructions.
- instructions – Instructions for preparing the dish. Separate multiple values by using {{Plainlist}}.
- variations – Variations for making the dish.
- serving_size – Size of the default serving, (use 100 g for the standard 100 g serving size).
- calories – Calories per serving, use a raw number for automatic conversion to kJ.
- calories_ref – Citation for the calories per serving.
- protein – The amount of protein in the dish per serving.
- fat – The amount of fat in the dish per serving.
- carbohydrate – The amount of carbohydrate in the dish per serving.
- glycemic_index – Glycemic index (GI).
- similar_dish – Similar dish.
- other – Other information.
- complexity – The complexity of cooking. Should if provided contain a number between 1 and 5.
Microformats
Recipe
The HTML mark up produced by this template includes an hRecipe microformat, which makes food recipes and individual foods parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person. For more information about the use of microformats on Wikipedia, please see the microformat project.
hRecipe uses HTML classes including:
- author
- duration
- fn
- ingredient
- instructions
- nutrition
- published
- tag
- type
- yield
Please do not rename or remove these classes.