Template:Infobox food/ja: Difference between revisions

Created page with "{{Infobox | bodyclass = hrecipe adr | titleclass = fn | titlestyle = | title = <includeonly><span {{#if:{{{name_lang|}}}|lang="{{{name_lang}}}"}} {{#ifeq:{{{name_italics|false}}}|true|style="font-style: italic;"|}}>{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</span></includeonly> | image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |upright={{#if:{{{image_size|}}}||{{if empty|{{{image_upright|}}}|{{{upright|}}}|1}}}} |alt={{{imag..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| name      = Infobox food/ja
| bodyclass = hrecipe adr
| bodyclass = hrecipe adr


| titleclass = fn
| aboveclass = fn
| titlestyle =
| abovestyle =  
| title = <includeonly><span {{#if:{{{name_lang|}}}|lang="{{{name_lang}}}"}} {{#ifeq:{{{name_italics|false}}}|true|style="font-style: italic;"|}}>{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</span></includeonly>
| above = <includeonly><span {{#if:{{{name_lang|}}}|lang="{{{name_lang}}}"}}>{{#if:{{{name|}}} |{{{name}}} |{{PAGENAMEBASE}} }}</span></includeonly>


| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |upright={{#if:{{{image_size|}}}||{{if empty|{{{image_upright|}}}|{{{upright|}}}|1}}}} |alt={{{image_alt|{{{alt|}}}}}} |title={{{image_alt|{{{alt|}}}}}} }}
| 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|}}}


| labelstyle = 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  = {{{place_of_origin|{{{country|}}}}}}
|  data5  = {{{country|}}}


| rowclass7 = note
| rowclass7 = note
| label7  = 地域または州
| label7  = 地域
| class7  = region
| class7  = region
|  data7  = {{{region|}}}
|  data7  = {{{region|}}}


| label9  = 関連した[List of cuisines/ja|料理]]
| label9  = 関連[[:Category:各国の食文化|食文化]]
|  data9  = {{{associated_cuisine|{{{national_cuisine|}}}}}}
|  data9  = {{{national_cuisine|}}}


| rowclass11 = note
| rowclass11 = note
| label11 = 作成者
| label11 = 考案者
| class11 = author
| class11 = author
|  data11 = {{#if:{{{creators|}}} |{{{creators}}} |{{{creator|}}} }}
|  data11 = {{ifempty{{{creators|}}}|{{{creator|}}}}}


| label13 = 発明
| label13 = 誕生時期
|  data13 = {{{year|}}}
|  data13 = {{{year|}}}


<!----------------------Cooking time----------------------->
<!----------------------Cooking time----------------------->
Line 52: 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:)-->[[hour]]{{#ifeq:{{rounddown|{{#expr:{{{mintime|{{{time1|}}}}}}/60}}}}|1 | |s}} <!--
                                                       <!--(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}} [[Minute|min]]
                                           | {{#expr:{{{mintime|{{{time1|}}}}}} mod 60}}[[]]
                                           }}
                                           }}
                         <!----(else time is "X minute/s":)---->
                         <!----(else time is "X minute/s":)---->
                         | {{{mintime|{{{time1|}}}}}} <!--(units:)-->[[minute]]{{#ifeq:{{{mintime|{{{time1|}}}}}}|1 | |s}}
                         | {{{mintime|{{{time1|}}}}}}<!--(units:)-->[[]]{{#ifeq:{{{mintime|{{{time1|}}}}}}|1 | |}}
                   }} }} }}<!--
                   }} }} }}<!--
               -->{{#iferror:
               -->{{#iferror:
Line 65: Line 67:
                                                               max(imum), so insert the "to" before the maximum:)-->&nbsp;to}} <!--
                                                               max(imum), so insert the "to" before the maximum:)-->&nbsp;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}}}} hour{{#ifeq:{{rounddown|{{#expr:{{{maxtime|{{{time2|}}}}}}/60}}}}|1 | |s}} <!--
                               | {{rounddown|{{#expr:{{{maxtime|{{{time2|}}}}}}/60}}}}時間{{#ifeq:{{rounddown|{{#expr:{{{maxtime|{{{time2|}}}}}}/60}}}}|1 | |}} <!--
                                   -->{{#ifeq:{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}}|0 | |{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}} min}}
                                   -->{{#ifeq:{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}}|0 | |{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}}}}
                               | {{{maxtime|{{{time2|}}}}}} minute{{#ifeq:{{{maxtime|{{{time2|}}}}}}|1 | |s}}
                               | {{{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 = 一般的に使用される&nbsp;成分
| 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;  
             | 1 = [[Food energy]]<br/><span style="font-size:90%;font-weight:normal;"><!--
             | 2 = [[生理的熱量|食物エネルギー]]<br/><span style="font-size:90%;font-weight:normal;"><!--
                     -->(per {{#switch:{{{serving_size|}}}
                     -->({{#switch:{{{serving_size|}}}
                               | 100 grams |100 [[Gram|g]] |100 g |100g = 100&nbsp;[[Gram|g]] serving)
                               | 100 grams |100 [[Gram|g]] |100 g |100g = 100&nbsp;[[グラム|g]]あたり)
                               | #default = {{{serving_size|}}} serving)
                               | #default = {{{serving_size|}}}あたり)
                             }}<!-----></span>
                             }}<!-----></span>
             }}
             }}
| class25 = nutrition
| class25 = nutrition
|  data25 = {{#if:{{{calories|}}}
|  data25 = {{#if:{{{calories|}}}
             | {{{calories}}}&nbsp;[[Calorie|kcal]]<!--
             | {{{calories}}}&nbsp;[[カロリー|kcal]]<!--
                 -->{{#iferror:&nbsp;({{#expr:{{{calories}}}*4.1868 round 0}} [[kilojoule|kJ]])}}<!--
                 -->{{#iferror:&nbsp;({{#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;
             | 1 = [[Nutrition|Nutritional value]]<br/><span style="font-size:90%;font-weight:normal;"><!--
             | 2 = [[栄養|栄養素]]<br/><span style="font-size:90%;font-weight:normal;"><!--
                     -->(per {{#switch:{{{serving_size|}}}
                     -->({{#switch:{{{serving_size|}}}
                               | 100 grams |100 [[Gram|g]] |100 g |100g = 100&nbsp;[[Gram|g]] serving)
                               | 100 grams |100 [[Gram|g]] |100 g |100g = 100&nbsp;[[グラム|g]]あたり)
                               | #default = {{{serving_size|}}} serving)
                               | #default = {{{serving_size|}}}あたり)
                             }}<!--                --></span>
                             }}<!--                --></span>
             }}
             }}
Line 114: 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=[[Protein (nutrient)|Protein]] |data1={{{protein}}}&nbsp;[[Gram|g]]
                 |label1=[[タンパク質]] |data1={{{protein}}}&nbsp;[[グラム|g]]
                 |label2=[[Fat]]          |data2={{{fat}}}&nbsp;[[Gram|g]]
                 |label2=[[脂肪]]          |data2={{{fat}}}&nbsp;[[グラム|g]]
                 |label3=[[Carbohydrate]] |data3={{{carbohydrate}}}&nbsp;[[Gram|g]]
                 |label3=[[炭水化物]] |data3={{{carbohydrate}}}&nbsp;[[グラム|g]]
             }} }}
             }} }}


<!--------------------Glycemic index----------------------->
<!--------------------Glycemic index----------------------->
| label32 = [[Glycemic index/ja|GI値]]
| 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}}}&nbsp;({{background|#ccffcc|low}})
                       | {{{glycemic_index}}}&nbsp;({{Bgcolor|#cfc|}})
                       | {{#ifexpr:{{#expr:{{{glycemic_index}}}<70}}
                       | {{#ifexpr:{{#expr:{{{glycemic_index}}}<70}}
                         | {{{glycemic_index}}}&nbsp;({{background|#ffff99|medium}})
                         | {{{glycemic_index}}}&nbsp;({{Bgcolor|#ff9|}})
                         | {{{glycemic_index}}}&nbsp;({{background|#ffcc99|high}})
                         | {{{glycemic_index}}}&nbsp;({{Bgcolor|#fc9|}})
             }} }} }} }} }}
             }} }} }} }} }}
<!--------------------------------------------------------->
<!--------------------------------------------------------->


| label34 = 似た料理
| label34 = 類似料理
|  data34 = {{{similar_dish|}}}
|  data34 = {{{similar_dish|}}}


Line 139: 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 = {{Unbulleted list
| below = {{#if:{{Ifempty|{{{cookbook|}}}{{{enname|}}}}}|<nowiki></nowiki>
  | {{#if:{{Yesno|{{{no_recipes|}}}}} <includeonly>|</includeonly> |<!--
{{#if:{{{no_recipes|}}} <includeonly>|</includeonly> |[[File:Wikibooks-logo.svg|16x16px|link=|alt=]] [[:Wikibooks:Special:Search/Cookbook:{{ifempty|{{{cookbook|}}}|{{{enname|}}}|{{PAGENAME}}}}|Cookbook]] <includeonly>|</includeonly> }}}}<!--
    -->{{#if:{{{cookbook|}}}|{{sister-inline|project=wikibooks|short=yes|links=[[:b:Cookbook:{{{cookbook}}}|Cookbook: {{{cookbook}}}]]}}| <!--
      -->{{#if:{{{no_commons|}}} <includeonly>|</includeonly> |{{#if:{{Ifempty|{{#Property:P935}}|{{{enname|}}}}}|{{Commons-inline|short=yes|Special:Search/{{ifempty|{{#Property:P935}}|{{{enname|}}}|{{PAGENAMEBASE}}}}|ウィキメディア・コモンズ}} <includeonly>|</includeonly> }}}}
        -->{{#if:{{#invoke:WikidataIB|getSiteLink|wiki=enwikibooks|qid={{{qid|}}}}}|<!--
 
            -->{{sister-inline|project=wikibooks|short=yes|links=[[:b:{{#invoke:WikidataIB|getSiteLink|wiki=enwikibooks|qid={{{qid|}}}}}|Cookbook: {{if empty|{{{name|}}}|{{PAGENAME}}}}]]}}}}}}}}
}}<noinclude>
  | {{#if:{{Yesno|{{{no_commons|}}}}} <includeonly>|</includeonly> |<!--
{{Documentation}}</noinclude>
-->{{#if:{{{commons|}}}{{#invoke:Commons link|hasGalleryOrCategory|qid={{{qid|}}}}}|&nbsp;{{Commons-inline|short=yes|{{{commons|}}}|qid={{{qid|}}}|notrack=1|<!--
-->Media{{colon}} {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}} }} }}
}}}}{{#invoke:check for unknown parameters|check
|unknown={{main other|[[Category:Pages using infobox food with unknown parameters|_VALUE_]]}}
|preview=unknown parameter "_VALUE_"
|alt|alternate name|alternate_name|associated_cuisine|belowstyle|calories|calories_ref|caption|carbohydrate|commons|cookbook|country
|course|creator|creators|fat|glycemic_index|image|image_alt|image_size|image_upright|main_ingredient|maxtime|minor_ingredient|mintime
|name|name_italics|name_lang|national_cuisine|no_commons|no_recipes|other|place_of_origin|protein|qid|region|served|serving_size
|similar_dish|time1|time2|type|upright|variations|year}}<noinclude>{{Documentation}}</noinclude>