Template:Infobox person/weight/testcases
| File:Gnome-applications-science.svg | This is the template test cases page for the sandbox of Template:Infobox person/weight. 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/weight}}, implemented via Module:Person weight since 30 September 2019
- {{Infobox person/weight/sandbox}}, using Module:Person weight/sandbox
- {{Infobox person/weight/sandbox2}}, a copy of template prior to creation of Lua module
kilograms[edit source]
Template:Test case Template:Test case Template:Test case Template:Test case
pounds[edit source]
Template:Test case Template:Test case Template:Test case Template:Test case
stone[edit source]
Template:Test case Template:Test case Template:Test case Template:Test case
stone and pounds[edit source]
Template:Test case Template:Test case Template:Test case Template:Test case
year and reference[edit source]
Template:Test case Template:Test case
convert template as input[edit source]
With unabbreviated unit names:
Template:Test case Template:Test case
With unabbreviated wikilinked unit names:
Template:Test case Template:Test case
With abbreviated wikilinked unit names:
Template:Test case Template:Test case
weight ranges[edit source]
with en dash (–):
Template:Test case Template:Test case Template:Test case
with hyphen (-); output is changed to en dash by {{Convert}}:
Template:Test case Template:Test case Template:Test case
kg-stlb enabled[edit source]
If a template uses {{Infobox person/weight|{{{weight}}}|kg-stlb=yes}}, then an article using that template with an input in kg will display two conversions: lb followed by st/lb (default is one conversion to lb):
Template:Test case Template:Test case Template:Test case Template:Test case
lb-stlb enabled[edit source]
If a template uses {{Infobox person/weight|{{{weight}}}|lb-stlb=yes}}, then an article using that template with an input in lb will display two conversions: kg followed by st/lb (default is one conversion to kg):
Template:Test case Template:Test case Template:Test case Template:Test case
Exceptions[edit source]
Does not replace numbers in manually entered conversions, but does replace unit names with abbreviations (examples intentionally show incorrect conversions):
Template:Test case Template:Test case Template:Test case
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):
Template:Test case Template:Test case Template:Test case
Areas for improvement[edit source]
Conversion not displayed if unit name contains uppercase characters:
Template:Test case Template:Test case Template:Test case Template:Test case Template:Test case Template:Test case