Templat:Infobox unit: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
baru
 
NikolasKHF (bicara | kontrib)
kTidak ada ringkasan suntingan
 
(10 revisi perantara oleh 5 pengguna tidak ditampilkan)
Baris 1:
<includeonly>{{Infobox
<includeonly>{|class="infobox" style="width: 24em; text-align: left; font-size: 90%" cellspacing="2"
| bodystyle = background:{{{bgcolor|}}};
|-
{{#if:| above = {{{name|{{SUBPAGENAME}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|alt={{{alt|}}}}}
| {{!}} style="font-size: 110%;" colspan="2"{{!}} <center>'''''{{{name|}}}'''''</center>
| caption = {{{caption|}}}
| {{!}} coslpan="2"{{!}} <center>Please specify name<br>See [[Template:Infobox Unit|documention]] for details</center>
| image2 = {{#switch: {{lc:{{{standard|}}}}}|satuan pokok si|[[satuan pokok si]]={{Peta SI|infobox=y|size=175}}}}
}}
| headerclass =
 
<!------------------- General information -------------------->
|-
| header1 = {{#if:{{{image|}}} |Informasi umum}}
 
| {{!}} colspan="2"{{!}} <center>{{{image|}}}</center>
| label2 = {{longitem|[[Sistem pengukuran|Sistem satuan]]}}
}}
| data2 = {{{standard|}}}
|-
 
{{#if:{{{caption|}}}
| label3 = Besaran
| {{!}}colspan="2"{{!}} <center><small>{{{caption|}}}</small></center>
| data3 = {{{quantity|}}}
}}
 
|-
| label4 = Simbol
{{#if:{{{image|}}}
| data4 = {{#if:{{{symbol|}}}|{{{symbol}}}{{#if:{{{symbol3|}}}|,&ensp;{{{symbol2|}}},&ensp;atau&ensp;{{{symbol3|}}}|{{#if:{{{symbol2|}}}|&ensp;atau&ensp;{{{symbol2|}}}}}}}}}
| {{!}} style="background:#ccf;" colspan="2"{{!}} <center>'''Unit information'''</center>
 
}}
| label5 = {{longitem|Asal penamaan}}
|-
| data5 = {{#if:{{{standardnamedafter|}}}
 
| {{!}}'''[[Sistem pengukuran|Sistem satuan]]:'''{{!}}{{!}} {{{standard|}}}
| header6 = {{{extraheader|}}}
}}
| label7 = {{{extralabel|}}}
|-
| data7 = {{#if:{{{quantityextradata|}}}
| header8 = {{{extraheader2|}}}
| {{!}}'''Satuan dari...'''{{!}}{{!}} {{{quantity|}}}
| label9 = {{{extralabel2|}}}
}}
| data9 = {{{extradata2|}}}
|-
 
{{#if:{{{symbol|}}}
<!------------------- Conversions -------------------->
| {{!}}'''Simbol:'''{{!}}{{!}} {{{symbol|}}}
| header10 =
}}
{{#ifexpr: ({{#if:{{{units1|}}}|1|0}} and {{#if:{{{inunits1|}}}|1|0}})
|-
or ({{#if:{{{units2|}}}|1|0}} and {{#if:{{{inunits2|}}}|1|0}})
{{#if:{{{namedafter|}}}
| or ({{!}}'''Dinamai dari#if:'''{{!{units3|}}{{!}|1|0}} and {{#if:{namedafter{{inunits3|}}}|1|0}})
or ({{#if:{{{units4|}}}|1|0}} and {{#if:{{{inunits4|}}}|1|0}})
}}
or ({{#if:{{{units5|}}}|1|0}} and {{#if:{{{inunits5|}}}|1|0}})
|-
or ({{#if:{{{units6|}}}|1|0}} and {{#if:{{{inunits6|}}}|1|0}})
{{#if:{{{extralabel|}}}
| Konversi
| {{!}}'''{{{extralabel|}}}'''{{!}}{{!}} {{{extradata|}}}
<tr class="nowrap"><td>{{#if:{{{convertfromx|}}}|{{math|''x''}}|1}}{{#if:{{{nospacebefore|}}}||&nbsp;}}{{{symbol|{{lc:{{{name|{{SUBPAGENAME}}}}}}}}}} ''dalam ...''</td><td>''... sama dengan ...''</td></tr>
}}
}}
|-
 
{{#ifexpr:
| label12 = {{nbsp|3}}{{{units1|}}}
({{#if:{{{units1|}}}|1|0}} and {{#if:{{{inunits1|}}}|1|0}}) or
| data12 = {{#ifexpr:({{#if:{{{units2units1|}}}|1|0}} and {{#if:{{{inunits2inunits1|}}}|1|0}}) or|{{nbsp|3}}{{{inunits1|}}} }}
 
({{#if:{{{units3|}}}|1|0}} and {{#if:{{{inunits3|}}}|1|0}}) or
| label13 = {{nbsp|3}}{{{units2|}}}
({{#if:{{{units4|}}}|1|0}} and {{#if:{{{inunits4|}}}|1|0}}) or
| data13 = {{#ifexpr:({{#if:{{{units5units2|}}}|1|0}} and {{#if:{{{inunits5inunits2|}}}|1|0}}) or|{{nbsp|3}}{{{inunits2|}}} }}
 
({{#if:{{{units6|}}}|1|0}} and {{#if:{{{inunits6|}}}|1|0}})
| label14 = {{nbsp|3}}{{{units3|}}}
| {{!}} style="background:#ccf;" colspan="2"{{!}} <center>'''Unit conversions'''</center>
| data14 = {{#ifexpr:({{#if:{{{units3|}}}|1|0}} and {{#if:{{{inunits3|}}}|1|0}}) |{{nbsp|3}}{{{inunits3|}}} }}
{{!}}-
 
{{!}}style="font-size: 100%;"{{!}}1 {{{symbol|}}} in... {{!}}{{!}} is equal to...
| label15 = {{nbsp|3}}{{{units4|}}}
{{!}}-
| data15 = {{#ifexpr: ({{#if:{{{units1units4|}}}|1|0}} and {{#if:{{{inunits1inunits4|}}}|1|0}}) |{{nbsp|3}}{{{inunits4|}}} }}
 
| {{!}} &nbsp;&nbsp; {{{units1|}}}{{!}}{{!}} &nbsp;&nbsp; {{{inunits1|}}}
| label16 = {{nbsp|3}}{{{units5|}}}
}}
| data16 = {{#ifexpr:({{#if:{{{units5|}}}|1|0}} and {{#if:{{{inunits5|}}}|1|0}}) |{{nbsp|3}}{{{inunits5|}}} }}
{{!}}-
 
{{#ifexpr: ({{#if:{{{units2|}}}|1|0}} and {{#if:{{{inunits2|}}}|1|0}})
| label17 |= {{!}} &nbsp;&nbsp; {{{units2|3}}}{{!}}{{!}} &nbsp;&nbsp; {{{inunits2units6|}}}
| data17 = {{#ifexpr:({{#if:{{{units6|}}}|1|0}} and {{#if:{{{inunits6|}}}|1|0}}) |{{nbsp|3}}{{{inunits6|}}} }}
}}
 
{{!}}-
| label18 = {{nbsp|3}}{{{units7|}}}
{{#ifexpr: ({{#if:{{{units3|}}}|1|0}} and {{#if:{{{inunits3|}}}|1|0}})
| |data18 = {{!#ifexpr:({{#if:{{{units7|}}}|1|0}} &nbsp;&nbsp;and {{#if:{units3{{inunits7|}}}{{!|1|0}}) |{{!nbsp|3}} &nbsp;&nbsp; {{{inunits3inunits7|}}} }}
 
}}
<!------------- Conversions (imperial) --------------->
{{!}}-
| header20 =
{{#ifexpr: ({{#if:{{{units4|}}}|1|0}} and {{#if:{{{inunits4|}}}|1|0}})
| {{!}} &nbsp;&nbsp;#ifexpr: ({{#if:{units4{{units_imp1|}}}{{!}}{{!|1|0}} &nbsp;&nbsp;and {{#if:{inunits4{{inunits_imp1|}}}|1|0}})
or ({{#if:{{{units_imp2|}}}|1|0}} and {{#if:{{{inunits_imp2|}}}|1|0}})
}}
or ({{#if:{{{units_imp3|}}}|1|0}} and {{#if:{{{inunits_imp3|}}}|1|0}})
{{!}}-
{{#ifexpr: or ({{#if:{{{units5units_imp4|}}}|1|0}} and {{#if:{{{inunits5inunits_imp4|}}}|1|0}})
or ({{#if:{{{units_imp5|}}}|1|0}} and {{#if:{{{inunits_imp5|}}}|1|0}})
| {{!}} &nbsp;&nbsp; {{{units5|}}}{{!}}{{!}} &nbsp;&nbsp; {{{inunits5|}}}
or ({{#if:{{{units_imp6|}}}|1|0}} and {{#if:{{{inunits_imp6|}}}|1|0}})
}}
| Konversi (satuan imperial)
{{!}}-
<tr class="nowrap"><td>{{#if:{{{convertfromx|}}}|{{math|''x''}}|1}}&nbsp;{{{symbol|satuan}}}&nbsp;imp. ''dalam ...''</td><td>''... sama dengan ...''</td></tr>
{{#ifexpr: ({{#if:{{{units6|}}}|1|0}} and {{#if:{{{inunits6|}}}|1|0}})
}}
| {{!}} &nbsp;&nbsp; {{{units6|}}}{{!}}{{!}} &nbsp;&nbsp; {{{inunits6|}}}
 
}}
| label22 = {{nbsp|3}}{{{units_imp1|}}}
}}
| data22 = {{#ifexpr:({{#if:{{{units_imp1|}}}|1|0}} and {{#if:{{{inunits_imp1|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp1|}}} }}
|-
 
|}</includeonly><noinclude>{{documentation}}</noinclude>
| label23 = {{nbsp|3}}{{{units_imp2|}}}
| data23 = {{#ifexpr:({{#if:{{{units_imp2|}}}|1|0}} and {{#if:{{{inunits_imp2|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp2|}}} }}
 
| label24 = {{nbsp|3}}{{{units_imp3|}}}
| data24 = {{#ifexpr:({{#if:{{{units_imp3|}}}|1|0}} and {{#if:{{{inunits_imp3|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp3|}}} }}
 
| label25 = {{nbsp|3}}{{{units_imp4|}}}
| data25 = {{#ifexpr:({{#if:{{{units_imp4|}}}|1|0}} and {{#if:{{{inunits_imp4|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp4|}}} }}
 
| label26 = {{nbsp|3}}{{{units_imp5|}}}
| data26 = {{#ifexpr:({{#if:{{{units_imp5|}}}|1|0}} and {{#if:{{{inunits_imp5|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp5|}}} }}
 
| label27 = {{nbsp|3}}{{{units_imp6|}}}
| data27 = {{#ifexpr:({{#if:{{{units_imp6|}}}|1|0}} and {{#if:{{{inunits_imp6|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp6|}}} }}
 
<!---------------- Conversions (US) ------------------>
| header30 =
{{#ifexpr: ({{#if:{{{units_us1|}}}|1|0}} and {{#if:{{{inunits_us1|}}}|1|0}})
or ({{#if:{{{units_us2|}}}|1|0}} and {{#if:{{{inunits_us2|}}}|1|0}})
or ({{#if:{{{units_us3|}}}|1|0}} and {{#if:{{{inunits_us3|}}}|1|0}})
or ({{#if:{{{units_us4|}}}|1|0}} and {{#if:{{{inunits_us4|}}}|1|0}})
or ({{#if:{{{units_us5|}}}|1|0}} and {{#if:{{{inunits_us5|}}}|1|0}})
or ({{#if:{{{units_us6|}}}|1|0}} and {{#if:{{{inunits_us6|}}}|1|0}})
| Konversi (satuan AS)
<tr class="nowrap"><td>{{#if:{{{convertfromx|}}}|{{math|''x''}}|1}}&nbsp;{{{symbol|satuan}}}&nbsp;AS ''dalam ...''</td><td>''... sama dengan ...''</td></tr>
}}
 
| label32 = {{nbsp|3}}{{{units_us1|}}}
| data32 = {{#ifexpr:({{#if:{{{units_us1|}}}|1|0}} and {{#if:{{{inunits_us1|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us1|}}} }}
 
| label33 = {{nbsp|3}}{{{units_us2|}}}
| data33 = {{#ifexpr:({{#if:{{{units_us2|}}}|1|0}} and {{#if:{{{inunits_us2|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us2|}}} }}
 
| label34 = {{nbsp|3}}{{{units_us3|}}}
| data34 = {{#ifexpr:({{#if:{{{units_us3|}}}|1|0}} and {{#if:{{{inunits_us3|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us3|}}} }}
 
| label35 = {{nbsp|3}}{{{units_us4|}}}
| data35 = {{#ifexpr:({{#if:{{{units_us4|}}}|1|0}} and {{#if:{{{inunits_us4|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us4|}}} }}
 
| label36 = {{nbsp|3}}{{{units_us5|}}}
| data36 = {{#ifexpr:({{#if:{{{units_us5|}}}|1|0}} and {{#if:{{{inunits_us5|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us5|}}} }}
 
| label37 = {{nbsp|3}}{{{units_us6|}}}
| data37 = {{#ifexpr:({{#if:{{{units_us6|}}}|1|0}} and {{#if:{{{inunits_us6|}}}|1|0}}) |{{nbsp|3}}{{{inunits_us6|}}} }}
 
}}</includeonly><!--
 
--><noinclude>{{documentation}}</noinclude>