Template:Convert temp: Difference between revisions

From Wikishire
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:fig mid|{{#switch:{{{2|}}}
{{#vardefine:fig mid|{{#switch:{{{2}}}
|degC={{#expr:{{{1}}}+273.15}}
|degC={{#expr:{{{1}}}+273.15}}
|degF={{#expr:{{{1}}}/1.8+255.32282}}
|degF={{#expr:{{{1}}}/1.8+255.32282}}
|K={{{1}}}
|K={{{1}}}
}}{{#expr:{{#switch:{{{3|}}}
}}}}{{#switch:{{{3}}}
|degC={{#var:fig mid}}-273.15
|degC={{#expr:{{#var:fig mid}}-273.15}}
|degF={{#var:fig mid}}*1.8+459.67
|degF={{#expr:{{#var:fig mid}}*1.8-459.67}}
}} }}<noinclude>[[Category:Convert templates|Temp]]
|K={{#var:fig mid}}}}<noinclude>[[Category:Convert templates|Temp]]

Latest revision as of 13:02, 11 October 2012