Template:Infobox food

维基百科,自由的百科全书
跳转至: 导航搜索
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]
{{{name}}}
[[File:{{{image}}}|frameless]]
{{{caption}}}
別稱 {{{alternate_name}}}
類型 {{{type}}}
上菜順序 {{{course}}}
起源地 {{{country}}}
地區 {{{region}}}
相關飲食 {{{national_cuisine}}}
發明者 {{{creator}}} or {{{creators}}}
發明時間 {{{year}}}
烹調時間
上菜溫度 {{{served}}}
主要成分 {{{main_ingredient}}}
常用成分 {{{minor_ingredient}}}
菜色變化 {{{variations}}}
食物熱量
(每100 )
{{{calories}}} 千卡
营养学
(每100 )
蛋白質 {{{protein}}} 
脂肪 {{{fat}}} 
碳水化合物 {{{carbohydrate}}} 
類似菜餚 {{{similar_dish}}}
其他資訊 {{{other}}}

用法[编辑]

{{Infobox food
| name = 
| image = 
| caption = 
| alternate_name = 
| country = 
| region = 
| national_cuisine = 
| creator =           <!-- or | creators = -->
| year = 
| mintime = 
| maxtime = 
| type = 
| course = 
| served = 
| main_ingredient = 
| minor_ingredient = 
| variations = 
| serving_size = 100 g
| calories = 
| protein = 
| fat = 
| carbohydrate = 
| glycemic_index = 
| similar_dish = 
| other = 
}}

參數[编辑]

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 discussion page.

Parameter Description
name 名稱。此參數顯現於信息框頂端,若忽略不填,將自動顯示以條目標題。
name_lang ISO 639 語言代碼,如果“名稱”不是英語
name_italics Set |name_italics=true to italicise the name — if it's in a non-English language that uses our alphabet, for example
image 圖片。如果沒有適用的圖片,略過此欄。不要在前面加上File:Image:,不然會出現黑色的多於括弧[[]]
caption 圖片說明。若無則保留空白。
image_size 可選的自定義圖片大小,例如 240px
alternate_name 食物別稱。食物的其他名稱。
country 起源國家。即食物的發源國家。
region 起源地。食物發源的特定區域。
national_cuisine Cuisine by nationality.
creator creators 首創者。食物的發明人。
year 那個菜色被發明的那一年。
mintime (time1) 烹飪所需的最短時間。
maxtime (time2) 烹飪所需的最長時間。
type e.g. "pie", "biscuit", etc.
course 上菜順序。即開胃菜 / 前菜、主菜、甜點等。
served 上菜溫度。食物招待時的溫度。
main_ingredient 主要成分。食物的主要食材。 {{Plainlist}} may be used to separate multiple items.
minor_ingredient Ditto minor ingredient/s for the dish.
variations 菜色變化。食物的其他變化。
serving_size Default serving size ("100 g" for the standard 100 g serving size).
calories 熱量。每分食物大約含有的熱量。單位以每份千卡做計算。
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).
similar_dish Any similar dish/es.
other 其他資訊
no_recipes Set |no_recipes=true to suppress the addition of recipe search links.
no_commons Set |no_commons=true to suppress the addition of Commons search links.

微格式[编辑]

Adr[编辑]

The HTML mark up produced by this template includes an ADR microformat, which makes postal addresses (or their component parts, such as regions, postal codes or country-names) parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

ADR uses HTML classes including:

  • adr
  • country-name
  • extended-address
  • locality
  • postal-code
  • region
  • street-address

Please do not rename or remove these classes.

Recipe[编辑]

The HTML mark up produced by this template includes an hRecipe microformat, which makes food recipes and individual foods parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person. For more information about the use of microformats on Wikipedia, please see the microformat project.

hRecipe uses HTML classes including:

  • author
  • duration
  • fn
  • ingredient
  • instructions
  • nutrition
  • published
  • tag
  • type
  • yield

Please do not rename or remove these classes.

參見[编辑]