Template:Height
The template is intended for conversion of heights specified in either metres or in feet and inches.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Metres | m metre metres meter meters | The height in metres. Do not use if feet and inches are specified. | Number | optional |
Centimetres | cm centimetre centimetres centimeter centimeters | The height in centimetres. Do not use if feet and inches are specified. | Number | optional |
Feet | ft foot feet | The feet part of the height in feet and inches. Do not use if centimetres are specified. | Number | optional |
Inches | in inch inches | The inches part of the height in feet and inches (optional). Do not use if centimetres are specified. Fractions are supported in the form u+n/d. | Number | optional |
Precision of converted value | precision | The amount of decimal places to display the converted value to. Defaults to 2 for feet and inches to metres and to 1 for metres/centimetres to feet and inches. | Number | optional |
Fraction denominator | frac | Shows result as a fraction. The number in this parameter is the denominator of the fraction. Used only for metres/centimetres to feet and inches. Set to "10" for decimals. Defaults to 2 (halves). | Number | optional |
Abbreviation style | abbr | Changes abbreviation style. Set to "yes" for all units to be abbreviated (default), "no" for all to be spelled out, or "mos" for the units being converted to be spelled out and the converted units to be abbreviated. | String | optional |
Unit linking | wiki | Changes whether units are linked. Set to "no" to not link units (default) or "yes" to link units. | String | optional |
Output format | out | Changes output format of conversion. Set to "cm" with input values in feet and inches to output the conversion as centimetres. No other options currently exist and the template ignores anything other than "cm". | String | optional |
See also
- {{convert}}
- {{convert|1.82|m|ftin|frac=4|abbr=on}} → 1.82 m (5 ft 11+3⁄4 in)
- {{convert|182|cm|ftin|frac=4|abbr=on}} → 182 cm (5 ft 11+3⁄4 in)
- {{convert|5|ft|11+3/4|in|m|2|abbr=on}} → 5 ft 11+3⁄4 in (1.82 m)
- {{convert|5|ft|11+3/4|in|cm|0|abbr=on}} → 5 ft 11+3⁄4 in (182 cm)