« Utilisateur:Bhutajata/Brouillon » : différence entre les versions
Contenu supprimé Contenu ajouté
mAucun résumé des modifications |
|||
Ligne 1 :
{{#iferror: {{#expr: 1/{{{1}}}}}<!-- Testing if temperature is a number -->|<!-- If T is not a number, returns nothing
-->|{{#ifexpr: ({{{1}}}>=837) and ({{{1}}}<=1000000)<!-- Testing if temperature is in the expected range
-->|{{#switch:{{{2}}}<!--
-->|codecouleur=<!--
-->|#default=<span style="background:gray;padding:1px 1px 1px 0;color:white;border:solid 2px gray;margin:0 0.1em;font-align:center;vertical-align:middle;display:inline;font-family:sans-serif"><!--
--><span style="padding:1px;margin:0 3px 0 0;background:#<!--
-->}}<!--
IF T >= 6513
-->{{#ifexpr: {{{1}}}>=6513<!--
RED VALUE
-->|{{RGB2HEX|{{#expr:(((1.33604838648566*10^-24*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1)^6 - 3.42904666444949*10^-20*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1)^5 + 4.76013157435451*10^-16*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1)^4 - 5.54630691264861*10^-12*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1)^3 + 5.27668538082698*10^-8*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1)^2 - 3.15426477346392*10^-4*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1) + 1.00028389081365)^(1/2.2))*255)round 0}}|<!--
GREEN VALUE
-->{{#expr:(((2.21376205428353*10^-25*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1)^6 - 1.06620158942587*10^-20*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1)^5 + 1.41601117473501*10^-16*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1)^4 - 1.40278916005996*10^-12*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1)^3 + 1.9661605411489*10^-8*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1)^2 - 1.77304800054401*10^-04*((((10^6/6513)-(10^6/{{{1}}}))/0.0305139179225374)+1) + 9.50644096624274*10^-1)^(1/2.2))*255) round 0}}|<!--
BLUE VALUE
-->255}}<!--
IF T < 6513
RED VALUE
-->|{{RGB2HEX|255|<!--
GREEN VALUE
-->{{#expr:(((-6.36140492531865*10^-23*((((10^6/837)-(10^6/{{{1}}}))/0.208282467399927)+1)^6 + 1.54234405173791*10^-18*((((10^6/837)-(10^6/{{{1}}}))/0.208282467399927)+1)^5 - 8.50297019901254*10^-15*((((10^6/837)-(10^6/{{{1}}}))/0.208282467399927)+1)^4 + 1.98685565002961*10^-11*((((10^6/837)-(10^6/{{{1}}}))/0.208282467399927)+1)^3 - 9.41829172637632*10^-9*((((10^6/837)-(10^6/{{{1}}}))/0.208282467399927)+1)^2 + 3.75935186891496*10^-5*((((10^6/837)-(10^6/{{{1}}}))/0.208282467399927)+1))^(1/2.2))*255) round 0}}|<!--
BLUE VALUE
-->{{#ifexpr: {{{1}}}>=1967<!--
-->|{{#expr:(((2.42153277506324*10^-23*((((10^6/1967)-(10^6/{{{1}}}))/0.0709840634225878)+1)^6 - 5.87576526864656*10^-20*((((10^6/1967)-(10^6/{{{1}}}))/0.0709840634225878)+1)^5 + 4.98585460100555*10^-16*((((10^6/1967)-(10^6/{{{1}}}))/0.0709840634225878)+1)^4 + 1.5815024731968*10^-12*((((10^6/1967)-(10^6/{{{1}}}))/0.0709840634225878)+1)^3 + 7.63061215082461*10^-9*((((10^6/1967)-(10^6/{{{1}}}))/0.0709840634225878)+1)^2 + 2.10732949996739*10^-5*((((10^6/1967)-(10^6/{{{1}}}))/0.0709840634225878)+1))^(1/2.2))*255) round 0}}<!--
-->|0}}}}<!--
-->}}<!--
-->{{#switch:{{{2}}}<!--
-->|codecouleur=<!--
-->|#default="> </span><!--
--><small>{{#if:{{{texte|}}}|{{{texte}}}|{{formatnum:{{{1}}}}} {{unité|K}}}}</small></span><!--
-->}}<!--
-->|{{{1}}}<!-- Returns temperature value if not in the range
-->}}}}<!-- Closing iferror and range testing
|