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.…')
 
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}}}}}
+
}}{{#expr:{{#switch:{{{3|}}}
--><noinclude>[[Category:Convert templates|Convert temp]]
+
|degC={{#var:fig mid}}-273.15
 +
|degF={{#var:fig mid}}*1.8+459.67
 +
}} }}<noinclude>[[Category:Convert templates|Temp]]

Revision as of 12:44, 11 October 2012

{{#vardefine:fig mid|