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...") |
(Per edit request) |
||
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> |
Revision as of 20:52, 8 July 2022
Template documentation
[create]