Kontent qismiga oʻtish

Andoza:Infobox shaxs/balandligi/doc

ZiyoSfera, erkin ensiklopediya

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

Andoza:Template see also

Usage

{{Bilgiquti
...
| label# = Height
| data#  = {{#if: {{{height|}}} | {{Infobox person/height|{{{height}}}}} }}
...
}}

Exceptions

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


  • |height={{Convert|5|ft|2|in|m|3|abbr=off}} → Andoza:Infobox shaxs/balandligi
    • output of convert template: 5 fut 2 inches (1.575 metr)
  • |height={{Convert|5|ft|2|in|cm|sigfig=4|abbr=off}} → Andoza:Infobox shaxs/balandligi
    • output of convert template: 5 fut 2 inches (157.5 centimetr)
  • |height={{Convert|1.57|m|ftin|1|abbr=off}} → 1.57 metr (5 fut 1.8 in)
    • output of convert template: 1.57 metr (5 fut 1.8 inches)
  • |height={{Convert|157|cm|ftin|1|abbr=off}} → 157 cmetr (5 fut 1.8 in)
    • output of convert template: 157 centimetr (5 fut 1.8 inches)
  • |height={{Height|m=1.57|frac=4|abbr=no}} → 1.57 metr (5 fut 1 3⁄4 in)
    • output of height template: 1.57 metr (5 fut 1 3⁄4 inches)
  • |height={{Height|cm=157|frac=4|abbr=no}} → 157 cmetr (5 fut 1 3⁄4 in)
    • output of height template: 157 centimetr (5 fut 1 3⁄4 inches)

Areas for improvement


  • |height=5' 2" → 5' 2"
  • |height=5′ 2″ → 5′ 2″


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