« Modèle:Température » : différence entre les versions

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Moez (discussion | contributions)
m Révocation des modifications de 79.84.18.86 (retour à la dernière version de Epop)
Ligne 1 :
<includeonly>{{#if:{{{1|}}}|{{#switch:<!--
Utilisation
-->{{#iferror:{{#expr:{{{1|}}}}}|erreur|1num}}<!--
Ce modèle sert à formater les données concernant les températures caractéristiques (Tfusion, Tébullition, Tinflammation, point éclair) d’un composé chimique. Ce modèle permet les intervalles de températures ainsi qu’un commentaire.
-->{{#iferror:{{#expr:{{{2|}}}}}|2unite|2num}}<!--
-->{{#if:{{{3|}}}|{{#switch:{{{3|}}}|C|°C|F|°F|Ra|°Ra|Ré|°Ré|Re|°Re|De|°De|K=3unite|#default=3comment}}|}}<!--
 
Le modèle convertit les degré Fahrenheit (°F), les Kelvin (K), les Réaumur (°Ré), les Delisle (°De) et les Rankine (°Ra) en degré Celsius (°C) et affiche les valeurs en °F et K lors du passage du curseur sur les nombres.
 
-->|erreur2unite={{#expr:{{{1|}}}}}<!--
Il s’utilise avec un point à la place de la virgule.
-->|1num2unite={{#switch:{{{2|}}}<!--
-->|C|°C=<span title="{{formatnum:{{#expr:9/5*{{{1|}}}+32round1}}}}°F {{formatnum:{{#expr:{{{1|}}}+273.15round1}}}}K">{{formatnum:{{{1|}}}}}&nbsp;[[degré Celsius|°C]]</span><!--
-->|F|°F=<span title="{{formatnum:{{{1|}}}}}°F {{formatnum:{{#expr:5/9*({{{1|}}}+459.67)round1}}}}K">{{formatnum:{{#expr:5/9*{{{1|}}}-17.8round1}}}}&nbsp;[[degré Celsius|°C]]</span><!--
-->|Ra|°Ra=<span title="{{formatnum:{{#expr:{{{1|}}}-459.67round1}}}}°F {{formatnum:{{#expr:5/9*{{{1|}}}round1}}}}K">{{formatnum:{{#expr:5/9*{{{1|}}}-273.15round1}}}}&nbsp;[[degré Celsius|°C]]</span><!--
-->|Ré|°Ré|Re|°Re=<span title="{{formatnum:{{#expr:({{{1|}}}*9/4)+32round1}}}}°F {{formatnum:{{#expr:{{{1|}}}*1.25+273.15round1}}}}K">{{formatnum:{{#expr:5/4*{{{1|}}}round1}}}}&nbsp;[[degré Celsius|°C]]</span><!--
-->|De|°De=<span title="{{formatnum:{{#expr:212-{{{1|}}}*6/5round1}}}}°F {{formatnum:{{#expr:373.15-2/3*{{{1|}}}round1}}}}K">{{formatnum:{{#expr:100-{{{1|}}}*2/3round1}}}}&nbsp;[[degré Celsius|°C]]</span><!--
-->|K=<span title="{{formatnum:{{#expr:({{{1|}}}-273.15)*9/5+32round1}}}}°F {{formatnum:{{{1|}}}}}K">{{formatnum:{{#expr:{{{1|}}}-273.15round1}}}}&nbsp;[[degré Celsius|°C]]</span>}}<!--
 
Syntaxe
{{Température|température1|température2|unité de température|}}
 
-->|1num2num3unite={{#switch:{{{3|}}}<!--
ou
-->|C|°C=<span title="{{formatnum:{{#expr:9/5*{{{1|}}}+32round1}}}}°F {{formatnum:{{#expr:{{{1|}}}+273.15round1}}}}K">{{formatnum:{{{1|}}}}}</span>&nbsp;à&nbsp;<span title="{{formatnum:{{#expr:9/5*{{{2|}}}+32round1}}}}°F {{formatnum:{{#expr:{{{2|}}}+273.15round1}}}}K">{{formatnum:{{{2|}}}}}&nbsp;[[degré Celsius|°C]]</span>{{#if:{{{4|}}}|&#32; ({{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}})|}}<!--
-->|F|°F=<span title="{{formatnum:{{{1|}}}}}°F {{formatnum:{{#expr:5/9*({{{1|}}}+459.67)round1}}}}K">{{formatnum:{{#expr:5/9*{{{1|}}}-17.8round1}}}}</span>&nbsp;à&nbsp;<span title="{{formatnum:{{{2|}}}}}°F {{formatnum:{{#expr:5/9*({{{2|}}}+459.67)round1}}}}K">{{formatnum:{{#expr:5/9*{{{2|}}}-17.8round1}}}}&nbsp;[[degré Celsius|°C]]</span>{{#if:{{{4|}}}|&#32; ({{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}})|}}<!--
-->|Ra|°Ra=<span title="{{formatnum:{{#expr:{{{1|}}}-459.67round1}}}}°F {{formatnum:{{#expr:5/9*{{{1|}}}round1}}}}K">{{formatnum:{{#expr:5/9*{{{1|}}}-273.15round1}}}}</span>&nbsp;à&nbsp;<span title="{{formatnum:{{#expr:{{{2|}}}-459.67round1}}}}°F {{formatnum:{{#expr:5/9*{{{2|}}}round1}}}}K">{{formatnum:{{#expr:5/9*{{{2|}}}-273.15round1}}}}&nbsp;[[degré Celsius|°C]]</span>{{#if:{{{4|}}}|&#32; ({{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}})|}}<!--
-->|Ré|°Ré|Re|°Re=<span title="{{formatnum:{{#expr:({{{1|}}}*9/4)+32round1}}}}°F {{formatnum:{{#expr:{{{1|}}}*1.25+273.15round1}}}}K">{{formatnum:{{#expr:5/4*{{{1|}}}round1}}}}</span>&nbsp;à&nbsp;<span title="{{formatnum:{{#expr:({{{2|}}}*9/4)+32round1}}}}°F {{formatnum:{{#expr:{{{2|}}}*1.25+273.15round1}}}}K">{{formatnum:{{#expr:5/4*{{{2|}}}round1}}}}&nbsp;[[degré Celsius|°C]]</span>{{#if:{{{4|}}}|&#32; ({{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}})|}}<!--
-->|De|°De=<span title="{{formatnum:{{#expr:212-{{{1|}}}*6/5round1}}}}°F {{formatnum:{{#expr:373.15-2/3*{{{1|}}}round1}}}}K">{{formatnum:{{#expr:100-{{{1|}}}*2/3round1}}}}</span>&nbsp;à&nbsp;<span title="{{formatnum:{{#expr:212-{{{2|}}}*6/5round1}}}}°F {{formatnum:{{#expr:373.15-2/3*{{{2|}}}round1}}}}K">{{formatnum:{{#expr:100-{{{2|}}}*2/3round1}}}}&nbsp;[[degré Celsius|°C]]</span>{{#if:{{{4|}}}|&#32; ({{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}})|}}<!--
-->|K=<span title="{{formatnum:{{#expr:({{{1|}}}-273.15)*9/5+32round1}}}}°F {{formatnum:{{{1|}}}}}K">{{formatnum:{{#expr:{{{1|}}}-273.15round1}}}}</span>&nbsp;à&nbsp;<span title="{{formatnum:{{#expr:({{{2|}}}-273.15)*9/5+32round1}}}}°F {{formatnum:{{{2|}}}}}K">{{formatnum:{{#expr:{{{2|}}}-273.15round1}}}}&nbsp;[[degré Celsius|°C]]</span>{{#if:{{{4|}}}|&#32; ({{#ifexist:{{{4|}}}|[[{{{4|}}}]]|{{{4|}}}}})|}}}}<!--
 
{{tmp|température1|température2|unité de température|}}
 
-->|1num2unite3comment={{#switch:{{{2|}}}<!--
Exemple
-->|C|°C=<span title="{{formatnum:{{#expr:9/5*{{{1|}}}+32round1}}}}°F {{formatnum:{{#expr:{{{1|}}}+273.15round1}}}}K">{{formatnum:{{{1|}}}}}&nbsp;[[degré Celsius|°C]]</span>&#32; ({{#ifexist:{{{3|}}}|[[{{{3|}}}]]|{{{3|}}}}})<!--
{{Température|25|27|°C|Décomposition}} renvoie 25 à 27 °C (Décomposition)
-->|F|°F=<span title="{{formatnum:{{{1|}}}}}°F {{formatnum:{{#expr:5/9*({{{1|}}}+459.67)round1}}}}K">{{formatnum:{{#expr:5/9*{{{1|}}}-17.8round1}}}}&nbsp;[[degré Celsius|°C]]</span>&#32; ({{#ifexist:{{{3|}}}|[[{{{3|}}}]]|{{{3|}}}}})<!--
-->|Ra|°Ra=<span title="{{formatnum:{{#expr:{{{1|}}}-459.67round1}}}}°F {{formatnum:{{#expr:5/9*{{{1|}}}round1}}}}K">{{formatnum:{{#expr:5/9*{{{1|}}}-273.15round1}}}}&nbsp;[[degré Celsius|°C]]</span>&#32; ({{#ifexist:{{{3|}}}|[[{{{3|}}}]]|{{{3|}}}}})<!--
-->|Ré|°Ré|Re|°Re=<span title="{{formatnum:{{#expr:({{{1|}}}*9/4)+32round1}}}}°F {{formatnum:{{#expr:{{{1|}}}*1.25+273.15round1}}}}K">{{formatnum:{{#expr:5/4*{{{1|}}}round1}}}}&nbsp;[[degré Celsius|°C]]</span>&#32; ({{#ifexist:{{{3|}}}|[[{{{3|}}}]]|{{{3|}}}}})<!--
-->|De|°De=<span title="{{formatnum:{{#expr:212-{{{1|}}}*6/5round1}}}}°F {{formatnum:{{#expr:373.15-2/3*{{{1|}}}round1}}}}K">{{formatnum:{{#expr:100-{{{1|}}}*2/3round1}}}}&nbsp;[[degré Celsius|°C]]</span>&#32; ({{#ifexist:{{{3|}}}|[[{{{3|}}}]]|{{{3|}}}}})<!--
-->|K=<span title="{{formatnum:{{#expr:({{{1|}}}-273.15)*9/5+32round1}}}}°F {{formatnum:{{{1|}}}}}K">{{formatnum:{{#expr:{{{1|}}}-273.15round1}}}}&nbsp;[[degré Celsius|°C]]</span>&#32; ({{#ifexist:{{{3|}}}|[[{{{3|}}}]]|{{{3|}}}}})}}<!--
 
-->}}<!--
 
message d'erreur unité manquante
 
-->{{#if:{{{2|}}}||{{{1|}}}&nbsp;<strong class="error">unité manquante</strong>}}<!--
{{Température|78|80|°F}} renvoie 25,5 à 26,6 °C
-->|}}</includeonly><noinclude>{{/Documentation}}</noinclude>
{{Température|580|K}} renvoie 306,9 °C
{{Température|200|Ra}} renvoie -162 °C
{{Température|200|De}} renvoie -33,3 °C
Ce document provient de « http://fr.wikipedia.org/wiki/Mod%C3%A8le:Temp%C3%A9rature ».