Difference between revisions of "Template:Chembox MeltingPt"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
m (Changed protection level of Template:Chembox MeltingPt: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite)))
imported>DePiep
(Use Template:convert for temperature calculations.)
Line 1: Line 1:
 
| [[Melting point]]
 
| [[Melting point]]
|  
+
| {{Chembox CalcTemperatures
{{#if:{{{value1|}}}|{{{value1}}}{{#if:{{{value4|}}}|-{{{value4}}} }} °C, {{#expr:({{{value1|}}}+273.15 round 0)}}{{#if:{{{value4|}}}|-{{#expr:({{{value4|}}}+273.15 round 0)}} }} K, {{#expr:({{{value1}}} * 9 / 5 + 32 round 0) }}{{#if:{{{value4|}}}|-{{#expr:({{{value4}}} * 9 / 5 + 32 round 0) }} }} °F|
+
| unit={{#if:{{{value1|}}}|C|{{#if:{{{value2|}}}|F|{{#if:{{{value3|}}}|K|}}}}}}
{{#if:{{{value2|}}}|{{#expr:(({{{value2}}}-32)*5/9 round 0)}}{{#if:{{{value5|}}}|-{{#expr:(({{{value5}}}-32)*5/9 round 0)}} }} °C, {{#expr:(({{{value2|}}}-32)*5/9+273.15 round 0)}}{{#if:{{{value5|}}}|-{{#expr:(({{{value5|}}}-32)*5/9+273.15 round 0)}} }} K, {{{value2}}}{{#if:{{{value5|}}}|-{{{value5}}} }} °F|
+
| temp1={{{value1|}}} {{{value2|}}} {{{value3|}}}
{{#if:{{{value3|}}}|{{#expr:({{{value3}}}-273.15 round 0)}}{{#if:{{{value6|}}}|-{{#expr:({{{value6}}}-273.15 round 0)}} }} °C, {{{value3|}}}{{#if:{{{value6|}}}|-{{{value6|}}} }} K, {{#expr:(({{{value3}}}-273.15) * 9 / 5 + 32 round 0) }}{{#if:{{{value6|}}}|-{{#expr:(({{{value6}}}-273.15) * 9 / 5 + 32 round 0) }} }} °F|
+
| temp2={{{value4|}}} {{{value5|}}} {{{value6|}}}
{{{value|}}} }} }} }} {{#if:{{{label|}}}|{{{label}}} }}
+
| defaultvalue={{{value|}}}<!--
|-<noinclude>[[Category:Chembox templates|{{PAGENAME}}]]</noinclude>
+
    tracking checks
 +
-->| track1={{{value2|}}}{{{value5|}}}{{{value3|}}}{{{value6|}}}{{{value1|}}}{{{value4|}}}
 +
  | trackcatsort=Melt<!--
 +
-->}}{{#if:{{{label|}}}|&#x20;{{{label}}} }}
 +
<!-- keep newline -->
 +
 
 +
|-<noinclude>
 +
 
 +
{{documentation}}
 +
</noinclude>

Revision as of 17:37, 16 December 2013

| Melting point |

|-

Template documentation[view] [edit] [history] [purge]

Usage

See also