Template:Infobox food/doc
跳转到导航
跳转到搜索
脚本错误:没有“Message box”这个模块。 Template:Parameter names example
用法[编辑]
{{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 | 填写“true”则会使名称显示为斜体(通常没有必要)。 |
| image | 圖片。如果沒有適用的圖片,略過此欄。不要在前面加上File:或Image:,不然會出現黑色的多於括弧[[]]。
|
| caption | 圖片說明。若無則保留空白。 |
| image_size | 可選的自定義圖片大小,例如 240px
|
| alternate_name | 食物別稱。食物的其他名稱。 |
| country | 起源國家。即食物的發源國家。 |
| region | 起源地。食物發源的特定區域。 |
| national_cuisine | 某家菜或菜系。即食物属于哪个国家或哪个地方的菜系。(如:“日本料理”、“美国菜”等) |
| creator 或 creators | 首創者。食物的發明人。 |
| year | 菜色被發明的那一年。 |
| mintime (time1) | 烹飪所需的最短時間。 |
| maxtime (time2) | 烹飪所需的最長時間。 |
| type | 比如“点心”、“海鲜”、“素菜”等等。 |
| course | 上菜順序。即開胃菜 / 前菜、主菜、甜點等。 |
| served | 上菜溫度。食物招待時的溫度。 |
| main_ingredient | 主要成分。食物的主要食材。 食材较多时可以考虑使用{{Plainlist}}模板。 |
| minor_ingredient | 次要成分。 |
| variations | 菜品变种。食物的变种。 |
| serving_size | 上菜分量。通常上菜的分量,比如500克。 |
| calories | 熱量。每分食物大約含有的熱量。單位以每份千卡做計算。 |
| calories_ref | 每份食物热量的参考来源出处。 |
| protein | 蛋白质。每分食物大约含有的蛋白质。如需要填入更多營養標籤資料,請使用訊息框{{营养值}}。 |
| fat | 脂肪。每分食物大约含有的脂肪。 |
| carbohydrate | 碳水化合物。每分食物大约含有的糖/碳水。 |
| glycemic_index | 升糖指数。即GI。 |
| similar_dish | 类似的食物/菜肴。 |
| 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.
|
模板兼容[编辑]
对原T:Infobox Beverage模板的兼容[编辑]
以龐貝藍鑽特級琴酒条目为例。 Template:Infobox Beverage
{{Infobox Beverage
| name = 龐貝藍鑽特級琴酒<br />Bombay Sapphire
| image = [[Image:Bombay-sapphire.jpg|80px]]
| type = [[琴酒]]
| abv = 40%(英國、加拿大、澳洲)<br>47%(美國、出口)
| proof = 80(英國、加拿大、澳洲)<br>94(美國、出口)
| manufacturer = Bombay Spirits Co., Ltd.
| distributor = [[百加得]]集團
| origin = [[英國]]
| introduced = 1987年
| discontinued =
| colour = 無色
| flavour =
| variants =
| related = Bombay Original Dry
| website = [http://www.bombaysapphire.com/ bombaysapphire.com]
}}
对原T:Infobox Bottled Water模板的兼容[编辑]
以依雲条目为例。 脚本错误:没有“Infobox”这个模块。
{{Infobox Bottled Water
|brand = 依雲<br />Evian
|country = {{FRA}}
|source = 埃維昂萊班
|type = 無氣泡
|ph = 7.18
|ca = 78
|mg = 23
|si =
|cl = 2.2
|c2 = 357
|ni = 3.8
|k = 0.75
|na = 5.5
|s = 10
|tds =
|website = http://www.evian.com
|img_logo = <!-- 合理使用文件:Logo_Evian.jpg -->
}}
对原T:Infobox Tea模板的兼容[编辑]
以铁观音条目为例。 脚本错误:没有“Infobox”这个模块。
{{Infobox_Tea |
Tea_name = 鐵觀音 |
Tea_type = [[青茶]] |
Tea_color = Black |
Tea_image = [[File:Tieguanyin2.jpg|300px]] |
Tea_origin = [[中國]] |
Tea_names = 紅心歪尾桃 |
Tea_quick = [[中國十大名茶]]之一
}}
微格式[编辑]
已隱藏部分未翻譯内容,歡迎參與翻譯。
<templatedata> { "params": {}, "format": "block" } </templatedata>
參見[编辑]