Difference between revisions of "Template:Temperature/doc"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
==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. | ||
==Example 1== | ==Example 1== | ||
Line 10: | Line 12: | ||
==Example 2== | ==Example 2== | ||
{{Temperature|32}} | {{Temperature|32}} | ||
+ | |||
+ | ==Example 3== | ||
+ | {{Temperature|20|32}} | ||
+ | |||
<includeonly>[[Category:Formatting templates]]</includeonly> | <includeonly>[[Category:Formatting templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 00:04, 21 January 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.
Example 1
20 °C (68 °F)
Example 2
32 °C (89.6 °F)
Example 3
20 °C – 32 °C (68 °F – 89.6 °F)