Lompat ke isi

Templat:Infobox food: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
Swarabakti (bicara | kontrib)
kTidak ada ringkasan suntingan
Tag: Suntingan visualeditor-wikitext
 
(49 revisi perantara oleh 9 pengguna tidak ditampilkan)
Baris 1: Baris 1:
{{Infobox
{{ infobox
| bodyclass = hrecipe adr
| bodyclass = hrecipe adr
| titleclass = fn
| title = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}


| abovestyle = font-size:130%;
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{image_alt|{{{alt|}}}}}} }}
| aboveclass = fn
<!-- | captionstyle = {{#if:{{{caption|}}} |padding-bottom:0.25em;border-bottom:1px solid #aaa;}} -->
| above = <includeonly><span {{#if:{{{name_lang|}}}|lang="{{{name_lang}}}"}} {{#ifeq:{{{name_italics|false}}}|true|style="font-weight:normal; margin-top:0.1em; padding-top:0.1em; border-top:1.3px solid black; font-size:80%; font-style: italic;"|}}>{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</span></includeonly>
| caption = {{{caption|}}}


| bodystyle = box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);border-radius: 2px;{{#if:{{{boxsize|}}}|width: {{{boxsize}}};}}
| headerstyle = background-color: #b0c4de
|labelstyle = padding-top:0.225em;line-height:1.1em;<!--(modified longitem)--> padding-right:0.5em;
|datastyle = line-height:1.35em;


|image = {{#invoke:InfoboxImage|InfoboxImage|image={{{gambar|{{{image|}}} }}}|size={{{ukuran_gambar|{{{imagesize|}}} }}}|sizedefault=200px|alt={{{imagealt|}}}}}
| header1 = {{#if:{{{alternate_name|}}}{{{country|}}}{{{region|}}}{{{creator|}}}|Asal}}
|caption = {{{deskripsi_gambar|{{{caption|}}} }}}

| 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)-->


| label2 = Nama lain
| 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 = Daerah
| class7 = region
| data7 = {{{region|}}}

| label9 = Hidangan&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}} [[menit]]
}}
<!----(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
| header6 = {{#if:{{{course|}}}{{{served|}}}{{{main_ingredient|}}}{{{variations|}}}{{{calories|}}}{{{other|}}}|Detail}}
| data23 = {{{variations|}}}


<!-----------------------Food energy----------------------->
| label7 = Jenis makanan
| label25 = {{longitem|style=line-height:1.1em;white-space:nowrap;
| data7 = {{{course|}}}
| 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;[[Kalori|kkal]]<!--
-->{{#iferror:&nbsp;({{#expr:{{{calories}}}*4.1868 round 0}} [[Joule#kilojoule|kJ]])}}<!--
-->{{{calories_ref|}}}
}}


<!--------------------Nutritional value-------------------->
| label8 = Penyajian
| label27 = {{longitem|style=line-height:1.1em;white-space:nowrap;
| data8 = {{{served|}}}
| 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----------------------->
| label9 = Bahan utama
| label32 = [[Indeks glikemik|{{allow wrap|Indeks glikemik}}]]
| data9 = {{{main_ingredient|}}}
| class9 = ingredient
| 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
| label10 = Variasi
| data10 = {{{variations|}}}
| data34 = {{{similar_dish|}}}


| label36 = Informasi lain
| label11 = Jumlah kalori per porsi
| data11 = {{{calories|}}}
| data36 = {{{other|}}}
| class11 = nutrition


| header36 =[[File:OOjs UI icon edit-ltr-progressive.svg|alt=Sunting kotak info|left|10px|link=]]{{pranala|1=[{{fullurl:{{FULLPAGENAME}}|action=edit&section=top&editintro=}} '''Sunting kotak info''']}}{{*}}[[Templat:Infobox food|L]]{{*}}[[Pembicaraan Templat:Infobox food|B]][[Berkas:Info Simple.svg|10px|right|link=Templat:Infobox food/doc|alt=Info templat|Bantuan penggunaan templat ini]]
| label12 = Informasi lain
| headerstyle = border-top:15px solid {{{color|#aaa}}};font-weight:normal;font-size:80%;text-align:left;height:20px;padding-bottom:0.2em;
| data12 = {{{other|}}}


| belowstyle = text-align:center;font-weight:normal;font-size:90%;padding:5px;
}}<noinclude>{{doc}}<!-- Add cats and interwikis to the /doc subpage, not here! --></noinclude>
| below = {{Unbulleted list
| {{#if:{{Yesno|{{{no_recipes|}}}}} <includeonly>|</includeonly> |<!--
-->{{#if:{{{cookbook|}}}|{{sister-inline|project=wikibooks|short=yes|links=[[:b:Cookbook:{{{cookbook}}}|Buku resep: {{{cookbook}}}]]}}| <!--
-->{{#if:{{#invoke:WikidataIB|getSiteLink|wiki=enwikibooks|qid={{{qid|}}}}}|<!--
-->{{sister-inline|project=wikibooks|short=yes|links=[[:b:{{#invoke:WikidataIB|getSiteLink|wiki=enwikibooks|qid={{{qid|}}}}}|Buku resep: {{if empty|{{{name|}}}|{{PAGENAME}}}}]]}}}}}}}}
| {{#if:{{Yesno|{{{no_commons|}}}}} <includeonly>|</includeonly> |<!--
-->{{#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|[[Kategori:Halaman yang menggunakan infobox food dengan parameter yang tidak diketahui|_VALUE_]]}}
|preview=unknown parameter "_VALUE_"
|alt|alternate name|alternate_name|belowstyle|calories|calories_ref|caption|carbohydrate|commons|cookbook|country
|course|creator|creators|fat|glycemic_index|image|image_alt|image_size|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|variations|year|color}}<noinclude>{{Documentation}}</noinclude>

Revisi terkini sejak 26 Juni 2024 19.26

Sunting kotak info
Sunting kotak info • L • B
Info templat
Bantuan penggunaan templat ini