Templat:Infobox unit: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
k ~perbarui
Baris 1:
<includeonly>{{Infobox
<includeonly>{|class="infobox" style="width: 24em; text-align: left; font-size: 90%" cellspacing="2"
| bodystyle = background:{{{bgcolor|}}};
|-
| abovestyle = font-style:italic;
{{#if:{{{name|}}}
| above = {{{name|{{SUBPAGENAME}}}}}
| {{!}} style="font-size: 110%;" colspan="2"{{!}} <center>'''''{{{name|}}}'''''</center>
| image = {{{image|}}}
| {{!}} coslpan="2"{{!}} <center>Please specify name<br>See [[Template:Infobox Unit|documention]] for details</center>
| caption = {{{caption|}}}
}}
| headerclass = navbox-abovebelow
 
<!------------------- Unit information -------------------->
|-
| header1 = {{#if:{{{image|}}} |Informasi satuan}}
 
| {{!}} colspan="2"{{!}} <center>{{{image|}}}</center>
| label2 = Sistem Unit
}}
| data2 = {{{standard|}}}
|-
 
{{#if:{{{caption|}}}
| label3 = Satuan dari
| {{!}}colspan="2"{{!}} <center><small>{{{caption|}}}</small></center>
| data3 = {{{quantity|}}}
}}
 
|-
| label4 = Simbol
{{#if:{{{image|}}}
| data4 = {{#if:{{{symbol|}}} |{{{symbol}}}&ensp;{{#if:{{{symbol2|}}}|or&ensp;{{{symbol2|}}}&ensp;}} }}
| {{!}} style="background:#ccf;" colspan="2"{{!}} <center>'''Informasi satuan'''</center>
 
}}
| label5 = Dinamai dari
|-
| data5 = {{#if:{{{standardnamedafter|}}}
 
| {{!}}'''[[Sistem pengukuran|Sistem satuan]]:'''{{!}}{{!}} {{{standard|}}}
| label6 = {{{extralabel|}}}
}}
| data6 = {{{extradata|}}}
|-
 
{{#if:{{{quantity|}}}
<!------------------- Unit conversions -------------------->
| {{!}}'''Satuan dari...'''{{!}}{{!}} {{{quantity|}}}
| header10 =
}}
{{#ifexpr: ({{#if:{{{units1|}}}|1|0}} and {{#if:{{{inunits1|}}}|1|0}})
|-
or ({{#if:{{{units2|}}}|1|0}} and {{#if:{{{inunits2|}}}|1|0}})
{{#if:{{{symbol|}}}
| or ({{!}}'''Simbol#if:'''{{!{units3|}}{{!}|1|0}} and {{#if:{symbol{{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:{{{namedafter|}}}
| Unit conversions
| {{!}}'''Dinamai dari:'''{{!}}{{!}} {{{namedafter|}}}
<tr class="nowrap"><td>''1 {{{symbol|unit}}} dalam ...''</td><td>''... sama dengan ...''</td></tr>
}}
}}
|-
 
{{#if:{{{extralabel|}}}
| label12 |= {{!}}'''{{{extralabelnbsp|3}}}'''{{!}}{{!}} {{{extradataunits1|}}}
| data12 = {{#ifexpr:({{#if:{{{units1|}}}|1|0}} and {{#if:{{{inunits1|}}}|1|0}}) |{{nbsp|3}}{{{inunits1|}}} }}
}}
 
|-
| label13 = {{nbsp|3}}{{{units2|}}}
{{#ifexpr:
| data13 = {{#ifexpr:({{#if:{{{units1units2|}}}|1|0}} and {{#if:{{{inunits1inunits2|}}}|1|0}}) or|{{nbsp|3}}{{{inunits2|}}} }}
 
({{#if:{{{units2|}}}|1|0}} and {{#if:{{{inunits2|}}}|1|0}}) or
| label14 = {{nbsp|3}}{{{units3|}}}
({{#if:{{{units3|}}}|1|0}} and {{#if:{{{inunits3|}}}|1|0}}) or
| data14 = {{#ifexpr:({{#if:{{{units4units3|}}}|1|0}} and {{#if:{{{inunits4inunits3|}}}|1|0}}) or|{{nbsp|3}}{{{inunits3|}}} }}
 
({{#if:{{{units5|}}}|1|0}} and {{#if:{{{inunits5|}}}|1|0}}) or
| label15 = {{nbsp|3}}{{{units4|}}}
({{#if:{{{units6|}}}|1|0}} and {{#if:{{{inunits6|}}}|1|0}})
| data15 = {{#ifexpr:({{#if:{{{units4|}}}|1|0}} and {{#if:{{{inunits4|}}}|1|0}}) |{{nbsp|3}}{{{inunits4|}}} }}
| {{!}} style="background:#ccf;" colspan="2"{{!}} <center>'''Konversi satuan'''</center>
 
{{!}}-
| label16 = {{nbsp|3}}{{{units5|}}}
{{!}}style="font-size: 100%;"{{!}}1 {{{symbol|}}} di... {{!}}{{!}} sama dengan...
| data16 = {{#ifexpr:({{#if:{{{units5|}}}|1|0}} and {{#if:{{{inunits5|}}}|1|0}}) |{{nbsp|3}}{{{inunits5|}}} }}
{{!}}-
 
{{#ifexpr: ({{#if:{{{units1|}}}|1|0}} and {{#if:{{{inunits1|}}}|1|0}})
| label17 |= {{!}} &nbsp;&nbsp; {{{units1|3}}}{{!}}{{!}} &nbsp;&nbsp; {{{inunits1units6|}}}
| data17 = {{#ifexpr:({{#if:{{{units6|}}}|1|0}} and {{#if:{{{inunits6|}}}|1|0}}) |{{nbsp|3}}{{{inunits6|}}} }}
}}
 
{{!}}-
<!------------- Unit conversions (imperial) --------------->
{{#ifexpr: ({{#if:{{{units2|}}}|1|0}} and {{#if:{{{inunits2|}}}|1|0}})
| header20 =
| {{!}} &nbsp;&nbsp; {{{units2|}}}{{!}}{{!}} &nbsp;&nbsp; {{{inunits2|}}}
{{#ifexpr: ({{#if:{{{units_imp1|}}}|1|0}} and {{#if:{{{inunits_imp1|}}}|1|0}})
}}
or ({{#if:{{{units_imp2|}}}|1|0}} and {{#if:{{{inunits_imp2|}}}|1|0}})
{{!}}-
{{#ifexpr: or ({{#if:{{{units3units_imp3|}}}|1|0}} and {{#if:{{{inunits3inunits_imp3|}}}|1|0}})
or ({{#if:{{{units_imp4|}}}|1|0}} and {{#if:{{{inunits_imp4|}}}|1|0}})
| {{!}} &nbsp;&nbsp; {{{units3|}}}{{!}}{{!}} &nbsp;&nbsp; {{{inunits3|}}}
or ({{#if:{{{units_imp5|}}}|1|0}} and {{#if:{{{inunits_imp5|}}}|1|0}})
}}
or ({{#if:{{{units_imp6|}}}|1|0}} and {{#if:{{{inunits_imp6|}}}|1|0}})
{{!}}-
| Unit conversions (imperial)
{{#ifexpr: ({{#if:{{{units4|}}}|1|0}} and {{#if:{{{inunits4|}}}|1|0}})
<tr class="nowrap"><td>''1 imp {{{symbol|unit}}} dalam ...''</td><td>''... sama dengan ...''</td></tr>
| {{!}} &nbsp;&nbsp; {{{units4|}}}{{!}}{{!}} &nbsp;&nbsp; {{{inunits4|}}}
}}
 
{{!}}-
| label22 = {{nbsp|3}}{{{units_imp1|}}}
{{#ifexpr: ({{#if:{{{units5|}}}|1|0}} and {{#if:{{{inunits5|}}}|1|0}})
| data22 = {{#ifexpr:({{#if:{{{units_imp1|}}}|1|0}} and {{#if:{{{inunits_imp1|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp1|}}} }}
| {{!}} &nbsp;&nbsp; {{{units5|}}}{{!}}{{!}} &nbsp;&nbsp; {{{inunits5|}}}
 
}}
| label23 = {{nbsp|3}}{{{units_imp2|}}}
{{!}}-
| data23 = {{#ifexpr: ({{#if:{{{units6units_imp2|}}}|1|0}} and {{#if:{{{inunits6inunits_imp2|}}}|1|0}}) |{{nbsp|3}}{{{inunits_imp2|}}} }}
 
| {{!}} &nbsp;&nbsp; {{{units6|}}}{{!}}{{!}} &nbsp;&nbsp; {{{inunits6|}}}
| 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|}}}
|}</includeonly><noinclude>{{documentation}}</noinclude>
| 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|}}} }}
 
<!---------------- Unit 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}})
| Unit conversions (US)
<tr class="nowrap"><td>''1 US {{{symbol|unit}}} 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>