Template:Infobox food/ja: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| name = Infobox food/ja | |||
| bodyclass = hrecipe adr | | bodyclass = hrecipe adr | ||
| | | aboveclass = fn | ||
| | | abovestyle = | ||
| | | above = <includeonly><span {{#if:{{{name_lang|}}}|lang="{{{name_lang}}}"}}>{{#if:{{{name|}}} |{{{name}}} |{{PAGENAMEBASE}} }}</span></includeonly> | ||
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size | | image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{#if:{{{image_size|}}}|{{{image_size|}}}|260px }} |sizedefault=frameless |alt={{{image_alt|{{{alt|}}}}}} }} | ||
| captionstyle = {{#if:{{{caption|}}} |padding-bottom:0.25em;border-bottom:1px solid #aaa;}} | | captionstyle = {{#if:{{{caption|}}} |padding-bottom:0.25em;border-bottom:1px solid #aaa;}} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
Line 12: | Line 13: | ||
| labelstyle = padding-top:0.245em;line-height:1.15em;<!--(modified longitem)--> | | labelstyle = padding-top:0.245em;line-height:1.15em;<!--(modified longitem)--> | ||
padding-right:0.65em;<!--(to ensure some gap between (non-wrapped) labels and subsequent data)--> | padding-right:0.65em;<!--(to ensure some gap between (non-wrapped) labels and subsequent data)--> | ||
| rowclass2 = note | | rowclass2 = note | ||
| label2 = 別名 | | label2 = 別名 | ||
| data2 = {{{alternate_name|{{{alternate name| | | data2 = {{Ifempty|{{{alternate_name|}}}|{{{alternate name|}}}}} | ||
| label3 = 種類 | | label3 = 種類 | ||
| data3 = {{{type|}}} | | data3 = {{{type|}}} | ||
| label4 = | | label4 = フルコース | ||
| data4 = {{{course|}}} | | data4 = {{{course|}}} | ||
| rowclass5 = note | | rowclass5 = note | ||
| label5 = | | label5 = 発祥地 | ||
| class5 = country-name | | class5 = country-name | ||
| data5 = | | data5 = {{{country|}}} | ||
| rowclass7 = note | | rowclass7 = note | ||
| label7 = | | label7 = 地域 | ||
| class7 = region | | class7 = region | ||
| data7 = {{{region|}}} | | data7 = {{{region|}}} | ||
| label9 = | | label9 = 関連[[:Category:各国の食文化|食文化]] | ||
| data9 = | | data9 = {{{national_cuisine|}}} | ||
| rowclass11 = note | | rowclass11 = note | ||
| label11 = | | label11 = 考案者 | ||
| class11 = author | | class11 = author | ||
| data11 = {{ | | data11 = {{ifempty{{{creators|}}}|{{{creator|}}}}} | ||
| label13 = | | label13 = 誕生時期 | ||
| data13 = {{{year|}}} | | data13 = {{{year|}}} | ||
<!----------------------Cooking time-----------------------> | <!----------------------Cooking time-----------------------> | ||
Line 55: | Line 54: | ||
| {{#ifexpr:{{#expr:{{{mintime|{{{time1|}}}}}}>60}} | | {{#ifexpr:{{#expr:{{{mintime|{{{time1|}}}}}}>60}} | ||
<!----(time is "X hour/s Y min":)----> | <!----(time is "X hour/s Y min":)----> | ||
| <!----hours:-->{{rounddown|{{#expr:{{{mintime|{{{time1|}}}}}}/60}}}} <!-- | | <!----hours:-->{{rounddown|{{#expr:{{{mintime|{{{time1|}}}}}}/60}}}}<!-- | ||
<!--(units:)-->[[ | <!--(units:)-->[[時間]]{{#ifeq:{{rounddown|{{#expr:{{{mintime|{{{time1|}}}}}}/60}}}}|1 | |}} <!-- | ||
<!--minutes:-->{{#ifeq:{{#expr:{{{mintime|{{{time1|}}}}}} mod 60}}|0 |<!--(omit if "0 min")--> | <!--minutes:-->{{#ifeq:{{#expr:{{{mintime|{{{time1|}}}}}} mod 60}}|0 |<!--(omit if "0 min")--> | ||
| {{#expr:{{{mintime|{{{time1|}}}}}} mod 60}} [[ | | {{#expr:{{{mintime|{{{time1|}}}}}} mod 60}}[[分]] | ||
}} | }} | ||
<!----(else time is "X minute/s":)----> | <!----(else time is "X minute/s":)----> | ||
| {{{mintime|{{{time1|}}}}}} <!--(units:)-->[[ | | {{{mintime|{{{time1|}}}}}}<!--(units:)-->[[分]]{{#ifeq:{{{mintime|{{{time1|}}}}}}|1 | |}} | ||
}} }} }}<!-- | }} }} }}<!-- | ||
-->{{#iferror: | -->{{#iferror: | ||
Line 68: | Line 67: | ||
max(imum), so insert the "to" before the maximum:)--> to}} <!-- | max(imum), so insert the "to" before the maximum:)--> to}} <!-- | ||
-->{{#ifexpr:{{#expr:{{{maxtime|{{{time2|}}}}}}>60}} <!--("X hour/s Y min" as above)--> | -->{{#ifexpr:{{#expr:{{{maxtime|{{{time2|}}}}}}>60}} <!--("X hour/s Y min" as above)--> | ||
| {{rounddown|{{#expr:{{{maxtime|{{{time2|}}}}}}/60}}}} | | {{rounddown|{{#expr:{{{maxtime|{{{time2|}}}}}}/60}}}}時間{{#ifeq:{{rounddown|{{#expr:{{{maxtime|{{{time2|}}}}}}/60}}}}|1 | |}} <!-- | ||
-->{{#ifeq:{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}}|0 | |{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}} | -->{{#ifeq:{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}}|0 | |{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}}分}} | ||
| {{{maxtime|{{{time2|}}}}}} minute{{#ifeq:{{{maxtime|{{{time2|}}}}}}|1 | | | | {{{maxtime|{{{time2|}}}}}} minute{{#ifeq:{{{maxtime|{{{time2|}}}}}}|1 | |}} | ||
}} }} }}<!-- | }} }} }}<!-- | ||
-->}} }} | -->}} }} | ||
<!---------------------------------------------------------> | <!---------------------------------------------------------> | ||
| label17 = | | label16 = 難易度 | ||
| data16 = <!-- このパラメータは廃止されました。 --> | |||
| label17 = 提供時温度 | |||
| data17 = {{{served|}}} | | data17 = {{{served|}}} | ||
| label19 = | | label19 = 主な材料 | ||
| class19 = ingredient | | class19 = ingredient | ||
| data19 = {{{main_ingredient|}}} | | data19 = {{{main_ingredient|}}} | ||
| label21 = | | label21 = その他お好みで | ||
| class21 = ingredient | | class21 = ingredient | ||
| data21 = {{{minor_ingredient|}}} | | data21 = {{{minor_ingredient|}}} | ||
| label23 = | | label23 = 派生料理 | ||
| data23 = {{{variations|}}} | | data23 = {{{variations|}}} | ||
<!-----------------------Food energy-----------------------> | <!-----------------------Food energy-----------------------> | ||
| label25 = {{longitem|style=line-height:1.1em;white-space:nowrap; | | label25 = {{longitem |style=line-height:1.1em;white-space:nowrap; | ||
| | | 2 = [[生理的熱量|食物エネルギー]]<br/><span style="font-size:90%;font-weight:normal;"><!-- | ||
-->( | -->({{#switch:{{{serving_size|}}} | ||
| 100 grams |100 [[Gram|g]] |100 g |100g = 100 [[ | | 100 grams |100 [[Gram|g]] |100 g |100g = 100 [[グラム|g]]あたり) | ||
| #default = {{{serving_size|}}} | | #default = {{{serving_size|}}}あたり) | ||
}}<!-----></span> | }}<!-----></span> | ||
}} | }} | ||
| class25 = nutrition | | class25 = nutrition | ||
| data25 = {{#if:{{{calories|}}} | | data25 = {{#if:{{{calories|}}} | ||
| {{{calories}}} [[ | | {{{calories}}} [[カロリー|kcal]]<!-- | ||
-->{{#iferror: ({{#expr:{{{calories}}}*4.1868 round 0}} [[ | -->{{#iferror: ({{#expr:{{{calories}}}*4.1868 round 0}} [[ジュール|kJ]])}}<!-- | ||
-->{{{calories_ref|}}} | -->{{{calories_ref|}}} | ||
}} | }} | ||
<!--------------------Nutritional value--------------------> | <!--------------------Nutritional value--------------------> | ||
| label27 = {{longitem|style=line-height:1.1em;white-space:nowrap; | | label27 = {{longitem |style=line-height:1.1em;white-space:nowrap; | ||
| | | 2 = [[栄養|栄養素]]<br/><span style="font-size:90%;font-weight:normal;"><!-- | ||
-->( | -->({{#switch:{{{serving_size|}}} | ||
| 100 grams |100 [[Gram|g]] |100 g |100g = 100 [[ | | 100 grams |100 [[Gram|g]] |100 g |100g = 100 [[グラム|g]]あたり) | ||
| #default = {{{serving_size|}}} | | #default = {{{serving_size|}}}あたり) | ||
}}<!-- --></span> | }}<!-- --></span> | ||
}} | }} | ||
Line 117: | Line 121: | ||
|labelstyle=width:6.75em;padding-right:0.35em;<!--(to ensure some gap between "Carbohydrate" and any subsequent data)-->line-height:1.3em;font-weight:normal; | |labelstyle=width:6.75em;padding-right:0.35em;<!--(to ensure some gap between "Carbohydrate" and any subsequent data)-->line-height:1.3em;font-weight:normal; | ||
|datastyle=line-height:1.3em; | |datastyle=line-height:1.3em; | ||
|label1=[[ | |label1=[[タンパク質]] |data1={{{protein}}} [[グラム|g]] | ||
|label2=[[ | |label2=[[脂肪]] |data2={{{fat}}} [[グラム|g]] | ||
|label3=[[ | |label3=[[炭水化物]] |data3={{{carbohydrate}}} [[グラム|g]] | ||
}} }} | }} }} | ||
<!--------------------Glycemic index-----------------------> | <!--------------------Glycemic index-----------------------> | ||
| label32 = [[ | | label32 = [[グリセミック指数|{{allow wrap|グリセミック指数}}]] | ||
| data32 = {{#iferror: | | data32 = {{#iferror: | ||
{{#if:{{{glycemic_index|}}} | {{#if:{{{glycemic_index|}}} | ||
| {{smaller | | {{smaller | ||
| {{#ifexpr:{{#expr:{{{glycemic_index}}}<56}} | | {{#ifexpr:{{#expr:{{{glycemic_index}}}<56}} | ||
| {{{glycemic_index}}} ({{ | | {{{glycemic_index}}} ({{Bgcolor|#cfc|低}}) | ||
| {{#ifexpr:{{#expr:{{{glycemic_index}}}<70}} | | {{#ifexpr:{{#expr:{{{glycemic_index}}}<70}} | ||
| {{{glycemic_index}}} ({{ | | {{{glycemic_index}}} ({{Bgcolor|#ff9|中}}) | ||
| {{{glycemic_index}}} ({{ | | {{{glycemic_index}}} ({{Bgcolor|#fc9|高}}) | ||
}} }} }} }} }} | }} }} }} }} }} | ||
<!---------------------------------------------------------> | <!---------------------------------------------------------> | ||
| label34 = | | label34 = 類似料理 | ||
| data34 = {{{similar_dish|}}} | | data34 = {{{similar_dish|}}} | ||
Line 142: | Line 147: | ||
| belowstyle = border-top:1px solid #aaa;padding-top:0.25em;{{{belowstyle|}}} | | belowstyle = border-top:1px solid #aaa;padding-top:0.25em; text-align:left;{{{belowstyle|}}} | ||
| below = | | below = {{#if:{{Ifempty|{{{cookbook|}}}{{{enname|}}}}}|<nowiki></nowiki> | ||
{{#if:{{{no_recipes|}}} <includeonly>|</includeonly> |[[File:Wikibooks-logo.svg|16x16px|link=|alt=]] [[:Wikibooks:Special:Search/Cookbook:{{ifempty|{{{cookbook|}}}|{{{enname|}}}|{{PAGENAME}}}}|Cookbook]] <includeonly>|</includeonly> }}}}<!-- | |||
-->{{#if:{{{no_commons|}}} <includeonly>|</includeonly> |{{#if:{{Ifempty|{{#Property:P935}}|{{{enname|}}}}}|{{Commons-inline|short=yes|Special:Search/{{ifempty|{{#Property:P935}}|{{{enname|}}}|{{PAGENAMEBASE}}}}|ウィキメディア・コモンズ}} <includeonly>|</includeonly> }}}} | |||
}}<noinclude> | |||
{{Documentation}}</noinclude> | |||