Difference between revisions of "Template:Convert temp"

From Wikishire
Jump to: navigation, search
(Created page with ''''''Temperature convert not complete yet'''''<!-- C to K: {{#expr:{{{1}}}+273.15|round{{{4}}}}} F to K: {{#expr:{{{1}}}/1.8+255.32282|round{{{4}}}}} K to C: {{#expr:{{{1}}}-273.…')
 
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''''Temperature convert not complete yet'''''<!--
+
{{#vardefine:fig mid|{{#switch:{{{2}}}
C to K: {{#expr:{{{1}}}+273.15|round{{{4}}}}}
+
|degC={{#expr:{{{1}}}+273.15}}
F to K: {{#expr:{{{1}}}/1.8+255.32282|round{{{4}}}}}
+
|degF={{#expr:{{{1}}}/1.8+255.32282}}
K to C: {{#expr:{{{1}}}-273.15|round{{{4}}}}}
+
|K={{{1}}}
K to F: {{#expr:{{{1}}}*1.8+459.67|round{{{4}}}}}
+
}}}}{{#switch:{{{3}}}
--><noinclude>[[Category:Convert templates|Convert temp]]
+
|degC={{#expr:{{#var:fig mid}}-273.15}}
 +
|degF={{#expr:{{#var:fig mid}}*1.8-459.67}}
 +
|K={{#var:fig mid}}}}<noinclude>[[Category:Convert templates|Temp]]

Latest revision as of 13:02, 11 October 2012