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
Undid revision 689496378 by Bligaget (talk)
→‎Example: fix example
 
(30 intermediate revisions by 20 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 |cookbook |commons| other
}}
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
 
== Usage ==
<presyntaxhighlight lang="wikitext" style="overflow:auto;">
 
<pre style="overflow:auto;">
{{Infobox 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 =
| no_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]].
 
Line 49 ⟶ 56:
| name_lang || [[ISO 639]] language code, if the ''name'' is not in English
|-
| name_italics || Set {{para|name_italics|true}} to italicise the name — ifname—ifit'sis in a non-English language that uses ourthe 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'sis no image available, leave the field empty.
|-
| caption || Leave empty for no image caption.
|-
| image_size image_upright || Optional custom image size, e.gas fraction of default user-specified image size. <code>240pxupright=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.
|-
| country place_of_origin || CountryPlace 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.
| national_cuisine || Cuisine by nationality.
|-
| creator ''or'' creators || Creator or creators of the dish, for dishes with a known, well documented creator(s).
|-
| year || Year dish was invented.
Line 97 ⟶ 106:
| 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.
Line 103 ⟶ 112:
| other || Any other information.
|-
| cookbook || Provides a link to the Cookbook at Wikibooks using a title other than Wikipedia's page name
| no_recipes || Set {{para|no_recipes|true}} to suppress the addition of recipe search links.
|-
| commons || override wikidata commons link by manually specifying commons page
| no_commons || Set {{para|no_commons|true}} to suppress the addition of Commons search links.
|-
| 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 116 ⟶ 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|Prepared foodFood]]
<!----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