Infobox food/doc

From IxWiki
Jump to navigation Jump to search

Template loop detected: Template:Parameter names example

Usage

{{Infobox food
| name = 
| name_lang =
| name_italics =
| image = 
| image_size =
| image_alt =
| caption = 
| alternate_name = 
| type = 
| course = 
| place_of_origin = 
| region = 
| associated_cuisine = 
| creator = <!-- or | creators = -->
| year = 
| mintime = 
| maxtime = 
| served = 
| main_ingredient = 
| minor_ingredient = 
| variations = 
| serving_size = 100 g
| calories = 
| calories_ref =
| protein = 
| fat = 
| carbohydrate = 
| glycemic_index = 
| similar_dish = 
| cookbook =
| commons =
| other = 
| no_recipes = true
}}

Parameters

Copy and paste the infobox above into the desired article and fill in the values after the equals (=) sign. All fields are optional. For questions or examples, please see the discussion page.

Parameter Description
name This comes to the top of the box. If omitted, it will be inferred from the page title.
name_lang ISO 639 language code, if the name is not in English
name_italics Set |name_italics=true to italicise the name—if it is in a non-English language that uses the Roman alphabet, for example
image Do not prefix with File: or Image:, or surround with square brackets [[]]. If there is no image available, leave the field empty.
caption Leave empty for no image caption.
image_size Optional custom image size, e.g. 240 "px" is not required
image_alt Alt text for the image. See MOS:ALT
alternate_name Alternate name for the dish.
place_of_origin Place of origin of the dish.
region Region or state the dish was developed.
associated_cuisine Associated cuisine, preferably linking to an existing Fooian cuisine article.
creator or creators Creator or creators of the dish, for dishes with a known, well documented creator(s).
year Year dish was invented.
mintime (time1) Minimum time required to cook the dish.
maxtime (time2) Maximum time required to cook the dish.
type e.g. "pie", "biscuit", etc.
course Appetizer, Dessert, Drink, Main course, Salad, Side dish.
served Serving temperature for the dish.
main_ingredient Main ingredient/s for the dish. {{Plainlist}} may be used to separate multiple items.
minor_ingredient Ditto minor ingredient/s for the dish.
variations Variations for making the dish.
serving_size Default serving size ("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). Must be a simple number (e.g., without references or standard error mean.)
similar_dish Any similar dish/es.
other Any other information.
cookbook Provides a link to the Cookbook at Wikibooks using a title other than Wikipedia's page name
commons override wikidata commons link by manually specifying commons page
no_recipes Set |no_recipes=true to suppress the addition of recipe search links; omit to allow.
no_commons Set |no_commons=true to suppress the addition of Commons search links; omit to allow.

Example

Panipuri
Panipuri
Alternative namesSanskrit name - Jalapatra
Paani patashi/Pani puri (Madhya Pradesh, Uttar Pradesh)
Golgappa, gol gappay or gol gappa (Haryana, Delhi, Punjab, Karachi or other Urdu-speaking regions of Pakistan)
Fuchka"/"Phuchka/Phuska/Puska/Fuska (Bengal, [Bangladesh and West Bengal] Bihar, Nepal, North Odisha and Assam)
Gupchup (Odisha, Andhra Pradesh, Telangana, Southern Jharkhand, Chhattisgarh)
TypeSnack
Place of originIndia
Region or stateIndian subcontinent
Main ingredientsFlour, spiced seawater, onions, potatoes, chickpeas
VariationsSev puri, Puri
  • [[:b:Lua error in Module:WikidataIB at line 482: attempt to index field 'wikibase' (a nil value).|Cookbook: Panipuri]]
  •   Lua error in Module:Commons_link at line 64: attempt to index field 'wikibase' (a nil value).
{{Infobox food
| name             = <!--####DON'T ADD ANY OTHER NAME HERE####--> Panipuri
| image            = Gol Guppas-Noida-UP-SP001.jpg
| alternate_name   = Sanskrit name - Jalapatra<br>
''Paani patashi''/''Pani puri'' ([[Madhya Pradesh]], [[Uttar Pradesh]])<br>''Golgappa'', ''gol gappay'' or ''gol gappa'' ([[Haryana]], [[Delhi]], [[Punjab]], [[Karachi|Karachi or other Urdu-speaking regions of Pakistan]])<br>''Fuchka"/"Phuchka''/''Phuska/Puska''/''Fuska'' ([[Bengal]], [Bangladesh and West Bengal] [[Bihar]], [[Nepal]], [[Odisha|North Odisha]] and [[Assam]])<br>''Gupchup'' ([[Odisha]], [[Andhra Pradesh]], [[Telangana]], Southern [[Jharkhand]], [[Chhattisgarh]])
| image_size       = 250px
| caption          = Panipuri
| country          =[[India]] 
| region           =[[Indian subcontinent]] 
| type             =[[Snack]]
| state            =
| main_ingredient  = Flour, [[spiced seawater]], onions, potatoes,
 [[chickpea]]s
| variations       =[[Sev puri]], [[Puri (food)|Puri]]
| calories         =
| other            =
|name_italics=}}

TemplateData

TemplateData documentation used by VisualEditor and other tools
See a monthly parameter usage report for Template:Infobox food/doc in articles based on its TemplateData.

TemplateData for Infobox food/doc

View/edit template data here

Infobox for type of food

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Name of foodname

title on top of the infobox. If omitted, it will be default to the page title

Stringoptional
Name languagename_lang

ISO 639 language code, if the name is not in English

Stringoptional
Italicize namename_italics

Set true to italicise the name—if it is in a non-English language that uses the Roman alphabet, for example

Stringoptional
Image filenameimage

Filename for image. Do not prefix with File: or Image:, or surround with square brackets [[]]. If there is no image available, leave the field empty.

Filesuggested
Width of imageimage_size

Optional custom image width, e.g. 240 'px' is not required

Stringoptional
Image alt stringalt image_alt

Alt string for image

Stringsuggested
Image captioncaption

Leave empty for no image caption.

Stringoptional
Alternate namealternate_name

Alternate name for the dish

Stringoptional
Type of dishtype

The dish is an instance of this kind of food

Example
pie
Stringoptional
Course servedcourse

One of: Appetizer, Dessert, Drink, Main course, Salad, Side dish

Stringoptional
Place of originplace_of_origin

Place of origin of the dish

Stringoptional
Region of originregion

Region or state the dish was developed

Stringoptional
Associated cuisineassociated_cuisine

Associated cuisine, preferably linking to an existing 'Fooian cuisine' article

Stringoptional
Creatorcreator creators

Creator or creators of the dish

Stringoptional
Yearyear

Year dish was invented

Numberoptional
Min cooking timemintime time1

Minimum amount of time to cook the dish

Stringoptional
Max cooking timemaxtime time2

Maximum amount of time to cook the dish

Stringoptional
Serving temperatureserved

Serving temperature for the dish

Stringoptional
Main ingredientmain_ingredient

Main ingredient(s) for the dish. {{Plainlist}} may be used to separate multiple items

Stringoptional
Minor ingredientsminor_ingredient

Minor ingredient(s) for the dish. {{Plainlist}} may be used to separate multiple items

Stringoptional
Variationsvariations

Variations in recipe to make the dish

Stringoptional
Serving sizeserving_size

Default serving size ('100 g' for the standard 100 g serving size)

Stringoptional
Calories per servingcalories

Use a raw number for automatic conversion to kJ.

Stringoptional
Calories referencecalories_ref

Citation for the calories per serving

Stringoptional
Protein per servingprotein

The amount of protein in the dish per serving.

Stringoptional
Fat per servingfat

The amount of fat in the dish per serving.

Stringoptional
Carbohydrate per servingcarbohydrate

The amount of carbohydrate in the dish per serving.

Stringoptional
Glycemic Indexglycemic_index

Glycemic index (GI). Must be a simple number (e.g., without references or standard error mean)

Numberoptional
Similar dishessimilar_dish

Any similar dish(es)

Stringoptional
Other informationother

no description

Stringoptional
Link stylesbelowstyle

CSS style for commons and cookbook links

Stringoptional
No recipesno_recipes

If true, suppress display of cookbook link

Default
false
Stringoptional
Cookbook pagecookbook

Provides a link to the Cookbook at Wikibooks using a title other than Wikipedia's page name. If missing, uses wikidata.

Stringoptional
No commonsno_commons

If true, suppress display of commons link

Default
false
Stringoptional
Commons pagecommons

Override wikidata commons link by manually specifying commons page

Stringoptional

Microformats

Adr

The HTML mark-up produced by this template includes an adr microformat that makes postal addresses or their component parts (regions, postal codes, country names, etc) readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.

Classes used

The HTML classes of this microformat include:

  • adr
  • country-name
  • extended-address
  • locality
  • postal-code
  • region
  • street-address
Please do not rename or remove these classes.

Recipe

The HTML mark-up produced by this template includes an hRecipe microformat that makes food recipes and information about individual foods readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.

Classes used

The HTML classes of this microformat include:

  • author
  • duration
  • fn
  • ingredient
  • instructions
  • nutrition
  • published
  • tag
  • type
  • yield
Please do not rename or remove these classes.

See also

Usage

{{Infobox food
| name = 
| name_lang =
| name_italics =
| image = 
| image_size =
| image_alt =
| caption = 
| alternate_name = 
| type = 
| course = 
| place_of_origin = 
| region = 
| associated_cuisine = 
| creator = <!-- or | creators = -->
| year = 
| mintime = 
| maxtime = 
| served = 
| main_ingredient = 
| minor_ingredient = 
| variations = 
| serving_size = 100 g
| calories = 
| calories_ref =
| protein = 
| fat = 
| carbohydrate = 
| glycemic_index = 
| similar_dish = 
| cookbook =
| commons =
| other = 
| no_recipes = true
}}

Parameters

Copy and paste the infobox above into the desired article and fill in the values after the equals (=) sign. All fields are optional. For questions or examples, please see the discussion page.

Parameter Description
name This comes to the top of the box. If omitted, it will be inferred from the page title.
name_lang ISO 639 language code, if the name is not in English
name_italics Set |name_italics=true to italicise the name—if it is in a non-English language that uses the Roman alphabet, for example
image Do not prefix with File: or Image:, or surround with square brackets [[]]. If there is no image available, leave the field empty.
caption Leave empty for no image caption.
image_size Optional custom image size, e.g. 240 "px" is not required
image_alt Alt text for the image. See MOS:ALT
alternate_name Alternate name for the dish.
place_of_origin Place of origin of the dish.
region Region or state the dish was developed.
associated_cuisine Associated cuisine, preferably linking to an existing Fooian cuisine article.
creator or creators Creator or creators of the dish, for dishes with a known, well documented creator(s).
year Year dish was invented.
mintime (time1) Minimum time required to cook the dish.
maxtime (time2) Maximum time required to cook the dish.
type e.g. "pie", "biscuit", etc.
course Appetizer, Dessert, Drink, Main course, Salad, Side dish.
served Serving temperature for the dish.
main_ingredient Main ingredient/s for the dish. {{Plainlist}} may be used to separate multiple items.
minor_ingredient Ditto minor ingredient/s for the dish.
variations Variations for making the dish.
serving_size Default serving size ("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). Must be a simple number (e.g., without references or standard error mean.)
similar_dish Any similar dish/es.
other Any other information.
cookbook Provides a link to the Cookbook at Wikibooks using a title other than Wikipedia's page name
commons override wikidata commons link by manually specifying commons page
no_recipes Set |no_recipes=true to suppress the addition of recipe search links; omit to allow.
no_commons Set |no_commons=true to suppress the addition of Commons search links; omit to allow.

Example

Panipuri
Panipuri
Alternative namesSanskrit name - Jalapatra
Paani patashi/Pani puri (Madhya Pradesh, Uttar Pradesh)
Golgappa, gol gappay or gol gappa (Haryana, Delhi, Punjab, Karachi or other Urdu-speaking regions of Pakistan)
Fuchka"/"Phuchka/Phuska/Puska/Fuska (Bengal, [Bangladesh and West Bengal] Bihar, Nepal, North Odisha and Assam)
Gupchup (Odisha, Andhra Pradesh, Telangana, Southern Jharkhand, Chhattisgarh)
TypeSnack
Place of originIndia
Region or stateIndian subcontinent
Main ingredientsFlour, spiced seawater, onions, potatoes, chickpeas
VariationsSev puri, Puri
  • [[:b:Lua error in Module:WikidataIB at line 482: attempt to index field 'wikibase' (a nil value).|Cookbook: Panipuri]]
  •   Lua error in Module:Commons_link at line 64: attempt to index field 'wikibase' (a nil value).
{{Infobox food
| name             = <!--####DON'T ADD ANY OTHER NAME HERE####--> Panipuri
| image            = Gol Guppas-Noida-UP-SP001.jpg
| alternate_name   = Sanskrit name - Jalapatra<br>
''Paani patashi''/''Pani puri'' ([[Madhya Pradesh]], [[Uttar Pradesh]])<br>''Golgappa'', ''gol gappay'' or ''gol gappa'' ([[Haryana]], [[Delhi]], [[Punjab]], [[Karachi|Karachi or other Urdu-speaking regions of Pakistan]])<br>''Fuchka"/"Phuchka''/''Phuska/Puska''/''Fuska'' ([[Bengal]], [Bangladesh and West Bengal] [[Bihar]], [[Nepal]], [[Odisha|North Odisha]] and [[Assam]])<br>''Gupchup'' ([[Odisha]], [[Andhra Pradesh]], [[Telangana]], Southern [[Jharkhand]], [[Chhattisgarh]])
| image_size       = 250px
| caption          = Panipuri
| country          =[[India]] 
| region           =[[Indian subcontinent]] 
| type             =[[Snack]]
| state            =
| main_ingredient  = Flour, [[spiced seawater]], onions, potatoes,
 [[chickpea]]s
| variations       =[[Sev puri]], [[Puri (food)|Puri]]
| calories         =
| other            =
|name_italics=}}

TemplateData

TemplateData documentation used by VisualEditor and other tools
See a monthly parameter usage report for Template:Infobox food/doc in articles based on its TemplateData.

TemplateData for Infobox food/doc

View/edit template data here

Infobox for type of food

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Name of foodname

title on top of the infobox. If omitted, it will be default to the page title

Stringoptional
Name languagename_lang

ISO 639 language code, if the name is not in English

Stringoptional
Italicize namename_italics

Set true to italicise the name—if it is in a non-English language that uses the Roman alphabet, for example

Stringoptional
Image filenameimage

Filename for image. Do not prefix with File: or Image:, or surround with square brackets [[]]. If there is no image available, leave the field empty.

Filesuggested
Width of imageimage_size

Optional custom image width, e.g. 240 'px' is not required

Stringoptional
Image alt stringalt image_alt

Alt string for image

Stringsuggested
Image captioncaption

Leave empty for no image caption.

Stringoptional
Alternate namealternate_name

Alternate name for the dish

Stringoptional
Type of dishtype

The dish is an instance of this kind of food

Example
pie
Stringoptional
Course servedcourse

One of: Appetizer, Dessert, Drink, Main course, Salad, Side dish

Stringoptional
Place of originplace_of_origin

Place of origin of the dish

Stringoptional
Region of originregion

Region or state the dish was developed

Stringoptional
Associated cuisineassociated_cuisine

Associated cuisine, preferably linking to an existing 'Fooian cuisine' article

Stringoptional
Creatorcreator creators

Creator or creators of the dish

Stringoptional
Yearyear

Year dish was invented

Numberoptional
Min cooking timemintime time1

Minimum amount of time to cook the dish

Stringoptional
Max cooking timemaxtime time2

Maximum amount of time to cook the dish

Stringoptional
Serving temperatureserved

Serving temperature for the dish

Stringoptional
Main ingredientmain_ingredient

Main ingredient(s) for the dish. {{Plainlist}} may be used to separate multiple items

Stringoptional
Minor ingredientsminor_ingredient

Minor ingredient(s) for the dish. {{Plainlist}} may be used to separate multiple items

Stringoptional
Variationsvariations

Variations in recipe to make the dish

Stringoptional
Serving sizeserving_size

Default serving size ('100 g' for the standard 100 g serving size)

Stringoptional
Calories per servingcalories

Use a raw number for automatic conversion to kJ.

Stringoptional
Calories referencecalories_ref

Citation for the calories per serving

Stringoptional
Protein per servingprotein

The amount of protein in the dish per serving.

Stringoptional
Fat per servingfat

The amount of fat in the dish per serving.

Stringoptional
Carbohydrate per servingcarbohydrate

The amount of carbohydrate in the dish per serving.

Stringoptional
Glycemic Indexglycemic_index

Glycemic index (GI). Must be a simple number (e.g., without references or standard error mean)

Numberoptional
Similar dishessimilar_dish

Any similar dish(es)

Stringoptional
Other informationother

no description

Stringoptional
Link stylesbelowstyle

CSS style for commons and cookbook links

Stringoptional
No recipesno_recipes

If true, suppress display of cookbook link

Default
false
Stringoptional
Cookbook pagecookbook

Provides a link to the Cookbook at Wikibooks using a title other than Wikipedia's page name. If missing, uses wikidata.

Stringoptional
No commonsno_commons

If true, suppress display of commons link

Default
false
Stringoptional
Commons pagecommons

Override wikidata commons link by manually specifying commons page

Stringoptional

Microformats

Adr

The HTML mark-up produced by this template includes an adr microformat that makes postal addresses or their component parts (regions, postal codes, country names, etc) readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.

Classes used

The HTML classes of this microformat include:

  • adr
  • country-name
  • extended-address
  • locality
  • postal-code
  • region
  • street-address
Please do not rename or remove these classes.

Recipe

The HTML mark-up produced by this template includes an hRecipe microformat that makes food recipes and information about individual foods readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.

Classes used

The HTML classes of this microformat include:

  • author
  • duration
  • fn
  • ingredient
  • instructions
  • nutrition
  • published
  • tag
  • type
  • yield
Please do not rename or remove these classes.

See also