Difference between revisions of "Template:Chembox CalcTemperatures"
Jump to navigation
Jump to search
imported>Mark Arsten m (Protected Template:Chembox CalcTemperatures: Highly visible template ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
imported>DePiep (Expand options; fmt C (F K) when by C; allow prefix, reference; track params for maintenance. See Wikipedia_talk:Chemical_infobox#Chembox_code_update_27_March_2014.) |
||
| Line 1: | Line 1: | ||
| − | {{#if:{{{temp1|}}}<!-- | + | {{#if:{{{temp1|}}}<!-- Calc temperatures |
| − | -->|{{#if:{{{temp2|}}}<!-- Range temp input | + | -->|{{#if:{{{PtPrefix|}}}|{{{PtPrefix|}}} }}<!-- |
| − | + | -->{{#if:{{{temp2|}}}<!-- Range temp input | |
| − | + | -->| {{#ifeq:{{{unit|C}}}|C|{{convert|{{{temp1|}}}|to|{{{temp2|}}}|C|F K}}|{{convert|{{{temp1|}}}|to|{{{temp2|}}}|{{{unit|}}}|C F K|disp=output only}}}}<!-- Single temp input | |
| − | + | -->| {{#ifeq:{{{unit|C}}}|C|{{convert|{{{temp1|}}}|C|F K}}|{{convert|{{{temp1|}}}|{{{unit|}}}|C F K|disp=output only}}}}<!-- | |
| − | -->|{{{ | + | -->}}<!-- |
| + | -->|{{{plaintext|}}}<!-- No temp input, so use the plaintext value | ||
-->}}<!-- | -->}}<!-- | ||
| − | tracking | + | ----- Checks for tracking: |
| + | |||
-->{{#if:{{{track1|}}}|<!-- | -->{{#if:{{{track1|}}}|<!-- | ||
| − | + | TRACK3: temperature is a range | |
| − | -->{{# | + | -->{{#if:{{{temp2|}}}| {{main other | [[Category:Chemboxes with conversion issues|R, {{PAGENAME}}]] | {{purple|<br>+cat:Convert range input (R, temperatures)}} }} }} }}<!-- |
-->{{#if:{{{track1|}}}|<!-- | -->{{#if:{{{track1|}}}|<!-- | ||
| − | + | TRACK1: input overload (too many input numbers) | |
| − | -->{{# | + | -->{{#ifeq:{{{temp1|}}}{{{temp2|}}}|{{{track1|}}}|| {{main other | [[Category:Chemboxes with conversion issues|2, {{PAGENAME}}]] | {{purple|<br>+cat:Convert double input (2, temperatures)}} }} }} }}<!-- |
-->{{#if:{{{track1|}}}|<!-- | -->{{#if:{{{track1|}}}|<!-- | ||
| − | + | TRACK2: Overlap: both number and text input | |
| − | -->{{#if:{{{ | + | -->{{#if:{{{plaintext|}}}| {{main other | [[Category:Chemboxes with conversion issues|O, {{PAGENAME}}]] | {{purple|<br>+cat:Convert input overlap (O, Temperatures)}} }} }} }}<!-- |
| − | |||
| − | {{documentation}} | + | --><noinclude>{{documentation}}</noinclude> |
| − | </noinclude> | ||
Revision as of 18:01, 27 March 2014
Values for Melting point, Boiling point (properties) and Flash point, Autoignition temperature (hazards) can convert temperatures into the set of °C, °F and K. They also can produce a temperature range, like 10 to 20 °C (50 to 68 °F; 283 to 293 K). Also, unformatted texts can be entered.
Usage
This parameter list:Four or less parameters are needed to present temperature data:
|
|
Decomposes when >_50 °C (122 °F; 323 K)[1]_My notes[2] |
|
The options for conversion: |
|
| Section = {{Chembox Properties
| MeltingPt =
| MeltingPtC =
| MeltingPtF =
| MeltingPtK =
| MeltingPt_ref =
| MeltingPt_notes =
| BoilingPt =
| BoilingPtC =
| BoilingPtF =
| BoilingPtK =
| BoilingPt_ref =
| BoilingPt_notes =
}}
|
| Section = {{Chembox Hazards
| FlashPt =
| FlashPtC =
| FlashPtF =
| FlashPtK =
| FlashPt_ref =
| FlashPt_notes =
| AutoignitionPt =
| AutoignitionPtC =
| AutoignitionPtF =
| AutoignitionPtK =
| AutoignitionPt_ref =
| AutoignitionPt_notes =
}}
|
See also
| The above documentation is transcluded from Template:Chembox CalcTemperatures/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |