Difference between revisions of "Template:Chembox CalcTemperatures"
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.) |
imported>DePiep (Update Template:Chembox suite templates per WT:Chembox changes c.s.) |
||
| Line 1: | Line 1: | ||
| − | {{# | + | {{#invoke:string |replace |source={{{temp_text|}}} |pattern=([%<%>%~])%&%#x20%;$ |replace=%1 |plain=false |no_category=true |ignore_errors=true}}<!-- |
| − | + | -->{{#switch:{{{temp_unit|}}} | |
| − | + | |= | |
| − | + | |C={{convert|{{{temp_C|}}} {{{temp_F|}}}{{{temp_K|}}} |C |F K}} | |
| − | + | |F|K={{convert|{{{temp_F|}}} {{{temp_K|}}} |{{{temp_unit|}}} |C F K |disp=output only}} }}<!-- | |
| − | + | Note: this setup triggers a {convert} error when multiple temp inputs (C, F, K) | |
| − | + | -->{{{temp_ref|}}} {{{temp_notes|}}}<!-- | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | -->{ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
--><noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 13:28, 6 February 2015
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. |