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
subst TemplateData
→‎Example: fix example
 
(11 intermediate revisions by 5 users not shown)
Line 3:
{{#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
}}
 
== Usage ==
<presyntaxhighlight lang="wikitext" style="overflow:auto;">
{{Infobox food
| name =
| name_lang =
| name_italics =
| image =
| image_sizeimage_upright =
| image_alt =
| caption =
Line 17 ⟶ 19:
| type =
| course =
| countryplace_of_origin =
| region =
| national_cuisineassociated_cuisine =
| creator = <!-- or | creators = -->
| year =
Line 41 ⟶ 43:
| no_recipes = true
}}
</syntaxhighlight>
</pre>
{{clear}}
 
Line 60 ⟶ 62:
| 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>240upright=yes</code> "px"will specify reasonable size for images with isvertical notaspect requiredratio
|-
| image_alt || Alt text for the image. See [[MOS:ALT]]
Line 66 ⟶ 68:
| 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 country.
|-
| creator ''or'' creators || Creator or creators of the dish, for dishes with a known, well documented creator(s).
|-
| year || Year dish was invented.
Line 118 ⟶ 120:
| 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>
 
{{#ifexist:== {{SUBJECTSPACE}}:{{ROOTPAGENAME}}/TemplateData ==
{{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
 
{{TemplateData header|noheader=1}}
|<span class="toolbar class" style="font-size:150%; font-weight:bold;">[[File:Templatetools.svg|50px]]Template Data </span> &lbrack;{{plainlink|url={{fullurl:{{SUBJECTSPACE}}:{{ROOTPAGENAME}}/TemplateData}}|name=view}}&rbrack; &lbrack;{{plainlink|url={{fullurl:{{SUBJECTSPACE}}:{{ROOTPAGENAME}}/TemplateData|action=edit}}|name=edit}}&rbrack; &lbrack;{{plainlink|url={{fullurl:{{SUBJECTSPACE}}:{{ROOTPAGENAME}}/TemplateData|action=history}}|name=history}}&rbrack; &lbrack;{{plainlink|url={{fullurl:{{SUBJECTSPACE}}:{{ROOTPAGENAME}}/TemplateData|action=purge}}|name=purge}}&rbrack;
View/edit template data '''[[:Template:Infobox food/TemplateData|here]]'''
 
{{Infobox food/TemplateData}}
{{TemplateData header}}
{{collapse bottom}}
{{{{SUBJECTSPACE}}:{{ROOTPAGENAME}}/TemplateData}}
 
|<span class="toolbar class" style="font-size:150%; font-weight:bold;">[[File:Template-question.svg|50px]]Template Data </span> &lbrack;{{plainlink|url={{fullurl:{{SUBJECTSPACE}}:{{ROOTPAGENAME}}/TemplateData|action=edit&preload=Template:TemplateData/preload}}|name=create}}&rbrack; &lbrack;{{plainlink|url={{fullurl:{{SUBJECTSPACE}}:{{ROOTPAGENAME}}/TemplateData|action=purge}}|name=purge}}&rbrack;
}}
 
 
== Microformats ==
Line 138 ⟶ 173:
 
== See also ==
* {{clc|Pages using infobox food with unknown parameters}}
* [[Template:Infobox nutritional value]]
* [[Template:Infobox brand]]

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