update nationality -> country
|
→Example: fix example
|
||
(24 intermediate revisions by 14 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]]) -->
{{Parameter names example
|name |image |image_size |image_alt |caption |alternate_name |
}}
== Usage ==
▲<pre style="overflow:auto;">
{{Infobox food
| name =
| name_lang =
| name_italics =
| image =
| image_upright =
| image_alt =
| caption =
| alternate_name =
|
| course = ▼
| place_of_origin =
| region =
|
| creator =
| year =
| mintime =
| maxtime =
▲| 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>
{{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
|-
| image || Do not prefix with <code>File:</code> or <code>Image:</code>, or surround with square brackets <code>[[]]</code>. If there
|-
| caption || Leave empty for no image caption.
|-
|
|-
| image_alt || Alt text for the image. See [[MOS:ALT]]
Line 61 ⟶ 68:
| alternate_name || Alternate name for 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.
Line 99 ⟶ 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 105 ⟶ 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 118 ⟶ 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 | |
}}</includeonly>▼
▲[[Category:Food infobox templates|Prepared food]]
▲</includeonly>
|