Template:Infobox person/height/doc

This template is used to automatically add conversions of height measurements displayed by Template:Infobox person and other infoboxes with a height parameter.

Examples
Centimetres:


 * 1 centimetre &rarr;
 * 1centimeter &rarr;
 * 1&amp;nbsp;centimeter &rarr;
 * 157 centimetres &rarr;
 * 157 centimeters &rarr;
 * 157 cms &rarr;
 * 157 cm. &rarr;

Metres:


 * 1 metre &rarr;
 * 1meter &rarr;
 * 1&amp;nbsp;meter &rarr;
 * 1.57 metres &rarr;
 * 1.57 meters &rarr;
 * 1.57 ms &rarr;
 * 1.57 m. &rarr;

Feet:


 * 1 foot &rarr;
 * 1foot &rarr;
 * 1&amp;nbsp;foot &rarr;
 * 2 feet &rarr;
 * 2 ft. &rarr;
 * 2.5 ft &rarr;
 * 2+1/2 ft &rarr;

Inches:


 * 1 inch &rarr;
 * 1inch &rarr;
 * 1&amp;nbsp;inch &rarr;
 * 2 inches &rarr;
 * 2 ins &rarr;
 * 2 in. &rarr;
 * 2.5 in &rarr;
 * 2+1/2 in &rarr;

Feet and inches:


 * 5 feet 2 inches &rarr;
 * 5feet 2inches &rarr;
 * 5&amp;nbsp;feet 2&amp;nbsp;inches &rarr;
 * 5 feet, 2 inches &rarr;
 * 5 ft. 2 in. &rarr;
 * 5 ft 2.5 in &rarr;
 * 5 ft 2+1/2 in &rarr;

Text and/or footnotes (references) after height:


 * 5 feet 2 inches (2012) &rarr;
 * 5 feet 2 inches &rarr;
 * 5 feet 2 inches (2012) &rarr;
 * Example references

Convert templates, without and with wikilinked unit names:


 * 5 ft &rarr;
 * 5 ft &rarr;
 * 5 ft &rarr;
 * 5 ft &rarr;
 * 5 ft &rarr;
 * 5 ft &rarr;
 * 5 ft &rarr;
 * 5 ft &rarr;
 * 5 ft &rarr;
 * 5 ft &rarr;
 * 5 ft &rarr;


 * 157 cm &rarr;
 * 157 cm &rarr;
 * 1.57 m &rarr;
 * 1.57 m &rarr;
 * 1.57 m &rarr;

Exceptions
Does not replace numbers in manually entered conversions, but does replace unit names with abbreviations (examples intentionally show incorrect conversions):


 * 5 feet 2 inches (1.00 metres) &rarr;
 * 5 feet 2 inches (100 centimetres) &rarr;
 * 1.57 metres (5 feet 5 inches) &rarr;
 * 157 centimetres (5 feet 5 inches) &rarr;

Does not replace numeric output of conversion templates such as convert or height, but does replace unit names with abbreviations (examples intentionally show different precision than usual):


 * 5 ft &rarr;
 * output of convert template: 5 ft
 * 5 ft &rarr;
 * output of convert template: 5 ft
 * 1.57 m &rarr;
 * output of convert template: 1.57 m
 * 157 cm &rarr;
 * output of convert template: 157 cm
 * 1.57m &rarr;
 * output of height template: 1.57m
 * 157cm &rarr;
 * output of height template: 157cm

Areas for improvement
– Conversions not displayed if unit name contains uppercase characters:


 * 157 CM &rarr;
 * 1.57 M &rarr;
 * 5 FT 2 IN &rarr;

– Conversion not displayed if symbols are used for feet and inches:


 * 5' 2" &rarr;
 * 5′ 2″ &rarr;

– Does not recognize symbols for feet and inches in a manually entered conversion (adds a second conversion):


 * 157cm (5' 2") &rarr;
 * 1.57m (5′ 2″) &rarr;