Open main menu

Gobblerpedia β

Changes

Template:Convert/kWh

594 bytes added, 21:51, 22 March 2011
changed to full subtemplate of Template:Convert, and reject invalid unit-codes: kW, h, BTU/h, ft, lb, lbf, calorie (etc.) by using Template:Convert/try
{{#switch: {{{3|BTU}}}
| kW|h = {{convert/try|use=Wh|was={{{3}}}|{{{1}}} kWh|}}
| BTU/h = {{convert/try|use=BTU|was={{{3}}}|{{{1}}} kWh|}}
| calorie|calories = {{convert/try|use=cal" or "kcal|was={{{3}}}|{{{1}}} kWh|}}
| ft|lb|lbf = {{convert/try|use=ft·lbf|was={{{3}}}|{{{1}}} kWh|}}
}}{{
convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|s={{{s|}}}|r={{{r}}}
|u=kWh
|n=kilowatt-hour
|t=watt-hour
|o=MJ
|b=3600000
|j=6.556302501-{{{j|0}}}}}<noinclude>

[[Category:Subtemplates of Template Convert]]
[[Category:2011 Convert unit subtemplates]]
</noinclude>
Anonymous user