مندرجات کا رخ کریں

سانچہ:خانہ معلومات شخصیت/قد

آزاد دائرۃ المعارف، ویکیپیڈیا سے

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

سانچہ:Template see also

Usage

[ترمیم]
{{Infobox
...
| label# = Height
| data#  = {{#if: {{{height|}}} | {{خانہ معلومات شخصیت/قد|{{{height}}}}} }}
...
}}

Examples

[ترمیم]

سینٹی میٹرs:

  • |height=1 centimetre 1 سینٹی میٹر (0 انچ)
  • |height=1centimeter 1 سینٹی میٹر (0 انچ)
  • |height=1 centimeter 1 سینٹی میٹر (0 انچ)
  • |height=157 centimetres 157 سینٹی میٹر (5 فٹ 2 انچ)
  • |height=157 centimeters 157 سینٹی میٹر (5 فٹ 2 انچ)
  • |height=157 cms 157 سینٹی میٹر (5 فٹ 2 انچ)
  • |height=157 cm. 157 سینٹی میٹر (5 فٹ 2 انچ).

میٹرs:

  • |height=1 metre 1 میٹر (3 فٹ 3 انچ)
  • |height=1meter 1 میٹر (3 فٹ 3 انچ)
  • |height=1 meter 1 میٹر (3 فٹ 3 انچ)
  • |height=1.57 metres 1.57 میٹر (5 فٹ 2 انچ)
  • |height=1.57 meters 1.57 میٹر (5 فٹ 2 انچ)
  • |height=1.57 ms 1.57 میٹر (5 فٹ 2 انچ)
  • |height=1.57 m. 1.57 میٹر (5 فٹ 2 انچ).

Feet:

  • |height=1 foot 1 فٹ (30 سینٹی میٹر)
  • |height=1foot 1 فٹ (30 سینٹی میٹر)
  • |height=1 foot 1 فٹ (30 سینٹی میٹر)
  • |height=2 feet 2 فٹ (61 سینٹی میٹر)
  • |height=2 ft. 2 فٹ (61 سینٹی میٹر).
  • |height=2.5 ft 2.5 فٹ (76 سینٹی میٹر)
  • |height=2+1/2 ft 2 12 فٹ (76 سینٹی میٹر)

پورes:

  • |height=1 inch 1 انچ (3 سینٹی میٹر)
  • |height=1inch 1 انچ (3 سینٹی میٹر)
  • |height=1 inch 1 انچ (3 سینٹی میٹر)
  • |height=2 inches 2 انچ (5 سینٹی میٹر)
  • |height=2 ins 2 انچ (5 سینٹی میٹر)
  • |height=2 in. 2 انچ (5 سینٹی میٹر).
  • |height=2.5 in 2.5 انچ (6 سینٹی میٹر)
  • |height=2+1/2 in 2 12 انچ (6 سینٹی میٹر)

انسانی قد:

  • |height=5 feet 2 inches 5 فٹ 2 انچ (157 سینٹی میٹر)
  • |height=5feet 2inches 5 فٹ 2 انچ (157 سینٹی میٹر)
  • |height=5 feet 2 inches 5 فٹ 2 انچ (157 سینٹی میٹر)
  • |height=5 feet, 2 inches 5 ft, 2 in
  • |height=5 ft. 2 in. 5 ft. 2 in.
  • |height=5 ft 2.5 in 5 فٹ 2.5 انچ (159 سینٹی میٹر)
  • |height=5 ft 2+1/2 in 5 فٹ 2 12 انچ (159 سینٹی میٹر)

Text and/or footnotes (references) after height:

  • |height=5 feet 2 inches (2012) 5 فٹ 2 انچ (157 سینٹی میٹر) (2012)
  • |height=5 feet 2 inches<ref>citation goes here</ref> 5 فٹ 2 انچ (157 سینٹی میٹر)[1]
  • |height=5 feet 2 inches (2012)<ref>{{cite news|title=title|work=work}}</ref> 5 فٹ 2 انچ (157 سینٹی میٹر) (2012)[2]
Example references
  1. citation goes here
  2. "title"۔ work

{{Convert}} templates, without and with ویکیed unit names:

  • |height={{Convert|5|ft|2|in|cm|abbr=off}} 5 فٹ 2 انچ (157 سینٹیمیٹر)
  • |height={{Convert|5|ft|2|in|cm|abbr=off|lk=on}} 5 فٹ 2 انچ (157 سینٹیمیٹر)

{{خانہ معلومات شخصیت}}

خانہ معلومات شخصیت/قد
معلومات شخصیت
عملی زندگی

{{خانہ معلومات شخصیت/sandbox}}

Error: expandTemplate: template "خانہ معلومات شخصیت/sandbox" does not exist

  • |height={{Convert|5|ft|2|in|abbr=off}} 5 فٹ 2 انچ (1.57 میٹر)
  • |height={{Convert|5|ft|2|in|abbr=off|lk=on}} 5 فٹ 2 انچ (1.57 میٹر)

{{خانہ معلومات شخصیت}}

خانہ معلومات شخصیت/قد
معلومات شخصیت
عملی زندگی

{{خانہ معلومات شخصیت/sandbox}}

Error: expandTemplate: template "خانہ معلومات شخصیت/sandbox" does not exist

  • |height={{Convert|5|ft|2.5|in|cm|abbr=off}} 5 فٹ 2.5 انچ (158.8 سینٹیمیٹر)
  • |height={{Convert|5|ft|2.5|in|cm|abbr=off|lk=on}} 5 فٹ 2.5 انچ (158.8 سینٹیمیٹر)

{{خانہ معلومات شخصیت}}

خانہ معلومات شخصیت/قد
معلومات شخصیت
عملی زندگی

{{خانہ معلومات شخصیت/sandbox}}

Error: expandTemplate: template "خانہ معلومات شخصیت/sandbox" does not exist

  • |height={{Convert|5|ft|2+1/2|in|cm|abbr=off}} 5 فٹ 2 12 انچ (158.8 سینٹیمیٹر)
  • |height={{Convert|5|ft|2+1/2|in|cm|abbr=off|lk=on}} 5 فٹ 2 12 انچ (158.8 سینٹیمیٹر)

{{خانہ معلومات شخصیت}}

خانہ معلومات شخصیت/قد
معلومات شخصیت
عملی زندگی

{{خانہ معلومات شخصیت/sandbox}}

Error: expandTemplate: template "خانہ معلومات شخصیت/sandbox" does not exist

  • |height={{Convert|157|cm|ftin|abbr=off}} 157 سینٹیمیٹر (5 فٹ 2 انچ)
  • |height={{Convert|157|cm|ftin|abbr=off|lk=on}} 157 سینٹیمیٹر (5 فٹ 2 انچ)

{{خانہ معلومات شخصیت}}

خانہ معلومات شخصیت/قد
معلومات شخصیت
عملی زندگی

{{خانہ معلومات شخصیت/sandbox}}

Error: expandTemplate: template "خانہ معلومات شخصیت/sandbox" does not exist

  • |height={{Convert|1.57|m|abbr=off}} 1.57 میٹر (5 فٹ 2 انچ)
  • |height={{Convert|1.57|m|abbr=off|lk=on}} 1.57 میٹر (5 فٹ 2 انچ)

{{خانہ معلومات شخصیت}}

خانہ معلومات شخصیت/قد
معلومات شخصیت
عملی زندگی

{{خانہ معلومات شخصیت/sandbox}}

Error: expandTemplate: template "خانہ معلومات شخصیت/sandbox" does not exist

Exceptions

[ترمیم]

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

  • |height=5 feet 2 inches (1.00 metres) 5 ft 2 in (1.00 m)
  • |height=5 feet 2 inches (100 centimetres) 5 ft 2 in (100 cm)
  • |height=1.57 metres (5 feet 5 inches) 1.57 m (5 ft 5 in)
  • |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 intentionally show different precision than usual):

  • |height={{تحویل|5|ft|2|in|m|3|abbr=off}} 5 فٹ 2 انچ (1.575 میٹر)
    • output of convert template: 5 فٹ 2 انچ (1.575 میٹر)
  • |height={{تحویل|5|ft|2|in|cm|sigfig=4|abbr=off}} 5 فٹ 2 انچ (157.5 سینٹیمیٹر)
    • output of convert template: 5 فٹ 2 انچ (157.5 سینٹیمیٹر)
  • |height={{تحویل|1.57|m|ftin|1|abbr=off}} 1.57 میٹر (5 فٹ 1.8 انچ)
    • output of convert template: 1.57 میٹر (5 فٹ 1.8 انچ)
  • |height={{تحویل|157|cm|ftin|1|abbr=off}} 157 سینٹیمیٹر (5 فٹ 1.8 انچ)
    • output of convert template: 157 سینٹیمیٹر (5 فٹ 1.8 انچ)
  • |height={{Height|m=1.57|frac=4|abbr=no}} 1.57 میٹر (5 فٹ 1 34 انچ)
    • output of height template: 1.57 میٹر (5 فٹ 1 34 انچ)
  • |height={{Height|cm=157|frac=4|abbr=no}} 157 سینٹیمیٹر (5 فٹ 1 34 انچ)
    • output of height template: 157 سینٹیمیٹر (5 فٹ 1 34 انچ)

Areas for improvement

[ترمیم]

درستی کردی گئی – Conversions not displayed if unit name contains uppercase characters:

  • |height=157 CM 157 CM
  • |height=1.57 M 1.57 M
  • |height=5 FT 2 IN 5 FT 2 IN

درستی کردی گئی – Conversion not displayed if symbols are used for feet and inches:

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

درستی کردی گئی – Does not recognize symbols for feet and inches in a manually entered conversion (adds a second conversion):

  • |height=157cm (5' 2") 157 سینٹی میٹر (5 فٹ 2 انچ) (5' 2")
  • |height=1.57m (5′ 2″) 1.57 میٹر (5 فٹ 2 انچ) (5′ 2″)