Lompat ke isi

Templat:Infobox food: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
Angayubagia (bicara | kontrib)
k update
Tag: Suntingan visualeditor-wikitext
kTidak ada ringkasan suntingan
Tag: Suntingan visualeditor-wikitext
Baris 1: Baris 1:
{{infobox
{{Infobox
| bodyclass = hrecipe adr
| bodyclass = hrecipe adr

| titleclass = fn
| titleclass = fn
| title = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
| 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|}}} |sizedefault=frameless |alt={{{image_alt|{{{alt|}}}}}} }}
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |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|}}}
| headerstyle = background-color: #b0c4de
| header1 = {{#if:{{{alternate_name|}}}{{{country|}}}{{{region|}}}{{{creator|}}}|Asal}}


| labelstyle = padding-top:0.245em;line-height:1.15em;<!--(modified longitem)-->
| label2 = Nama lain
padding-right:0.65em;<!--(to ensure some gap between (non-wrapped) labels and subsequent data)-->

| rowclass2 = note
| rowclass2 = note
| label2 = Nama lain
| data2 = {{{alternate_name|}}}
| data2 = {{{alternate_name|{{{alternate name|}}}}}}


| label3 = Asal
| label3 = Jenis
| data3 = {{{type|}}}
| rowclass3 = note
| data3 = {{{country|}}}
| class3 = country-name


| label4 = Dari daerah
| label4 = Sajian
| data4 = {{{region|}}}
| data4 = {{{course|}}}
| class4 = region


| label5 = Pembuat
| rowclass5 = note
| rowclass5 = note
| label5 = Tempat asal
| data5 = {{{creator|}}}
| class5 = author
| class5 = country-name
| data5 = {{{country|}}}

| rowclass7 = note
| label7 = Wilayah atau negara bagian
| class7 = region
| data7 = {{{region|}}}

| label9 = Masakan&nbsp;nasional terkait
| data9 = {{{national_cuisine|}}}

| rowclass11 = note
| label11 = Dibuat oleh
| class11 = author
| data11 = {{#if:{{{creators|}}} |{{{creators}}} |{{{creator|}}} }}

| label13 = Diciptakan tahun
| data13 = {{{year|}}}

<!----------------------Cooking time----------------------->
| label15 = Waktu memasak
| data15 = {{#if:{{{mintime|{{{time1|}}}}}}{{{maxtime|{{{time2|}}}}}}
| {{nowrap
| {{#iferror: <!--(display nothing if calculations below generate an error)-->
{{#if:{{{mintime|{{{time1|}}}}}}
| {{#ifexpr:{{#expr:{{{mintime|{{{time1|}}}}}}>60}}
<!----(time is "X hour/s Y min":)---->
| <!----hours:-->{{rounddown|{{#expr:{{{mintime|{{{time1|}}}}}}/60}}}} <!--
<!--(units:)-->[[hour]]{{#ifeq:{{rounddown|{{#expr:{{{mintime|{{{time1|}}}}}}/60}}}}|1 | |s}} <!--
<!--minutes:-->{{#ifeq:{{#expr:{{{mintime|{{{time1|}}}}}} mod 60}}|0 |<!--(omit if "0 min")-->
| {{#expr:{{{mintime|{{{time1|}}}}}} mod 60}} [[Minute|min]]
}}
<!----(else time is "X minute/s":)---->
| {{{mintime|{{{time1|}}}}}} <!--(units:)-->[[minute]]{{#ifeq:{{{mintime|{{{time1|}}}}}}|1 | |s}}
}} }} }}<!--
-->{{#iferror:
{{#if:{{{maxtime|{{{time2|}}}}}}
| {{#if:{{{mintime|{{{time1|}}}}}} |<!--(then cooking time given is from min(imum)time to
max(imum), so insert the "to" before the maximum:)-->&nbsp;to}} <!--
-->{{#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}} <!--
-->{{#ifeq:{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}}|0 | |{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}} min}}
| {{{maxtime|{{{time2|}}}}}} minute{{#ifeq:{{{maxtime|{{{time2|}}}}}}|1 | |s}}
}} }} }}<!--
-->}} }}
<!--------------------------------------------------------->

| label17 = Suhu penyajian
| data17 = {{{served|}}}

| label19 = Bahan utama
| class19 = ingredient
| data19 = {{{main_ingredient|}}}

| label21 = Bahan yang&nbsp;umum digunakan
| class21 = ingredient
| data21 = {{{minor_ingredient|}}}

| label23 = Variasi
| data23 = {{{variations|}}}

<!-----------------------Food energy----------------------->
| label25 = {{longitem|style=line-height:1.1em;white-space:nowrap;
| 1 = [[Energi makanan]]<br/><span style="font-size:90%;font-weight:normal;"><!--
-->(per {{#switch:{{{serving_size|}}}
| 100 grams |100 [[Gram|g]] |100 g |100g = porsi 100&nbsp;[[Gram|g]])
| #default = porsi {{{serving_size|}}})
}}<!-----></span>
}}
| class25 = nutrition
| data25 = {{#if:{{{calories|}}}
| {{{calories}}}&nbsp;[[Calorie|kcal]]<!--
-->{{#iferror:&nbsp;({{#expr:{{{calories}}}*4.1868 round 0}} [[kilojoule|kJ]])}}<!--
-->{{{calories_ref|}}}
}}


<!--------------------Nutritional value-------------------->
| header6 = {{#if:{{{course|}}}{{{served|}}}{{{main_ingredient|}}}{{{variations|}}}{{{calories|}}}{{{other|}}}|Detail}}
| label27 = {{longitem|style=line-height:1.1em;white-space:nowrap;
| 1 = [[Nutrisi|Nilai gizi]]<br/><span style="font-size:90%;font-weight:normal;"><!--
-->(per {{#switch:{{{serving_size|}}}
| 100 grams |100 [[Gram|g]] |100 g |100g = porsi 100&nbsp;[[Gram|g]])
| #default = porsi {{{serving_size|}}})
}}<!-- --></span>
}}
| data27 = {{#if:{{{protein|}}}{{{fat|}}}{{{carbohydrate|}}}
| {{Infobox
|bodystyle={{infobox subbox bodystyle}}
|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;
|label1=[[Protein (gizi)|Protein]] |data1={{{protein}}}&nbsp;[[Gram|g]]
|label2=[[Lemak]] |data2={{{fat}}}&nbsp;[[Gram|g]]
|label3=[[Karbohidrat]] |data3={{{carbohydrate}}}&nbsp;[[Gram|g]]
}} }}


<!--------------------Glycemic index----------------------->
| label7 = Jenis makanan
| label32 = [[Glycemic index|{{allow wrap|Glycemic index}}]]
| data7 = {{{course|}}}
| data32 = {{#iferror:
{{#if:{{{glycemic_index|}}}
| {{smaller
| {{#ifexpr:{{#expr:{{{glycemic_index}}}<56}}
| {{{glycemic_index}}}&nbsp;({{background|#ccffcc|low}})
| {{#ifexpr:{{#expr:{{{glycemic_index}}}<70}}
| {{{glycemic_index}}}&nbsp;({{background|#ffff99|medium}})
| {{{glycemic_index}}}&nbsp;({{background|#ffcc99|high}})
}} }} }} }} }}
<!--------------------------------------------------------->


| label34 = Hidangan serupa
| label8 = Penyajian
| data8 = {{{served|}}}
| data34 = {{{similar_dish|}}}


| label9 = Bahan utama
| label36 = Informasi lain
| data9 = {{{main_ingredient|}}}
| data36 = {{{other|}}}
| class9 = ingredient


| label10 = Variasi
| data10 = {{{variations|}}}


| belowstyle = border-top:1px solid #aaa;padding-top:0.25em;{{{belowstyle|}}}
| label11 = Jumlah kalori per porsi
| data11 = {{{calories|}}}
| below = {{Unbulleted list
| {{#if:{{{no_recipes|}}} <includeonly>|</includeonly> |{{Wikibooks-inline|short=yes|Special:Search|Cookbook: {{{cookbook|{{{name|{{PAGENAME}}}}}}}}}} }}
| class11 = nutrition
| {{#if:{{{no_commons|}}} <includeonly>|</includeonly> |&nbsp; {{Commons-inline|short=yes|Special:Search/{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}|Media{{colon}} {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}} }}
}}


}}<noinclude>{{Documentation}}</noinclude>
| label12 = Informasi lain
| data12 = {{{other|}}}
}}<noinclude>{{doc}}<!-- Add cats and interwikis to the /doc subpage, not here! --></noinclude>

Revisi per 11 Agustus 2019 14.01