Difference between revisions of "Template:Temperature/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Documentation for temperature differences)
Line 1: Line 1:
==Description==
+
== Description ==
 
This template is used to take a temperature value in Celsius, so it can then display both Celsius and Fahrenheit.
 
This template is used to take a temperature value in Celsius, so it can then display both Celsius and Fahrenheit.
  
==Syntax==
+
== Syntax ==
 
Type <code>{{t|Temperature|X}}</code> on the page to be marked, where X is your temperature value in Celsius.
 
Type <code>{{t|Temperature|X}}</code> on the page to be marked, where X is your temperature value in Celsius.
  
 
To display a range of temperatures, type <code>{{t|Temperature|X|Y}}</code> on the page to be marked, where X and Y are the bounds of your temperature range in Celsius.
 
To display a range of temperatures, type <code>{{t|Temperature|X|Y}}</code> on the page to be marked, where X and Y are the bounds of your temperature range in Celsius.
  
==Example 1==
+
To display a temperature difference rather than an absolute temperature type <code>{{t|Temperature|X||delta}}</code> or <code>{{t|Temperature|X|Y|delta}}</code>.
 +
 
 +
== Example 1 ==
 +
Absolute temperature: <code><nowiki>{{Temperature|20}}</nowiki></code>
 +
 
 
{{Temperature|20}}
 
{{Temperature|20}}
  
==Example 2==
+
== Example 2 ==
 +
Absolute temperature: <code><nowiki>{{Temperature|32}}</nowiki></code>
 +
 
 
{{Temperature|32}}
 
{{Temperature|32}}
  
==Example 3==
+
== Example 3 ==
 +
Absolute temperature range: <code><nowiki>{{Temperature|20|32|delta}}</nowiki></code>
 +
 
 
{{Temperature|20|32}}
 
{{Temperature|20|32}}
 +
 +
== Example 4 ==
 +
Temperature difference: <code><nowiki>{{Temperature|20||delta}}</nowiki></code>
 +
 +
{{Temperature|20||delta}}
 +
 +
== Example 5 ==
 +
Temperature difference range: <code><nowiki>{{Temperature|20|32|delta}}</nowiki></code>
 +
 +
{{Temperature|20|32|delta}}
  
  
 
<includeonly>[[Category:Formatting templates]]</includeonly>
 
<includeonly>[[Category:Formatting templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 14:43, 21 March 2022

Description

This template is used to take a temperature value in Celsius, so it can then display both Celsius and Fahrenheit.

Syntax

Type {{Temperature|<X>}} on the page to be marked, where X is your temperature value in Celsius.

To display a range of temperatures, type {{Temperature|<X>|<Y>}} on the page to be marked, where X and Y are the bounds of your temperature range in Celsius.

To display a temperature difference rather than an absolute temperature type {{Temperature|<X>|<delta>}} or {{Temperature|<X>|<Y>|<delta>}}.

Example 1

Absolute temperature: {{Temperature|20}}

20 °C (68 °F)

Example 2

Absolute temperature: {{Temperature|32}}

32 °C (89.6 °F)

Example 3

Absolute temperature range: {{Temperature|20|32|delta}}

20 °C – 32 °C (68 °F – 89.6 °F)

Example 4

Temperature difference: {{Temperature|20||delta}}

20 °C (36 °F)

Example 5

Temperature difference range: {{Temperature|20|32|delta}}

20 °C – 32 °C (36 °F – 57.6 °F)