Template:TempC

From KayakWiki


This is the TempC Template.

For more information on templates - see About Templates

This template uses unnamed parameters.

This template converts temperatures from Celsius to Farenheit and displays them in a standard format with a degree symbols and F/C symbols. The parameters include an optional rounding value to specify how many decimal places are to be used - the default is rounded to the nearest degree. This means you can input some text with a temperature in °C and have it display converted to °F without doing the math yourself.

For example, entering
This occurs at a temperature of {{TempC|44|1}}.
produces
This occurs at a temperature of 44°C (111.2°F).

See also: Template:TempF

Copy the template text between the lines below (no need to edit, just mark and copy) and paste it into the edit page. Then fill in the parameters. If a parameter does not apply, you can delete the parameter and its associated pipe (|).

Copy below this line:


{{TempC|value in degrees C|number of decimal digits}}


Copy above this line.


[edit] Parameter definitions

Parameter Description Mandatory or Default value
First parameter Temperature in degrees Celcius 0
Second parameter number of digits to the right of the decimal place. 0

The template follows (you won't see the whole thing if null defaults exist in the template):


0°C (32°F)