Template:Infobox person/height/testcases
![]() | This is the template test cases page for the sandbox of Template:Infobox person/height. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
The following tests compare the output of:
- {{Infobox person/height}}, implemented via Module:Person height since 26 September 2019
- {{Infobox person/height/sandbox}}, using Module:Person height/sandbox
- {{Infobox person/height/sandbox2}}, a copy of template prior to creation of Lua module
Contents
- 1 cm
- 2 m
- 3 ft
- 4 in
- 5 ft & in
- 6 missing space after number
- 7 after number
- 8 text after length (year, reference)
- 9 height template as input
- 10 convert template as input
- 11 convert template as input, with abbreviated linked unit names
- 12 convert template as input, with unabbreviated linked unit names
- 13 Prefer m
- 14 Prefer cm
- 15 Enforce m
- 16 Enforce cm
- 17 Exceptions
- 18 Areas for improvement
cm
1 centimetre |
---|
1 cm (0 in) {{Infobox person/height/sandbox}} 1 cm (0 in) {{Infobox person/height/sandbox2}} 1 cm (0 in) |
1 centimeter |
---|
1 cm (0 in) {{Infobox person/height/sandbox}} 1 cm (0 in) {{Infobox person/height/sandbox2}} 1 cm (0 in) |
157 centimetres |
---|
157 cm (5 ft 2 in) {{Infobox person/height/sandbox}} 157 cm (5 ft 2 in) {{Infobox person/height/sandbox2}} 157 cm (5 ft 2 in) |
157 centimeters |
---|
157 cm (5 ft 2 in) {{Infobox person/height/sandbox}} 157 cm (5 ft 2 in) {{Infobox person/height/sandbox2}} 157 cm (5 ft 2 in) |
157 cms. |
---|
157 cm (5 ft 2 in) {{Infobox person/height/sandbox}} 157 cm (5 ft 2 in) {{Infobox person/height/sandbox2}} 157 cm (5 ft 2 in) |
157 cms |
---|
157 cm (5 ft 2 in) {{Infobox person/height/sandbox}} 157 cm (5 ft 2 in) {{Infobox person/height/sandbox2}} 157 cm (5 ft 2 in) |
157 cm. |
---|
157 cm (5 ft 2 in) {{Infobox person/height/sandbox}} 157 cm (5 ft 2 in) {{Infobox person/height/sandbox2}} 157 cm (5 ft 2 in) |
157 cm |
---|
157 cm (5 ft 2 in) {{Infobox person/height/sandbox}} 157 cm (5 ft 2 in) {{Infobox person/height/sandbox2}} 157 cm (5 ft 2 in) |
m
1 metre |
---|
1 m (3 ft 3 in) {{Infobox person/height/sandbox}} 1 m (3 ft 3 in) {{Infobox person/height/sandbox2}} 1 m (3 ft 3 in) |
1 meter |
---|
1 m (3 ft 3 in) {{Infobox person/height/sandbox}} 1 m (3 ft 3 in) {{Infobox person/height/sandbox2}} 1 m (3 ft 3 in) |
1.57 metres |
---|
1.57 m (5 ft 2 in) {{Infobox person/height/sandbox}} 1.57 m (5 ft 2 in) {{Infobox person/height/sandbox2}} 1.57 m (5 ft 2 in) |
1.57 meters |
---|
1.57 m (5 ft 2 in) {{Infobox person/height/sandbox}} 1.57 m (5 ft 2 in) {{Infobox person/height/sandbox2}} 1.57 m (5 ft 2 in) |
1.57 ms. |
---|
1.57 m (5 ft 2 in) {{Infobox person/height/sandbox}} 1.57 m (5 ft 2 in) {{Infobox person/height/sandbox2}} 1.57 m (5 ft 2 in) |
1.57 ms |
---|
1.57 m (5 ft 2 in) {{Infobox person/height/sandbox}} 1.57 m (5 ft 2 in) {{Infobox person/height/sandbox2}} 1.57 m (5 ft 2 in) |
1.57 m. |
---|
1.57 m (5 ft 2 in) {{Infobox person/height/sandbox}} 1.57 m (5 ft 2 in) {{Infobox person/height/sandbox2}} 1.57 m (5 ft 2 in) |
1.57 m |
---|
1.57 m (5 ft 2 in) {{Infobox person/height/sandbox}} 1.57 m (5 ft 2 in) {{Infobox person/height/sandbox2}} 1.57 m (5 ft 2 in) |
ft
1 foot |
---|
1 ft (30 cm) {{Infobox person/height/sandbox}} 1 ft (30 cm) {{Infobox person/height/sandbox2}} 1 ft (30 cm) |
2 feet |
---|
2 ft (61 cm) {{Infobox person/height/sandbox}} 2 ft (61 cm) {{Infobox person/height/sandbox2}} 2 ft (61 cm) |
2+1/2 ft. |
---|
2 1⁄2 ft (76 cm) {{Infobox person/height/sandbox}} 2 1⁄2 ft (76 cm) {{Infobox person/height/sandbox2}} 2 1⁄2 ft (76 cm) |
2 + 1 / 2 ft |
---|
2 1⁄2 ft (76 cm) {{Infobox person/height/sandbox}} 2 1⁄2 ft (76 cm) {{Infobox person/height/sandbox2}} 2 1⁄2 ft (76 cm) |
in
1 inch |
---|
1 in (3 cm) {{Infobox person/height/sandbox}} 1 in (3 cm) {{Infobox person/height/sandbox2}} 1 in (3 cm) |
2 inches |
---|
2 in (5 cm) {{Infobox person/height/sandbox}} 2 in (5 cm) {{Infobox person/height/sandbox2}} 2 in (5 cm) |
2 ins. |
---|
2 in (5 cm) {{Infobox person/height/sandbox}} 2 in (5 cm) {{Infobox person/height/sandbox2}} 2 in (5 cm) |
2 ins |
---|
2 in (5 cm) {{Infobox person/height/sandbox}} 2 in (5 cm) {{Infobox person/height/sandbox2}} 2 in (5 cm) |
60+1/2 in. |
---|
60 1⁄2 in (154 cm) {{Infobox person/height/sandbox}} 60 1⁄2 in (154 cm) {{Infobox person/height/sandbox2}} 60 1⁄2 in (154 cm) |
60 + 1 / 2 in |
---|
60 1⁄2 in (154 cm) {{Infobox person/height/sandbox}} 60 1⁄2 in (154 cm) {{Infobox person/height/sandbox2}} 60 1⁄2 in (154 cm) |
ft & in
5 feet 1 inch |
---|
5 ft 1 in (155 cm) {{Infobox person/height/sandbox}} 5 ft 1 in (155 cm) {{Infobox person/height/sandbox2}} 5 ft 1 in (155 cm) |
5 feet, 2 inches |
---|
5 ft 2 in (157 cm) {{Infobox person/height/sandbox}} 5 ft 2 in (157 cm) {{Infobox person/height/sandbox2}} 5 ft 2 in (157 cm) |
5 ft. 2 ins. |
---|
5 ft 2 in (157 cm) {{Infobox person/height/sandbox}} 5 ft 2 in (157 cm) {{Infobox person/height/sandbox2}} 5 ft 2 in (157 cm) |
5 ft 2 ins |
---|
5 ft 2 in (157 cm) {{Infobox person/height/sandbox}} 5 ft 2 in (157 cm) {{Infobox person/height/sandbox2}} 5 ft 2 in (157 cm) |
5 ft 7+1/2 in. |
---|
5 ft 7 1⁄2 in (171 cm) {{Infobox person/height/sandbox}} 5 ft 7 1⁄2 in (171 cm) {{Infobox person/height/sandbox2}} 5 ft 7 1⁄2 in (171 cm) |
5 ft 7 + 1 / 2 in |
---|
5 ft 7 1⁄2 in (171 cm) {{Infobox person/height/sandbox}} 5 ft 7 1⁄2 in (171 cm) {{Infobox person/height/sandbox2}} 5 ft 7 1⁄2 in (171 cm) |
missing space after number
157centimetres |
---|
157 cm (5 ft 2 in) {{Infobox person/height/sandbox}} 157 cm (5 ft 2 in) {{Infobox person/height/sandbox2}} 157 cm (5 ft 2 in) |
1.57metres |
---|
1.57 m (5 ft 2 in) {{Infobox person/height/sandbox}} 1.57 m (5 ft 2 in) {{Infobox person/height/sandbox2}} 1.57 m (5 ft 2 in) |
5feet 2inches |
---|
5 ft 2 in (157 cm) {{Infobox person/height/sandbox}} 5 ft 2 in (157 cm) {{Infobox person/height/sandbox2}} 5 ft 2 in (157 cm) |
after number
157 centimetres |
---|
157 cm (5 ft 2 in) {{Infobox person/height/sandbox}} 157 cm (5 ft 2 in) {{Infobox person/height/sandbox2}} 157 cm (5 ft 2 in) |
1.57 metres |
---|
1.57 m (5 ft 2 in) {{Infobox person/height/sandbox}} 1.57 m (5 ft 2 in) {{Infobox person/height/sandbox2}} 1.57 m (5 ft 2 in) |
5 feet 2 inches |
---|
5 ft 2 in (157 cm) {{Infobox person/height/sandbox}} 5 ft 2 in (157 cm) {{Infobox person/height/sandbox2}} 5 ft 2 in (157 cm) |
text after length (year, reference)
157 cms (2012) |
---|
157 cm (5 ft 2 in) (2012) {{Infobox person/height/sandbox}} 157 cm (5 ft 2 in) (2012) {{Infobox person/height/sandbox2}} 157 cm (5 ft 2 in) (2012) |
1.57 ms (2012) |
---|
1.57 m (5 ft 2 in) (2012) {{Infobox person/height/sandbox}} 1.57 m (5 ft 2 in) (2012) {{Infobox person/height/sandbox2}} 1.57 m (5 ft 2 in) (2012) |
5 feet 2 inches (2012)<ref>citation goes here</ref> |
---|
5 ft 2 in (157 cm) (2012)[1] {{Infobox person/height/sandbox}} 5 ft 2 in (157 cm) (2012)[1] {{Infobox person/height/sandbox2}} 5 ft 2 in (157 cm) (2012)[1] |
5 feet 2 inches (2012)<ref>5 feet 2 inches</ref> |
---|
5 ft 2 in (157 cm) (2012)[2] {{Infobox person/height/sandbox}} 5 ft 2 in (157 cm) (2012)[2] {{Infobox person/height/sandbox2}} 5 ft 2 in (157 cm) (2012)[2] |
5 feet 2 inches (2012)<ref>"title". ''work''.</ref> |
---|
5 ft 2 in (157 cm) (2012)[3] {{Infobox person/height/sandbox}} 5 ft 2 in (157 cm) (2012)[3] {{Infobox person/height/sandbox2}} 5 ft 2 in (157 cm) (2012)[3] |
5 feet 2 inches (2012)<ref>{{citation|title=centimetres|work=inches}}</ref> |
---|
5 ft 2 in (157 cm) (2012)[4] {{Infobox person/height/sandbox}} 5 ft 2 in (157 cm) (2012)[4] {{Infobox person/height/sandbox2}} 5 ft 2 in (157 cm) (2012)[4] |
height template as input
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
convert template as input
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
convert template as input, with abbreviated linked unit names
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
convert template as input, with unabbreviated linked unit names
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Prefer m
If a template uses {{Infobox person/height|{{{height}}}|prefer=m}}, any article using that template will display a conversion to metric as m (default is cm).
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Prefer cm
If a template uses {{Infobox person/height|{{{height}}}|prefer=cm}}, any article using that template will display a conversion to metric as cm (default).
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Enforce m
If a template uses {{Infobox person/height|{{{height}}}|enforce=m}}, any article using that template will display all metric units as m, whether in the input or in the conversion (default is metric input unchanged, though abbreviated, and metric conversion in cm).
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Enforce cm
If a template uses {{Infobox person/height|{{{height}}}|enforce=cm}}, any article using that template will display all metric units as cm, whether in the input or in the conversion (default is metric input unchanged, though abbreviated, and metric conversion in cm).
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Exceptions
Does not replace numbers in manually entered conversions, but does replace unit names with abbreviations (examples intentionally show incorrect conversions):
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
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):
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Areas for improvement
Conversion not displayed if unit name contains uppercase characters:
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Conversion not displayed if symbols are used for feet and inches:
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".
Does not recognize symbols for feet and inches in a manually entered conversion (adds a second conversion):
Lua error: Internal error: The interpreter has terminated with signal "24". Lua error: Internal error: The interpreter has terminated with signal "24".