The following tests compare the output of:
- {{Infobox person/length}}, implemented via Module:Person length since 7 October 2019
- {{Infobox person/length/sandbox}}, using Module:Person length/sandbox
- {{Infobox person/length/sandbox2}}, a copy of template prior to creation of Lua module
Template:Template see also
cm
m
in
missing space after number
after number
text after length (year, reference)
- ↑ citation goes here
- ↑ 78 ins
- ↑ "title". work.
- ↑ "centimetres". inches.
convert template as input
convert template as input, with abbreviated linked unit names
convert template as input, with unabbreviated linked unit names
Exceptions
Does not replace numbers in manually entered conversions, but does replace unit names with abbreviations (examples intentionally show incorrect conversions):
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):
Areas for improvement
Conversion not displayed if unit name contains uppercase characters:
Conversion not displayed if symbols are used for inches:
Does not recognize symbols for inches in manually entered conversion (adds second conversion):
Does not convert feet (ft) or yards (yd):
If {{convert}} template displays feet or yards, it is not abbreviated:
Expand{{Convert|2|yd|1+1/2|ft|m|2|abbr=off}} → 2 yards 1 1⁄2 feet (2.29 metres) |
---|
{{Infobox person/length|1=2 yards <span class="frac nowrap">1<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> feet (2.29 metres)}}
{{Infobox person/length}}
2 yards 1 1⁄2 feet (2.29 m)2 yards <span class="frac nowrap">1<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> feet (2.29 m)
{{Infobox person/length/sandbox}}
2 yards 1 1⁄2 feet (2.29 m)2 yards <span class="frac nowrap">1<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> feet (2.29 m)
{{Infobox person/length/sandbox2}}
2 yards 1 1⁄2 feet (2.29 m)2 yards <span class="frac nowrap">1<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> feet (2.29 m)
|
Expand{{Convert|2|yd|1+1/2|ft|m|2|abbr=off|lk=on}} → 2 yards 1 1⁄2 feet (2.29 metres) |
---|
{{Infobox person/length|1=2 [[yard]]s <span class="frac nowrap">1<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> [[Foot (unit)|feet]] (2.29 [[metre]]s)}}
{{Infobox person/length}}
2 yards 1 1⁄2 feet (2.29 m)2 [[yard]]s <span class="frac nowrap">1<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> [[Foot (unit)|feet]] (2.29 [[Metre|m]])
{{Infobox person/length/sandbox}}
2 yards 1 1⁄2 feet (2.29 m)2 [[yard]]s <span class="frac nowrap">1<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> [[Foot (unit)|feet]] (2.29 [[Metre|m]])
{{Infobox person/length/sandbox2}}
2 yards 1 1⁄2 feet (2.29 m)2 [[yard]]s <span class="frac nowrap">1<span class="visualhide"> </span><sup>1</sup>⁄<sub>2</sub></span> [[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):
Expand{{Convert|122|cm|ydft|0|abbr=off}} → 122 centimetres (1 yard 1 foot) |
---|
{{Infobox person/length|122 centimetres (1 yard 1 foot)}}
{{Infobox person/length}}
122 cm (48 in) (1 yard 1 foot)122 cm (48 in) (1 yard 1 foot)
{{Infobox person/length/sandbox}}
122 cm (48 in) (1 yard 1 foot)122 cm (48 in) (1 yard 1 foot)
{{Infobox person/length/sandbox2}}
122 cm (48 in) (1 yard 1 foot)122 cm (48 in) (1 yard 1 foot)
|
Lua error: Internal error: The interpreter has terminated with signal "24".
Lua error: Internal error: The interpreter has terminated with signal "24".