Template:Chembox CalcTemperatures: Difference between revisions
From Vigyanwiki
(Created page with "{{#invoke:string |replace |source={{{temp_text|}}} |pattern=([%<%>%~])%&%#x20%;$ |replace=%1 |plain=false |no_category=true |ignore_errors=true}}<!-- -->{{#switch:{{{tem...") |
m (1 revision imported from alpha:Template:Chembox_CalcTemperatures) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:string |replace |source={{{temp_text|}}} |pattern=([%<%>%~])%&%#x20%;$ |replace=%1 |plain=false |no_category=true |ignore_errors=true}}<!-- | {{trim|1={{#invoke:string |replace |source={{{temp_text|}}} |pattern=([%<%>%~])%&%#x20%;$ |replace=%1 |plain=false |no_category=true |ignore_errors=true}}<!-- | ||
-->{{#switch:{{{temp_unit|}}} | -->{{#switch:{{{temp_unit|}}} | ||
|= | |= | ||
|C={{convert|{{{temp_C|}}} {{{temp_F|}}}{{{temp_K|}}} |C |F K}} | |C ={{#if:{{{temp_text|}}}| }}{{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}} }}<!-- | |F|K={{#if:{{{temp_text|}}}| }}{{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) | Note: this setup triggers a {convert} error when multiple temp inputs (C, F, K) | ||
-->{{{temp_ref|}}} | -->{{{temp_ref|}}} {{{temp_notes|}}}}}<!-- | ||
--><noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> |
Latest revision as of 15:34, 12 December 2022
Template documentation
[create]