Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Template:Infobox food/doc: Difference between revisions





Template  

Talk  



Language  

Watch  

View history  

Edit  






Browse history interactively
 Previous edit
Content deleted Content added
VisualWikitext
→‎Example: fix example
 
(38 intermediate revisions by 26 users not shown)
Line 1:
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}}
{{Parameter names example
|name |image |image_size |image_alt |caption |alternate_name |countryplace_of_origin |region |national_cuisineassociated_cuisine |creator={{{creator}}} or {{{creators}}} |year |time1 |time2 |type |course |served |main_ingredient |minor_ingredient |variations |serving_size=100 g |calories |protein |fat |carbohydrate |glycemic_index |similar_dish |othercookbook |complexitycommons| other
}}
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
 
== Usage ==
<syntaxhighlight lang="wikitext" style="overflow:auto;">
 
{{Infobox food
<pre style="overflow:auto;">
{{Infobox prepared food
| name =
| name_lang =
| name_italics =
| image =
| image_upright =
| image_alt =
| caption =
| alternate_name =
| countrytype =
| course =
| place_of_origin =
| region =
| national_cuisineassociated_cuisine =
| creator = <!-- or | creators = -->
| year =
| mintime =
| maxtime =
| type =
| course =
| served =
| main_ingredient =
Line 28 ⟶ 32:
| serving_size = 100 g
| calories =
| calories_ref =
| protein =
| fat =
Line 33 ⟶ 38:
| glycemic_index =
| similar_dish =
| cookbook =
| commons =
| other =
| complexityno_recipes = true
}}
</syntaxhighlight>
</pre>
{{clear}}
 
== 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 [[{{TALKSPACE}}:{{BASEPAGENAME}}|discussion page]].
 
{| class="wikitable"
{{Aligned table
! Parameter !! Description
|col1style=vertical-align:middle;font-style:italic;white-space:nowrap;padding-right:1.5em;
|-
|col2style=vertical-align:middle;
| 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_italicsname_lang | Set {{para|name_italics|true}} to[[ISO italicise639]] language code, if the ''name'' is if it'snotina non-English language that uses our alphabet, for example
|-
| image | If there's no image available, leave the field empty.
| name_italics || Set {{para|name_italics|true}} to italicise the name—if it is in a non-English language that uses the Roman alphabet, for example
| caption | Leave empty for no image caption.
|-
| alternate_name | Alternate name for the dish.
| image || Do not prefix with <code>File:</code> or <code>Image:</code>, or surround with square brackets <code>[[]]</code>. If there is no image available, leave the field empty.
| country | Country of origin of the dish.
|-
| region | Region or state the dish was developed.
| caption || Leave empty for no image caption.
| national_cuisine | Cuisine by nationality.
|-
| creator {{noitalic|{{smaller|or}}}} creators | Creator or creators of the dish.
| image_upright || Optional custom image size, as fraction of default user-specified image size. <code>upright=yes</code> will specify reasonable size for images with vertical aspect ratio
| year | Year dish was invented.
|-
| mintime (time1) | Minimum time required to cook the dish.
| image_alt || Alt text for the image. See [[MOS:ALT]]
| maxtime (time2) | Maximum time required to cook the dish.
|-
| type | e.g. "pie", "biscuit", etc. <!--'''Do not use''' if redundant to {{para|course}}-->
| alternate_name || Alternate name for the dish.
| course | Appetizer, Dessert, Drink, Main course, Salad, Side dish.
|-
| served | Serving temperature for the dish.
| place_of_origin || Place of origin of the dish.
| main_ingredient | Main ingredient/s for the dish. {{tl|Plainlist}} may be used to separate multiple items.
|-
| minor_ingredient | Ditto minor ingredient/s for the dish.
| variationsregion || VariationsRegion foror makingstate the dish was developed.
|-
| serving_size | Default serving size ("100 g" for the standard 100 [[gram|g]] serving size).
| associated_cuisine || Associated cuisine, preferably linking to an existing ''Fooian cuisine'' article.
| calories | Calories per serving. Use a raw number for automatic conversion to kJ.
|-
| calories_ref | Citation for the calories per serving.
| creator ''or'' creators || Creator or creators of the dish, for dishes with a known, well documented creator(s).
| protein | The amount of protein in the dish per serving.
|-
| fat | The amount of fat in the dish per serving.
| carbohydrateyear | The amount of carbohydrate in the || Year dish perwas servinginvented.
|-
| glycemic_index | Glycemic index (GI).
| similar_dishmintime (time1) || Minimum |time required to Anycook similarthe dish/es.
|-
| other | Any other information.
| maxtime (time2) || Maximum time required to cook the dish.
| complexity | Numeric rating 1 (Easy) to 5 (Very difficult) for dish's cooking complexity.
|-
| no_recipes | Set {{para|no_recipes|true}} to suppress the addition of recipe search links.
| type || e.g. "pie", "biscuit", etc. <!--'''Do not use''' if redundant to {{para|course}}-->
| no_commons | Set {{para|no_commons|true}} to suppress the addition of Commons search links.
|-
}}
| course || Appetizer, Dessert, Drink, Main course, Salad, Side dish.
|-
| served || Serving temperature for the dish.
|-
| main_ingredient || Main ingredient/s for the dish. {{tl|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 [[gram|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 {{para|no_recipes|true}} to suppress the addition of recipe search links; omit to allow.
|-
| no_commons || Set {{para|no_commons|true}} to suppress the addition of Commons search links; omit to allow.
|}
==Example==
{{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_upright = 1.1
| 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=}}
<syntaxhighlight lang="moin" style="overflow:auto;">
{{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_upright = 1.1
| 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=}}
</syntaxhighlight>
 
== TemplateData ==
{{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{TemplateData header|noheader=1}}
View/edit template data '''[[:Template:Infobox food/TemplateData|here]]'''
{{Infobox food/TemplateData}}
{{collapse bottom}}
 
== Microformats ==
Line 87 ⟶ 173:
 
== See also ==
* {{clc|Pages using infobox food with unknown parameters}}
* [[Template:Infobox nutritional value]]
* [[Template:Infobox brand]]
 
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
[[Category:Food infobox templates|Food]]
<!----CATEGORIES BELOW THIS LINE, PLEASE:---->
}}</includeonly>
[[Category:Food infobox templates|Prepared food]]
}}
</includeonly>

Retrieved from "https://en.wikipedia.org/wiki/Template:Infobox_food/doc"
 




Languages

 



This page is not available in other languages.
 

Wikipedia




Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop