Loading
  • 21 Aug, 2019

  • By, Wikipedia

Template:Height

TemplateData for Height

The template is intended for conversion of heights specified in either metres or in feet and inches.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Metresm metre metres meter meters

The height in metres. Do not use if feet and inches are specified.

Numberoptional
Centimetrescm centimetre centimetres centimeter centimeters

The height in centimetres. Do not use if feet and inches are specified.

Numberoptional
Feetft foot feet

The feet part of the height in feet and inches. Do not use if centimetres are specified.

Numberoptional
Inchesin 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.

Numberoptional
Precision of converted valueprecision

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.

Numberoptional
Fraction denominatorfrac

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).

Numberoptional
Abbreviation styleabbr

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.

Stringoptional
Unit linkingwiki

Changes whether units are linked. Set to "no" to not link units (default) or "yes" to link units.

Stringoptional
Output formatout

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".

Stringoptional

See also

  • {{convert}}
    • {{convert|1.82|m|ftin|frac=4|abbr=on}} → 1.82 m (5 ft 11+34 in)
    • {{convert|182|cm|ftin|frac=4|abbr=on}} → 182 cm (5 ft 11+34 in)
    • {{convert|5|ft|11+3/4|in|m|2|abbr=on}} → 5 ft 11+34 in (1.82 m)
    • {{convert|5|ft|11+3/4|in|cm|0|abbr=on}} → 5 ft 11+34 in (182 cm)