Jump to content

Template:Infobox person/length/testcases

From Wikipedia, the free encyclopedia

The following tests compare the output of:

  1. {{Infobox person/length}}, implemented via Module:Person length since 7 October 2019
  2. {{Infobox person/length/sandbox}}, using Module:Person length/sandbox

cm

[edit]
1 centimetre

{{Infobox person/length}}

1 cm (0 in)

{{Infobox person/length/sandbox}}

1 cm (0 in)

1 centimeter

{{Infobox person/length}}

1 cm (0 in)

{{Infobox person/length/sandbox}}

1 cm (0 in)

198 centimetres

{{Infobox person/length}}

198 cm (78 in)

{{Infobox person/length/sandbox}}

198 cm (78 in)

198 centimeters

{{Infobox person/length}}

198 cm (78 in)

{{Infobox person/length/sandbox}}

198 cm (78 in)

198 cms

{{Infobox person/length}}

198 cm (78 in)

{{Infobox person/length/sandbox}}

198 cm (78 in)

198 cm.

{{Infobox person/length}}

198 cm (78 in)

{{Infobox person/length/sandbox}}

198 cm (78 in)

198 cm

{{Infobox person/length}}

198 cm (78 in)

{{Infobox person/length/sandbox}}

198 cm (78 in)

198.5 cm

{{Infobox person/length}}

198.5 cm (78 in)

{{Infobox person/length/sandbox}}

198.5 cm (78 in)

m

[edit]
1 metre

{{Infobox person/length}}

1 m (39 in)

{{Infobox person/length/sandbox}}

1 m (39 in)

1 meter

{{Infobox person/length}}

1 m (39 in)

{{Infobox person/length/sandbox}}

1 m (39 in)

1.98 metres

{{Infobox person/length}}

1.98 m (78 in)

{{Infobox person/length/sandbox}}

1.98 m (78 in)

1.98 meters

{{Infobox person/length}}

1.98 m (78 in)

{{Infobox person/length/sandbox}}

1.98 m (78 in)

1.98 ms

{{Infobox person/length}}

1.98 m (78 in)

{{Infobox person/length/sandbox}}

1.98 m (78 in)

1.98 m.

{{Infobox person/length}}

1.98 m (78 in)

{{Infobox person/length/sandbox}}

1.98 m (78 in)

1.98 m

{{Infobox person/length}}

1.98 m (78 in)

{{Infobox person/length/sandbox}}

1.98 m (78 in)

1.985 m

{{Infobox person/length}}

1.985 m (78 in)

{{Infobox person/length/sandbox}}

1.985 m (78 in)

in

[edit]
1 inch

{{Infobox person/length}}

1 in (3 cm)

{{Infobox person/length/sandbox}}

1 in (3 cm)

78 inches

{{Infobox person/length}}

78 in (198 cm)

{{Infobox person/length/sandbox}}

78 in (198 cm)

78 ins

{{Infobox person/length}}

78 in (198 cm)

{{Infobox person/length/sandbox}}

78 in (198 cm)

78 in.

{{Infobox person/length}}

78 in (198 cm)

{{Infobox person/length/sandbox}}

78 in (198 cm)

78 in

{{Infobox person/length}}

78 in (198 cm)

{{Infobox person/length/sandbox}}

78 in (198 cm)

78+1/2 in.

{{Infobox person/length}}

78+12 in (199 cm)

{{Infobox person/length/sandbox}}

78+12 in (199 cm)

missing space after number

[edit]
198centimetres

{{Infobox person/length}}

198 cm (78 in)

{{Infobox person/length/sandbox}}

198 cm (78 in)

1.98metres

{{Infobox person/length}}

1.98 m (78 in)

{{Infobox person/length/sandbox}}

1.98 m (78 in)

78inches

{{Infobox person/length}}

78 in (198 cm)

{{Infobox person/length/sandbox}}

78 in (198 cm)

  after number

[edit]
198 centimetres

{{Infobox person/length}}

198 cm (78 in)

{{Infobox person/length/sandbox}}

198 cm (78 in)

1.98 metres

{{Infobox person/length}}

1.98 m (78 in)

{{Infobox person/length/sandbox}}

1.98 m (78 in)

78 inches

{{Infobox person/length}}

78 in (198 cm)

{{Infobox person/length/sandbox}}

78 in (198 cm)

text after length (year, reference)

[edit]
198 cms (2012)

{{Infobox person/length}}

198 cm (78 in) (2012)

{{Infobox person/length/sandbox}}

198 cm (78 in) (2012)

1.98 ms (2012)

{{Infobox person/length}}

1.98 m (78 in) (2012)

{{Infobox person/length/sandbox}}

1.98 m (78 in) (2012)

78 ins (2012)<ref>citation goes here</ref>

{{Infobox person/length}}

78 in (198 cm) (2012)[1]

{{Infobox person/length/sandbox}}

78 in (198 cm) (2012)[1]

78 ins (2012)<ref>78 ins</ref>

{{Infobox person/length}}

78 in (198 cm) (2012)[2]

{{Infobox person/length/sandbox}}

78 in (198 cm) (2012)[2]

78 ins (2012)<ref>"title". ''work''.</ref>

{{Infobox person/length}}

78 in (198 cm) (2012)[3]

{{Infobox person/length/sandbox}}

78 in (198 cm) (2012)[3]

78 ins (2012)<ref>{{cite news|title=centimetres|work=inches}}</ref>

{{Infobox person/length}}

78 in (198 cm) (2012)[4]

{{Infobox person/length/sandbox}}

78 in (198 cm) (2012)[4]

  1. ^ citation goes here
  2. ^ 78 ins
  3. ^ "title". work.
  4. ^ "centimetres". inches.

convert template as input

[edit]
{{convert|78|in|cm|0}} → 78 inches (198 cm)
{{Infobox person/length|78 inches (198&nbsp;cm)}}

{{Infobox person/length}}

78 in (198 cm)
78 in (198&nbsp;cm)

{{Infobox person/length/sandbox}}

78 in (198 cm)
78 in (198&nbsp;cm)
{{convert|78|in|m|2}} → 78 inches (1.98 m)
{{Infobox person/length|78 inches (1.98&nbsp;m)}}

{{Infobox person/length}}

78 in (1.98 m)
78 in (1.98&nbsp;m)

{{Infobox person/length/sandbox}}

78 in (1.98 m)
78 in (1.98&nbsp;m)
{{convert|198|cm}} → 198 centimetres (78 in)
{{Infobox person/length|198 centimetres (78&nbsp;in)}}

{{Infobox person/length}}

198 cm (78 in)
198 cm (78&nbsp;in)

{{Infobox person/length/sandbox}}

198 cm (78 in)
198 cm (78&nbsp;in)
{{convert|1.98|m|in}} → 1.98 metres (78 in)
{{Infobox person/length|1.98 metres (78&nbsp;in)}}

{{Infobox person/length}}

1.98 m (78 in)
1.98 m (78&nbsp;in)

{{Infobox person/length/sandbox}}

1.98 m (78 in)
1.98 m (78&nbsp;in)

convert template as input, with abbreviated linked unit names

[edit]
{{convert|78|in|cm|0|abbr=on|lk=on}} → 78 in (198 cm)
{{Infobox person/length|78&nbsp;[[inch|in]] (198&nbsp;[[Centimetre|cm]])}}

{{Infobox person/length}}

78 in (198 cm)
78&nbsp;[[inch|in]] (198&nbsp;[[Centimetre|cm]])

{{Infobox person/length/sandbox}}

78 in (198 cm)
78&nbsp;[[inch|in]] (198&nbsp;[[Centimetre|cm]])
{{convert|78|in|m|2|abbr=on|lk=on}} → 78 in (1.98 m)
{{Infobox person/length|78&nbsp;[[inch|in]] (1.98&nbsp;[[Metre|m]])}}

{{Infobox person/length}}

78 in (1.98 m)
78&nbsp;[[inch|in]] (1.98&nbsp;[[Metre|m]])

{{Infobox person/length/sandbox}}

78 in (1.98 m)
78&nbsp;[[inch|in]] (1.98&nbsp;[[Metre|m]])
{{convert|198|cm|abbr=on|lk=on}} → 198 cm (78 in)
{{Infobox person/length|198&nbsp;[[Centimetre|cm]] (78&nbsp;[[inch|in]])}}

{{Infobox person/length}}

198 cm (78 in)
198&nbsp;[[Centimetre|cm]] (78&nbsp;[[inch|in]])

{{Infobox person/length/sandbox}}

198 cm (78 in)
198&nbsp;[[Centimetre|cm]] (78&nbsp;[[inch|in]])
{{convert|1.98|m|in|abbr=on|lk=on}} → 1.98 m (78 in)
{{Infobox person/length|1.98&nbsp;[[Metre|m]] (78&nbsp;[[inch|in]])}}

{{Infobox person/length}}

1.98 m (78 in)
1.98&nbsp;[[Metre|m]] (78&nbsp;[[inch|in]])

{{Infobox person/length/sandbox}}

1.98 m (78 in)
1.98&nbsp;[[Metre|m]] (78&nbsp;[[inch|in]])

convert template as input, with unabbreviated linked unit names

[edit]
{{convert|78|in|cm|0|abbr=off|lk=on}} → 78 inches (198 centimetres)
{{Infobox person/length|78 [[inch|inches]] (198 [[centimetre]]s)}}

{{Infobox person/length}}

78 in (198 cm)
78 [[inch|in]] (198 [[Centimetre|cm]])

{{Infobox person/length/sandbox}}

78 in (198 cm)
78 [[inch|in]] (198 [[Centimetre|cm]])
{{convert|78|in|m|2|abbr=off|lk=on}} → 78 inches (1.98 metres)
{{Infobox person/length|78 [[inch|inches]] (1.98 [[metre]]s)}}

{{Infobox person/length}}

78 in (1.98 m)
78 [[inch|in]] (1.98 [[Metre|m]])

{{Infobox person/length/sandbox}}

78 in (1.98 m)
78 [[inch|in]] (1.98 [[Metre|m]])
{{convert|198|cm|abbr=off|lk=on}} → 198 centimetres (78 inches)
{{Infobox person/length|198 [[centimetre]]s (78 [[inch|inches]])}}

{{Infobox person/length}}

198 cm (78 in)
198 [[Centimetre|cm]] (78 [[inch|in]])

{{Infobox person/length/sandbox}}

198 cm (78 in)
198 [[Centimetre|cm]] (78 [[inch|in]])
{{convert|1.98|m|in|abbr=off|lk=on}} → 1.98 metres (78 inches)
{{Infobox person/length|1.98 [[metre]]s (78 [[inch|inches]])}}

{{Infobox person/length}}

1.98 m (78 in)
1.98 [[Metre|m]] (78 [[inch|in]])

{{Infobox person/length/sandbox}}

1.98 m (78 in)
1.98 [[Metre|m]] (78 [[inch|in]])

Exceptions

[edit]

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

78 inches (191 centimeters)

{{Infobox person/length}}

78 in (191 cm)

{{Infobox person/length/sandbox}}

78 in (191 cm)

78 inches (1.91 meters)

{{Infobox person/length}}

78 in (1.91 m)

{{Infobox person/length/sandbox}}

78 in (1.91 m)

198 centimetres (71 inches)

{{Infobox person/length}}

198 cm (71 in)

{{Infobox person/length/sandbox}}

198 cm (71 in)

1.98 metres (71 inches)

{{Infobox person/length}}

1.98 m (71 in)

{{Infobox person/length/sandbox}}

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):

{{convert|78|in|cm|1|abbr=off|sp=us}} → 78 inches (198.1 centimeters)
{{Infobox person/length|78 inches (198.1 centimeters)}}

{{Infobox person/length}}

78 in (198.1 cm)
78 in (198.1 cm)

{{Infobox person/length/sandbox}}

78 in (198.1 cm)
78 in (198.1 cm)
{{convert|78|in|m|3|abbr=off|sp=us|lk=on}} → 78 inches (1.981 meters)
{{Infobox person/length|78 [[inch|inches]] (1.981 [[Metre|meters]])}}

{{Infobox person/length}}

78 in (1.981 m)
78 [[inch|in]] (1.981 [[Metre|m]])

{{Infobox person/length/sandbox}}

78 in (1.981 m)
78 [[inch|in]] (1.981 [[Metre|m]])
{{convert|198|cm|in|2|abbr=off|lk=on}} → 198 centimetres (77.95 inches)
{{Infobox person/length|198 [[centimetre]]s (77.95 [[inch|inches]])}}

{{Infobox person/length}}

198 cm (77.95 in)
198 [[Centimetre|cm]] (77.95 [[inch|in]])

{{Infobox person/length/sandbox}}

198 cm (77.95 in)
198 [[Centimetre|cm]] (77.95 [[inch|in]])
{{convert|1.98|m|in|2|abbr=off}} → 1.98 metres (77.95 inches)
{{Infobox person/length|1.98 metres (77.95 inches)}}

{{Infobox person/length}}

1.98 m (77.95 in)
1.98 m (77.95 in)

{{Infobox person/length/sandbox}}

1.98 m (77.95 in)
1.98 m (77.95 in)

Areas for improvement

[edit]

Conversion not displayed if unit name contains uppercase characters:

198 Centimetres
1.98 Metres

{{Infobox person/length}}

1.98 Metres

{{Infobox person/length/sandbox}}

1.98 Metres

78 Inches

Conversion not displayed if symbols are used for inches:

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

198cm (78")

{{Infobox person/length}}

198 cm (78 in) (78")

{{Infobox person/length/sandbox}}

198 cm (78 in) (78")

1.98m (78″)

{{Infobox person/length}}

1.98 m (78 in) (78″)

{{Infobox person/length/sandbox}}

1.98 m (78 in) (78″)

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

2 yards

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

{{Convert|1|ft|1|in|cm|abbr=off}} → 1 foot 1 inch (33 centimetres)
{{Infobox person/length|1&nbsp;foot 1&nbsp;inch (33 centimetres)}}

{{Infobox person/length}}

1 foot 1 in (33 cm)
1&nbsp;foot 1&nbsp;in (33 cm)

{{Infobox person/length/sandbox}}

1 foot 1 in (33 cm)
1&nbsp;foot 1&nbsp;in (33 cm)
{{Convert|1|ft|1|in|cm|abbr=off|lk=on}} → 1 footinch (33 centimetres)
{{Infobox person/length|1&nbsp;[[Foot (unit)|foot]] 1&nbsp;[[inch]] (33 [[centimetre]]s)}}

{{Infobox person/length}}

footin (33 cm)
1&nbsp;[[Foot (unit)|foot]] 1&nbsp;[[in]] (33 [[Centimetre|cm]])

{{Infobox person/length/sandbox}}

footin (33 cm)
1&nbsp;[[Foot (unit)|foot]] 1&nbsp;[[in]] (33 [[Centimetre|cm]])
{{Convert|6|ft|6|in|m|2|abbr=off}} → 6 feet 6 inches (1.98 metres)
{{Infobox person/length|6&nbsp;feet 6&nbsp;inches (1.98 metres)}}

{{Infobox person/length}}

6 feet 6 in (1.98 m)
6&nbsp;feet 6&nbsp;in (1.98 m)

{{Infobox person/length/sandbox}}

6 feet 6 in (1.98 m)
6&nbsp;feet 6&nbsp;in (1.98 m)
{{Convert|6|ft|6|in|m|2|abbr=off|lk=on}} → 6 feetinches (1.98 metres)
{{Infobox person/length|6&nbsp;[[Foot (unit)|feet]] 6&nbsp;[[inch|inches]] (1.98 [[metre]]s)}}

{{Infobox person/length}}

feetin (1.98 m)
6&nbsp;[[Foot (unit)|feet]] 6&nbsp;[[inch|in]] (1.98 [[Metre|m]])

{{Infobox person/length/sandbox}}

feetin (1.98 m)
6&nbsp;[[Foot (unit)|feet]] 6&nbsp;[[inch|in]] (1.98 [[Metre|m]])
{{Convert|1|yd|1|ft|cm|0|abbr=off}} → 1 yard 1 foot (122 centimetres)
{{Infobox person/length|1&nbsp;yard 1&nbsp;foot (122 centimetres)}}

{{Infobox person/length}}

1 yard 1 foot (122 cm)
1&nbsp;yard 1&nbsp;foot (122 cm)

{{Infobox person/length/sandbox}}

1 yard 1 foot (122 cm)
1&nbsp;yard 1&nbsp;foot (122 cm)
{{Convert|1|yd|1|ft|cm|0|abbr=off|lk=on}} → 1 yardfoot (122 centimetres)
{{Infobox person/length|1&nbsp;[[yard]] 1&nbsp;[[Foot (unit)|foot]] (122 [[centimetre]]s)}}

{{Infobox person/length}}

yardfoot (122 cm)
1&nbsp;[[yard]] 1&nbsp;[[Foot (unit)|foot]] (122 [[Centimetre|cm]])

{{Infobox person/length/sandbox}}

yardfoot (122 cm)
1&nbsp;[[yard]] 1&nbsp;[[Foot (unit)|foot]] (122 [[Centimetre|cm]])
{{Convert|2|yd|1+1/2|ft|m|2|abbr=off}} → 2 yards 1+12 feet (2.29 metres)
{{Infobox person/length|1=2&nbsp;yards <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;feet (2.29 metres)}}

{{Infobox person/length}}

2 yards 1+12 feet (2.29 m)
'"`UNIQ--templatestyles-00000091-QINU`"'2&nbsp;yards <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;feet (2.29 m)

{{Infobox person/length/sandbox}}

2 yards 1+12 feet (2.29 m)
'"`UNIQ--templatestyles-00000091-QINU`"'2&nbsp;yards <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;feet (2.29 m)
{{Convert|2|yd|1+1/2|ft|m|2|abbr=off|lk=on}} → yards 1+12 feet (2.29 metres)
{{Infobox person/length|1=2&nbsp;[[yard]]s <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;[[Foot (unit)|feet]] (2.29 [[metre]]s)}}

{{Infobox person/length}}

yards 1+12 feet (2.29 m)
'"`UNIQ--templatestyles-00000096-QINU`"'2&nbsp;[[yard]]s <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;[[Foot (unit)|feet]] (2.29 [[Metre|m]])

{{Infobox person/length/sandbox}}

yards 1+12 feet (2.29 m)
'"`UNIQ--templatestyles-00000096-QINU`"'2&nbsp;[[yard]]s <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;[[Foot (unit)|feet]] (2.29 [[Metre|m]])

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

{{Convert|33|cm|ftin|abbr=off}} → 33 centimetres (1 foot 1 inch)
{{Infobox person/length|33 centimetres (1&nbsp;foot 1&nbsp;inch)}}

{{Infobox person/length}}

33 cm (1 foot 1 in)
33 cm (1&nbsp;foot 1&nbsp;in)

{{Infobox person/length/sandbox}}

33 cm (1 foot 1 in)
33 cm (1&nbsp;foot 1&nbsp;in)
{{Convert|33|cm|ftin|abbr=off|lk=on}} → 33 centimetres (1 footinch)
{{Infobox person/length|33 [[centimetre]]s (1&nbsp;[[Foot (unit)|foot]] 1&nbsp;[[inch]])}}

{{Infobox person/length}}

33 cm (1 footin)
33 [[Centimetre|cm]] (1&nbsp;[[Foot (unit)|foot]] 1&nbsp;[[in]])

{{Infobox person/length/sandbox}}

33 cm (1 footin)
33 [[Centimetre|cm]] (1&nbsp;[[Foot (unit)|foot]] 1&nbsp;[[in]])
{{Convert|1.98|m|ftin|abbr=off}} → 1.98 metres (6 feet 6 inches)
{{Infobox person/length|1.98 metres (6&nbsp;feet 6&nbsp;inches)}}

{{Infobox person/length}}

1.98 m (6 feet 6 in)
1.98 m (6&nbsp;feet 6&nbsp;in)

{{Infobox person/length/sandbox}}

1.98 m (6 feet 6 in)
1.98 m (6&nbsp;feet 6&nbsp;in)
{{Convert|1.98|m|ftin|abbr=off|lk=on}} → 1.98 metres (6 feetinches)
{{Infobox person/length|1.98 [[metre]]s (6&nbsp;[[Foot (unit)|feet]] 6&nbsp;[[inch|inches]])}}

{{Infobox person/length}}

1.98 m (6 feetin)
1.98 [[Metre|m]] (6&nbsp;[[Foot (unit)|feet]] 6&nbsp;[[inch|in]])

{{Infobox person/length/sandbox}}

1.98 m (6 feetin)
1.98 [[Metre|m]] (6&nbsp;[[Foot (unit)|feet]] 6&nbsp;[[inch|in]])
{{Convert|122|cm|ydft|0|abbr=off}} → 122 centimetres (1 yard 1 foot)
{{Infobox person/length|122 centimetres (1&nbsp;yard 1&nbsp;foot)}}

{{Infobox person/length}}

122 cm (48 in) (1 yard 1 foot)
122&nbsp;cm (48&nbsp;in) (1 yard 1 foot)

{{Infobox person/length/sandbox}}

122 cm (48 in) (1 yard 1 foot)
122&nbsp;cm (48&nbsp;in) (1 yard 1 foot)
{{Convert|122|cm|ydft|0|abbr=off|lk=on}} → 122 centimetres (1 yardfoot)
{{Infobox person/length|122 [[centimetre]]s (1&nbsp;[[yard]] 1&nbsp;[[Foot (unit)|foot]])}}

{{Infobox person/length}}

122 cm (1 yardfoot)
122 [[Centimetre|cm]] (1&nbsp;[[yard]] 1&nbsp;[[Foot (unit)|foot]])

{{Infobox person/length/sandbox}}

122 cm (1 yardfoot)
122 [[Centimetre|cm]] (1&nbsp;[[yard]] 1&nbsp;[[Foot (unit)|foot]])
{{Convert|2.29|m|ydft|1|abbr=off|frac=2}} → 2.29 metres (2 yards 1+12 feet)
{{Infobox person/length|1=2.29 metres (2&nbsp;yards <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;feet)}}

{{Infobox person/length}}

2.29 m (2 yards 1+12 feet)
'"`UNIQ--templatestyles-000000AD-QINU`"'2.29 m (2&nbsp;yards <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;feet)

{{Infobox person/length/sandbox}}

2.29 m (2 yards 1+12 feet)
'"`UNIQ--templatestyles-000000AD-QINU`"'2.29 m (2&nbsp;yards <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;feet)
{{Convert|2.29|m|ydft|1|abbr=off|lk=on|frac=2}} → 2.29 metres (2 yards 1+12 feet)
{{Infobox person/length|1=2.29 [[metre]]s (2&nbsp;[[yard]]s <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;[[Foot (unit)|feet]])}}

{{Infobox person/length}}

2.29 m (2 yards 1+12 feet)
'"`UNIQ--templatestyles-000000B2-QINU`"'2.29 [[Metre|m]] (2&nbsp;[[yard]]s <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;[[Foot (unit)|feet]])

{{Infobox person/length/sandbox}}

2.29 m (2 yards 1+12 feet)
'"`UNIQ--templatestyles-000000B2-QINU`"'2.29 [[Metre|m]] (2&nbsp;[[yard]]s <span class="frac">1<span class="sr-only">+</span><span class="num">1</span>&frasl;<span class="den">2</span></span>&nbsp;[[Foot (unit)|feet]])

Conversion not displayed if using {{nbsp}} after number (use &nbsp; instead):

198{{nbsp}}cm
{{Infobox person/length|1=198<span class="nowrap">&nbsp;</span>cm}}

{{Infobox person/length}}

198 cm
198<span class="nowrap">&nbsp;</span>cm

{{Infobox person/length/sandbox}}

198 cm
198<span class="nowrap">&nbsp;</span>cm
1.98{{Nbsp}}m
{{Infobox person/length|1=1.98<span class="nowrap">&nbsp;</span>m}}

{{Infobox person/length}}

1.98 m
1.98<span class="nowrap">&nbsp;</span>m

{{Infobox person/length/sandbox}}

1.98 m
1.98<span class="nowrap">&nbsp;</span>m
78{{nbsp}}in
{{Infobox person/length|1=78<span class="nowrap">&nbsp;</span>in}}

{{Infobox person/length}}

78 in
78<span class="nowrap">&nbsp;</span>in

{{Infobox person/length/sandbox}}

78 in
78<span class="nowrap">&nbsp;</span>in

Conversion not displayed for some fractions supported in {{convert}} such as +1⁄2 or +1//2 (use +1/2 instead):

{{cvt|78+1⁄2|in|cm|0}} → 78+12 in (199 cm)
{{cvt|78+1//2|in|cm|0}} → 78+1/2 in (199 cm)
78+1⁄2 in.

{{Infobox person/length}}

78+1⁄2 in

{{Infobox person/length/sandbox}}

78+1⁄2 in

78+1//2 in.