Templat:Infobox food: Perbedaan antara revisi
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 |
| 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 = |
| label3 = Jenis |
||
| data3 = {{{type|}}} |
|||
| rowclass3 = note |
|||
| data3 = {{{country|}}} |
|||
| class3 = country-name |
|||
| label4 |
| label4 = Sajian |
||
| data4 = {{{ |
| data4 = {{{course|}}} |
||
| class4 = region |
|||
| label5 = Pembuat |
|||
| rowclass5 = note |
| rowclass5 = note |
||
| label5 = Tempat asal |
|||
| data5 = {{{creator|}}} |
|||
| class5 = |
| class5 = country-name |
||
| data5 = {{{country|}}} |
|||
| rowclass7 = note |
|||
| label7 = Daerah |
|||
| class7 = region |
|||
| data7 = {{{region|}}} |
|||
| label9 = Hidangan 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:)--> 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 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 [[Gram|g]]) |
|||
| #default = porsi {{{serving_size|}}}) |
|||
}}<!-----></span> |
|||
}} |
|||
| class25 = nutrition |
|||
| data25 = {{#if:{{{calories|}}} |
|||
| {{{calories}}} [[Kalori|kkal]]<!-- |
|||
-->{{#iferror: ({{#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 [[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}}} [[Gram|g]] |
|||
|label2=[[Lemak]] |data2={{{fat}}} [[Gram|g]] |
|||
|label3=[[Karbohidrat]] |data3={{{carbohydrate}}} [[Gram|g]] |
|||
}} }} |
|||
<!--------------------Glycemic index-----------------------> |
|||
| label9 = Bahan utama |
|||
| label32 = [[Indeks glikemik|{{allow wrap|Indeks glikemik}}]] |
|||
| data9 = {{{main_ingredient|}}} |
|||
| |
| data32 = {{#iferror: |
||
{{#if:{{{glycemic_index|}}} |
|||
| {{smaller |
|||
| {{#ifexpr:{{#expr:{{{glycemic_index}}}<56}} |
|||
| {{{glycemic_index}}} ({{background|#ccffcc|low}}) |
|||
| {{#ifexpr:{{#expr:{{{glycemic_index}}}<70}} |
|||
| {{{glycemic_index}}} ({{background|#ffff99|medium}}) |
|||
| {{{glycemic_index}}} ({{background|#ffcc99|high}}) |
|||
}} }} }} }} }} |
|||
<!---------------------------------------------------------> |
|||
| label34 = Hidangan serupa |
|||
| label10 = Variasi |
|||
| |
| data34 = {{{similar_dish|}}} |
||
| label36 = Informasi lain |
|||
| label11 = Jumlah kalori per porsi |
|||
| |
| 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§ion=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|}}}}}| {{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 • L • B |
---|
Penggunaan
[sunting sumber]{{Infobox food
| name =
| name_lang =
| name_italics =
| image =
| image_size =
| image_alt =
| caption =
| alternate_name =
| type =
| course =
| place_of_origin =
| region =
| associated_cuisine =
| creator = <!-- or | creators = -->
| year =
| mintime =
| maxtime =
| served =
| main_ingredient =
| minor_ingredient =
| variations =
| serving_size = ... g
| calories =
| calories_ref =
| protein =
| fat =
| carbohydrate =
| glycemic_index =
| similar_dish =
| cookbook =
| commons =
| other =
| no_recipes = true
}}
TemplateData
[sunting sumber]Tidak ada keterangan.
Parameter | Keterangan | Jenis | Status | |
---|---|---|---|---|
name | name | tidak ada keterangan | Tak dikenal | opsional |
name_lang | name_lang | tidak ada keterangan | Tak dikenal | opsional |
name_italics | name_italics | tidak ada keterangan | Tak dikenal | opsional |
image | image | tidak ada keterangan | Tak dikenal | opsional |
image_size | image_size | tidak ada keterangan | Tak dikenal | opsional |
image_alt | image_alt | tidak ada keterangan | Tak dikenal | opsional |
alt | alt | tidak ada keterangan | Tak dikenal | opsional |
caption | caption | tidak ada keterangan | Tak dikenal | opsional |
alternate_name | alternate_name | tidak ada keterangan | Tak dikenal | opsional |
type | type | tidak ada keterangan | Tak dikenal | opsional |
course | course | tidak ada keterangan | Tak dikenal | opsional |
country | country | tidak ada keterangan | Tak dikenal | opsional |
region | region | tidak ada keterangan | Tak dikenal | opsional |
national_cuisine | national_cuisine | tidak ada keterangan | Tak dikenal | opsional |
creators | creators | tidak ada keterangan | Tak dikenal | opsional |
creator | creator | tidak ada keterangan | Tak dikenal | opsional |
year | year | tidak ada keterangan | Tak dikenal | opsional |
mintime | mintime | tidak ada keterangan | Tak dikenal | opsional |
time1 | time1 | tidak ada keterangan | Tak dikenal | opsional |
maxtime | maxtime | tidak ada keterangan | Tak dikenal | opsional |
time2 | time2 | tidak ada keterangan | Tak dikenal | opsional |
served | served | tidak ada keterangan | Tak dikenal | opsional |
main_ingredient | main_ingredient | tidak ada keterangan | Tak dikenal | opsional |
minor_ingredient | minor_ingredient | tidak ada keterangan | Tak dikenal | opsional |
variations | variations | tidak ada keterangan | Tak dikenal | opsional |
serving_size | serving_size | tidak ada keterangan | Tak dikenal | opsional |
calories | calories | tidak ada keterangan | Tak dikenal | opsional |
calories_ref | calories_ref | tidak ada keterangan | Tak dikenal | opsional |
protein | protein | tidak ada keterangan | Tak dikenal | opsional |
fat | fat | tidak ada keterangan | Tak dikenal | opsional |
carbohydrate | carbohydrate | tidak ada keterangan | Tak dikenal | opsional |
glycemic_index | glycemic_index | tidak ada keterangan | Tak dikenal | opsional |
similar_dish | similar_dish | tidak ada keterangan | Tak dikenal | opsional |
other | other | tidak ada keterangan | Tak dikenal | opsional |