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
Sardanaphalus (talk | contribs)
119,752 edits
Generic template demo, See also position
→‎Example: fix example
 
(44 intermediate revisions by 29 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]]) -->
{{Generic template demo |name |image |caption |alternate_name |country |region |national_cuisine |creator={{{creator}}} or {{{creators}}} |year |time1 |time2 |course |type |served |main_ingredient |minor_ingredient |variations |serving_size=100 g |calories |protein |fat |carbohydrate |glycemic_index |similar_dish |other |complexity}}
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}}
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
{{Parameter names example
== Usage ==
|name |image |image_size |image_alt |caption |alternate_name |place_of_origin |region |associated_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 |cookbook |commons| other
}}
 
== Usage ==
<pre style="overflow:auto;">
<syntaxhighlight lang="wikitext" style="overflow:auto;">
{{Infobox prepared food
{{Infobox food
| name =
| image name =
| name_lang =
| name_italics =
| image =
| image_upright =
| image_alt =
| caption =
| alternate_name =
| countrytype =
| region course =
| national_cuisineplace_of_origin =
| region =
| creator = <!-- or | creators = -->
| year associated_cuisine =
| creator = <!-- or | creators = -->
| time1 =
| time2 year =
| course mintime =
| type maxtime =
| served =
| main_ingredient =
| minor_ingredient =
Line 25 ⟶ 32:
| serving_size = 100 g
| calories =
| calories_ref =
| protein =
| fat =
Line 30 ⟶ 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"
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 [[{{TALKSPACE}}:{{BASEPAGENAME}}|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 {{para|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 <code>File:</code> or <code>Image:</code>, or surround with square brackets <code>[[]]</code>. If there is no image available, leave the field empty.
|-
| caption || Leave empty for no image caption.
|-
| 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
|-
| 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. <!--'''Do not use''' if redundant to {{para|course}}-->
|-
| 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 ==
* '''name'''&nbsp;– This comes to the top of the box. If omitted, will be inferred from the page title.
{{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
* '''image'''&nbsp;– If there's not an image available, leave the field empty.
{{TemplateData header|noheader=1}}
* '''caption'''&nbsp;– Leave empty for no image caption.
View/edit template data '''[[:Template:Infobox food/TemplateData|here]]'''
* '''alternate name'''&nbsp;– Alternate name for the dish.
{{Infobox food/TemplateData}}
* '''country'''&nbsp;– Country of origin of the dish.
{{collapse bottom}}
* '''region'''&nbsp;– Region or state the dish was developed.
* '''national_cuisine'''&nbsp;– Cuisine by nationality.
* '''creator'''&nbsp;– Creator(s) of the dish.
* '''year'''&nbsp;– Year of invention of the dish.
* '''time1'''&nbsp;– Min time for cooking the dish.
* '''time2'''&nbsp;– Max time for cooking the dish.
* '''course'''&nbsp;– Appetizer, Dessert, Drink, Main course, Salad, or Side dish.
* '''type'''&nbsp;– e.g. "pie", "biscuit", etc. '''Do not use''' if redundant to {{Para|course}}
* '''served'''&nbsp;– Serving temperature for the dish.
* '''main_ingredient'''&nbsp;– Main ingredient(s) for the dish. Separate multiple values by using {{tl|Plainlist}}.
* '''minor_ingredient'''&nbsp;– Minor ingredient(s) for the dish.
* '''variations'''&nbsp;– Variations for making the dish.
* '''serving_size'''&nbsp;– Size of the default serving, (use 100 g for the standard 100 [[gram|g]] serving size).
* '''calories'''&nbsp;– Calories per serving, use a raw number for automatic conversion to kJ.
* '''calories_ref'''&nbsp;– Citation for the calories per serving.
* '''protein'''&nbsp;– The amount of protein in the dish per serving.
* '''fat'''&nbsp;– The amount of fat in the dish per serving.
* '''carbohydrate'''&nbsp;– The amount of carbohydrate in the dish per serving.
* '''glycemic_index'''&nbsp;– Glycemic index (GI).
* '''similar_dish'''&nbsp;– Similar dish.
* '''other'''&nbsp;– Other information.
* '''complexity'''&nbsp;– The complexity of cooking.
* '''no_recipes'''&nbsp;– set to 'true' to suppress the recipe search links
* '''no_commons'''&nbsp;– set to 'true' to suppress the commons search links
 
== Microformats ==
Line 73 ⟶ 169:
===Adr===
{{UF-adr}}
 
===Recipe===
{{UF-hrecipe}}
 
== See also ==
* {{clc|Pages using infobox food with unknown parameters}}
* [[Template:Nutritional value]]
* [[Template:Infobox nutritional value]]
* [[Template:Infobox brand]]
 
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!----CATEGORIES BELOW THIS LINE, PLEASE:---->
[[Category:Food infobox templates|Prepared foodFood]]
}}</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