Difference between revisions of "Template:Temperature"

From The Powder Toy
Jump to: navigation, search
(Enter a short summary [b])
m (Protected "Template:Temperature": Templates used on wiki shouldn't be edited ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span class="temperature" data-toggle="tooltip" data-original-title="{{{t}}}K; {{#expr:({{{t}}}*1.8)-459.67 round 2}}&deg;F">{{#expr:{{{t}}}-273.15 round 2}}&deg;C</span></includeonly><noinclude>The argument ''t'' is the temperature in Kelvin. It will be displayed in &deg;C, and in K and &deg;F in a tooltip. Temperature must be between 0 and 9999 inclusive.
+
<includeonly><span class="temperature" data-toggle="tooltip" data-original-title="{{{t}}}K; {{#expr:({{{t}}}*1.8)-459.67 round 2}}&deg;F">{{#expr:{{{t}}}-273.15 round 2}}&deg;C</span></includeonly><noinclude>The argument ''t'' is the temperature in Kelvin. It will be displayed in &deg;C, and in K and &deg;F in a tooltip.  
 
Example: <nowiki>{{ Temperature | t=1000 }}</nowiki> and you will get {{ Temperature | t=1000 }} </noinclude>
 
Example: <nowiki>{{ Temperature | t=1000 }}</nowiki> and you will get {{ Temperature | t=1000 }} </noinclude>

Latest revision as of 20:26, 24 August 2021

The argument t is the temperature in Kelvin. It will be displayed in °C, and in K and °F in a tooltip. Example: {{ Temperature | t=1000 }} and you will get 726.85°C