For faster navigation, this Iframe is preloading the Wikiwand page for ढाँचा:Infobox person/height/doc.

ढाँचा:Infobox person/height/doc

This is one of three templates used to automatically add conversions of height measurements displayed by Template:Infobox person and other infoboxes with a |height= parameter.

  1. Template:Infobox person/height changes text for units of height to the abbreviations "m", "cm", "ft", or "in", then passes the string to:
  2. Template:Infobox person/height/locate which replaces any instances of   with a space, and determines the positions of "m", "cm", "ft", or "in" within that string, all of which is passed to:
  3. Template:Infobox person/height/switch which does the conversion

Metres:

  • ((Infobox person/height|1 metre)) → 1 m (3 ft 3 in)
  • ((Infobox person/height|1meter)) → 1 m (3 ft 3 in)
  • ((Infobox person/height|1 meter)) → 1 m (3 ft 3 in)
  • ((Infobox person/height|1.57 metres)) → 1.57 m (5 ft 2 in)
  • ((Infobox person/height|1.57 meters)) → 1.57 m (5 ft 2 in)
  • ((Infobox person/height|1.57 m)) → 1.57 m (5 ft 2 in)
  • ((Infobox person/height|1.57 ms)) → 1.57 m (5 ft 2 in)

Centimetres:

  • ((Infobox person/height|1 centimetre)) → 1 cm (0 in)
  • ((Infobox person/height|1centimeter)) → 1 cm (0 in)
  • ((Infobox person/height|1 centimeter)) → 1 cm (0 in)
  • ((Infobox person/height|157 centimetres)) → 157 cm (5 ft 2 in)
  • ((Infobox person/height|157 centimeters)) → 157 cm (5 ft 2 in)
  • ((Infobox person/height|157 cm)) → 157 cm (5 ft 2 in)
  • ((Infobox person/height|157 cms)) → 157 cm (5 ft 2 in)

Feet:

  • ((Infobox person/height|1 foot)) → 1 ft (30 cm)
  • ((Infobox person/height|2 feet)) → 2 ft (61 cm)
  • ((Infobox person/height|2 ft)) → 2 ft (61 cm)

Inches:

  • ((Infobox person/height|1 inch)) → 1 in (3 cm)
  • ((Infobox person/height|2 inches)) → 2 in (5 cm)
  • ((Infobox person/height|2 in)) → 2 in (5 cm)
  • ((Infobox person/height|2 ins)) → 2 in (5 cm)

Feet and inches:

  • ((Infobox person/height|5 feet 2 inches)) → 5 ft 2 in (157 cm)
  • ((Infobox person/height|5feet 2inches)) → 5 ft 2 in (157 cm)
  • ((Infobox person/height|5 feet 2 inches)) → 5 ft 2 in (157 cm)

Text and footnotes (references) after height:

  • ((Infobox person/height|5 feet 2 inches (2012)<ref>citation goes here</ref>)) → 5 ft 2 in (157 cm) (2012)[]
  • ((Infobox person/height|5 feet 2 inches (2012)<ref>"title". ''work''.</ref>)) → 5 ft 2 in (157 cm) (2012)[]
  • ((Infobox person/height|5 feet 2 inches (2012)<ref>((cite news|title=feet|work=inches))</ref>)) → 5 ft 2 in (157 cm) (2012)[]
  • ((Infobox person/height|5 feet 2 inches (2012)<ref>((citation|title=metres|work=centimetres))</ref>)) → 5 ft 2 in (157 cm) (2012)[]
  1. citation goes here
  2. "title". work.
  3. "feet", inches.
  4. "metres", centimetres

((Convert)) templates generating wikilinked unit names:

  • ((Infobox person/height|((Convert|5|ft|2|in|lk=on|abbr=on)))) → 5 ft 2 in (1.57 m)
  • ((Infobox person/height|((Convert|5|ft|2|in|lk=on|abbr=off)))) → 5 ft 2 in (1.57 m)
  • ((Infobox person/height|((Convert|5|ft|2|in|cm|0|lk=on|abbr=on)))) → 5 ft 2 in (157 cm)
  • ((Infobox person/height|((Convert|5|ft|2|in|cm|0|lk=on|abbr=off)))) → 5 ft 2 in (157 cm)
  • ((Infobox person/height|((Convert|1.57|m|lk=on|abbr=on)))) → 1.57 m (5 ft 2 in)
  • ((Infobox person/height|((Convert|1.57|m|lk=on|abbr=off)))) → 1.57 m (5 ft 2 in)
  • ((Infobox person/height|((Convert|157|cm|ftin|lk=on|abbr=on)))) → 157 cm (5 ft 2 in)
  • ((Infobox person/height|((Convert|157|cm|ftin|lk=on|abbr=off)))) → 157 cm (5 ft 2 in)

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

  • ((Infobox person/height|5 feet 2 inches (1.00 metres))) → 5 ft 2 in (1.00 m)
  • ((Infobox person/height|5 feet 2 inches (100 centimetres))) → 5 ft 2 in (100 cm)
  • ((Infobox person/height|1.57 metres (5 feet 5 inches))) → 1.57 m (5 ft 5 in)
  • ((Infobox person/height|157 centimetres (5 feet 5 inches))) → 157 cm (5 ft 5 in)

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

  • ((Infobox person/height|((Convert|5|ft|2|in|m|3|abbr=off)))) → 5 ft 2 in (1.575 m)
    • output of convert template: 5 feet 2 inches (1.575 metres)
  • ((Infobox person/height|((Convert|5|ft|2|in|cm|sigfig=4|abbr=off)))) → 5 ft 2 in (157.5 cm)
    • output of convert template: 5 feet 2 inches (157.5 centimetres)
  • ((Infobox person/height|((Convert|1.57|m|ftin|1|abbr=off)))) → 1.57 m (5 ft 1.8 in)
    • output of convert template: 1.57 metres (5 feet 1.8 inches)
  • ((Infobox person/height|((Convert|157|cm|ftin|1|abbr=off)))) → 157 cm (5 ft 1.8 in)
    • output of convert template: 157 centimetres (5 feet 1.8 inches)
  • ((Infobox person/height|((Height|m=1.57|frac=4|abbr=no)))) → 1.57 m (5 ft 1 34 in)
    • output of convert template: 1.57 metres (5 feet 1 34 inches)
  • ((Infobox person/height|((Height|cm=157|frac=4|abbr=no)))) → 157 cm (5 ft 1 34 in)
    • output of convert template: 157 centimetres (5 feet 1 34 inches)

Period at end of abbreviation displays after the conversion:

  • ((Infobox person/height|1.52 m.)) → 1.52 m (5 ft 0 in)
  • ((Infobox person/height|152 cm.)) → 152 cm (5 ft 0 in)
  • ((Infobox person/height|5 ft.)) → 5 ft (152 cm)
  • ((Infobox person/height|60 in.)) → 60 in (152 cm)
  • ((Infobox person/height|5 ft 0 in.)) → 5 ft 0 in (152 cm)

Multiple unit conversions won't work if input contains periods or commas:

  • ((Infobox person/height|5 ft. 2 in)) → 5 ft 2 in (157 cm)
  • ((Infobox person/height|5 ft, 2 in)) → 5 ft 2 in (157 cm)

Does not recognize symbols for feet and inches:

  • ((Infobox person/height|5' 2")) → 5' 2"
  • ((Infobox person/height|5′ 2″)) → 5′ 2″
  • ((Infobox person/height|157cm (5' 2"))) → 157 cm (5 ft 2 in) (5' 2")
  • ((Infobox person/height|157cm (5′ 2″))) → 157 cm (5 ft 2 in) (5′ 2″)
  • ((Infobox person/height|1.57m (5' 2"))) → 1.57 m (5 ft 2 in) (5' 2")
  • ((Infobox person/height|1.57m (5′ 2″))) → 1.57 m (5 ft 2 in) (5′ 2″)


{{bottomLinkPreText}} {{bottomLinkText}}
ढाँचा:Infobox person/height/doc
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?