आकृति:Infobox person/length

मैथिली विकिपिडियासँ, एक मुक्त विश्वकोश
Template documentation[view] [edit] [history] [purge]

This template is used to automatically add conversions of length measurements displayed by infoboxes, such as:

आकृति:Template see also

Usage[सम्पादन करी]

{{Infobox
...
| label# = Reach
| data#  = {{#if: {{{reach|}}} | {{Infobox person/length|{{{reach}}}}} }}
...
}}
{{Infobox
...
| label# = Spike
| data#  = {{#if: {{{spike|}}} | {{Infobox person/length|{{{spike}}}}} }}
| label# = Block
| data#  = {{#if: {{{block|}}} | {{Infobox person/length|{{{block}}}}} }}
...
}}

Examples[सम्पादन करी]

Inches:

  • |reach=1 inch → १ इन्च (३ सेमी)
  • |reach=78 inches → ७८ इन्च (१९८ सेमी)
  • |reach=78 ins → ७८ इन्च (१९८ सेमी)
  • |reach=78 in. → ७८ इन्च (१९८ सेमी)
  • |reach=78 in → ७८ इन्च (१९८ सेमी)

Centimetres:

  • |reach=1 centimetre → १ सेमी (० इन्च)
  • |reach=1 centimeter → १ सेमी (० इन्च)
  • |reach=198 centimetres → १९८ सेमी (७८ इन्च)
  • |reach=198 centimeters → १९८ सेमी (७८ इन्च)
  • |reach=198 cms → १९८ सेमी (७८ इन्च)
  • |reach=198 cm. → १९८ सेमी (७८ इन्च)
  • |reach=198 cm → १९८ सेमी (७८ इन्च)

Metres:

  • |reach=1 metre → १ मी (३९ इन्च)
  • |reach=1 meter → १ मी (३९ इन्च)
  • |reach=1.98 metres → १.९८ मी (७८ इन्च)
  • |reach=1.98 meters → १.९८ मी (७८ इन्च)
  • |reach=1.98 ms → १.९८ मी (७८ इन्च)
  • |reach=1.98 m. → १.९८ मी (७८ इन्च)
  • |reach=1.98 m → १.९८ मी (७८ इन्च)

Non-breaking space or missing space after number:

  • |reach=78 inches → ७८ इन्च (१९८ सेमी)
  • |reach=198centimetres → १९८ सेमी (७८ इन्च)
  • |reach=1.98metres → १.९८ मी (७८ इन्च)

Text and/or footnotes (references) after length:

  • |reach=78 ins (2012) → ७८ इन्च (१९८ सेमी) (2012)
  • |reach=198 cms<ref>citation goes here</ref> → १९८ सेमी (७८ इन्च)[१]
  • |reach=1.98 ms (2012)<ref>{{cite news|title=title|work=work}}</ref> → १.९८ मी (७८ इन्च) (2012)[२]
Example references
  1. citation goes here
  2. "title"। work

{{Convert}} templates, without and with wikilinked unit names:

Exceptions[सम्पादन करी]

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

  • |reach=78 inches (191 centimeters) → 78 in (191 cm)
  • |reach=78 inches (1.91 meters) → 78 in (1.91 m)
  • |reach=198 centimetres (71 inches) → 198 cm (71 in)
  • |reach=1.98 metres (71 inches) → 1.98 m (71 in)

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

  • |reach={{convert|78|in|cm|1|abbr=off|sp=us}} → ७८ इन्च (१९८.१ सेन्टिमिटर)
    • output of convert template: ७८ इन्च (१९८.१ सेन्टिमिटर)
  • |reach={{convert|78|in|m|3|abbr=off|sp=us|lk=on}} → ७८ इन्च (१.९८१ मिटर)
  • |reach={{convert|198|cm|in|2|abbr=off|lk=on}} → १९८ सेन्टिमिटर (७७.९५ इन्च)
  • |reach={{convert|1.98|m|in|2|abbr=off}} → १.९८ मिटर (७७.९५ इन्च)
    • output of convert template: १.९८ मिटर (७७.९५ इन्च)

Areas for improvement[सम्पादन करी]

Conversion not displayed if unit name contains uppercase characters:

  • |reach=198 Centimetres → 198 Centim
  • |reach=198 CM → 198 CM
  • |reach=1.98 Metres → 1.98 Metres
  • |reach=1.98 M → 1.98 M
  • |reach=78 Inches → 78 Inches
  • |reach=78 IN → 78 IN

Conversion not displayed if symbols are used for inches:

  • |reach=78" → 78"
  • |reach=78″ → 78″

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

  • |reach=198cm (78") → १९८ सेमी (७८ इन्च) (78")
  • |reach=1.98m (78″) → १.९८ मी (७८ इन्च) (78″)

Does not convert feet (ft) or yards (yd):

  • |reach=6 feet → 6 feet
  • |reach=6 ft → 6 ft
  • |reach=2 yards → 2 yards
  • |reach=2 yd → 2 yd

If {{convert}} template displays feet or yards, it is not abbreviated:

  • |reach={{Convert|6|ft|6|in|cm|abbr=off}} → ६ फिट ६ इन्च (१९८ सेन्टिमिटर)
  • |reach={{Convert|6|ft|6|in|m|2|abbr=off|lk=on}} → ६ फिट ६ इन्च (१.९८ मिटर)
  • |reach={{Convert|2|yd|1.5|ft|cm|0|abbr=off}} → २ गज १.५ फिट (२२९ सेन्टिमिटर)
  • |reach={{Convert|2|yd|1.5|ft|m|2|abbr=off|lk=on}} → २ गज १.५ फिट (२.२९ मिटर)

If {{convert}} displays feet or yards in conversion, a second conversion is displayed (only for unlinked unit names):

  • |reach={{Convert|198|cm|ftin|abbr=off}} → १९८ सेन्टिमिटर (६ फिट ६ इन्च)
  • |reach={{Convert|1.98|m|ftin|abbr=off|lk=on}} → १.९८ मिटर (६ फिट ६ इन्च)
  • |reach={{Convert|229|cm|ydft|1|abbr=off}} → २२९ सेन्टिमिटर (२ गज १.५ फिट)
  • |reach={{Convert|2.29|m|ydft|1|abbr=off|lk=on}} → २.२९ मिटर (२ गज १.५ फिट)