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
Template:Template see also
kilograms
pounds
stone
stone and pounds
year and reference
convert template as input
With unabbreviated unit names:
Expand{{Convert|111|kg|lb stlb|abbr=off}} → 111 kilograms (245 pounds; 17 stone 7 pounds) |
---|
{{Infobox person/weight|111 kilograms (245 pounds; 17 stone 7 pounds)}}
{{Infobox person/weight}}
111 kg (245 lb; 17 st 7 lb)111 kg (245 lb; 17 st 7 lb)
{{Infobox person/weight/sandbox}}
111 kg (245 lb; 17 st 7 lb)111 kg (245 lb; 17 st 7 lb)
{{Infobox person/weight/sandbox2}}
111 kg (245 lb; 17 st 7 lb)111 kg (245 lb; 17 st 7 lb)
|
Expand{{Convert|245|lb|kg stlb|abbr=off}} → 245 pounds (111 kilograms; 17 stone 7 pounds) |
---|
{{Infobox person/weight|245 pounds (111 kilograms; 17 stone 7 pounds)}}
{{Infobox person/weight}}
245 lb (111 kg; 17 st 7 lb)245 lb (111 kg; 17 st 7 lb)
{{Infobox person/weight/sandbox}}
245 lb (111 kg; 17 st 7 lb)245 lb (111 kg; 17 st 7 lb)
{{Infobox person/weight/sandbox2}}
245 lb (111 kg; 17 st 7 lb)245 lb (111 kg; 17 st 7 lb)
|
With unabbreviated wikilinked unit names:
Expand{{Convert|111|kg|lb stlb|abbr=off|lk=on}} → 111 kilograms (245 pounds; 17 stone 7 pounds) |
---|
{{Infobox person/weight|111 [[kilogram]]s (245 [[Pound (mass)|pounds]]; 17 [[Stone (unit)|stone]] 7 pounds)}}
{{Infobox person/weight}}
111 kg (245 lb; 17 st 7 lb)111 [[Kilogram|kg]] (245 [[Pound (mass)|lb]]; 17 [[Stone (unit)|st]] 7 lb)
{{Infobox person/weight/sandbox}}
111 kg (245 lb; 17 st 7 lb)111 [[Kilogram|kg]] (245 [[Pound (mass)|lb]]; 17 [[Stone (unit)|st]] 7 lb)
{{Infobox person/weight/sandbox2}}
111 kg (245 lb; 17 st 7 lb)111 [[Kilogram|kg]] (245 [[Pound (mass)|lb]]; 17 [[Stone (unit)|st]] 7 lb)
|
Expand{{Convert|245|lb|kg stlb|abbr=off|lk=on}} → 245 pounds (111 kilograms; 17 stone 7 pounds) |
---|
{{Infobox person/weight|245 [[Pound (mass)|pounds]] (111 [[kilogram]]s; 17 [[Stone (unit)|stone]] 7 pounds)}}
{{Infobox person/weight}}
245 lb (111 kg; 17 st 7 lb)245 [[Pound (mass)|lb]] (111 [[Kilogram|kg]]; 17 [[Stone (unit)|st]] 7 lb)
{{Infobox person/weight/sandbox}}
245 lb (111 kg; 17 st 7 lb)245 [[Pound (mass)|lb]] (111 [[Kilogram|kg]]; 17 [[Stone (unit)|st]] 7 lb)
{{Infobox person/weight/sandbox2}}
245 lb (111 kg; 17 st 7 lb)245 [[Pound (mass)|lb]] (111 [[Kilogram|kg]]; 17 [[Stone (unit)|st]] 7 lb)
|
With abbreviated wikilinked unit names:
Expand{{Convert|111|kg|lb stlb|abbr=on|lk=on}} → 111 kg (245 lb; 17 st 7 lb) |
---|
{{Infobox person/weight|111 [[Kilogram|kg]] (245 [[Pound (mass)|lb]]; 17 [[Stone (unit)|st]] 7 lb)}}
{{Infobox person/weight}}
111 kg (245 lb; 17 st 7 lb)111 [[Kilogram|kg]] (245 [[Pound (mass)|lb]]; 17 [[Stone (unit)|st]] 7 lb)
{{Infobox person/weight/sandbox}}
111 kg (245 lb; 17 st 7 lb)111 [[Kilogram|kg]] (245 [[Pound (mass)|lb]]; 17 [[Stone (unit)|st]] 7 lb)
{{Infobox person/weight/sandbox2}}
111 kg (245 lb; 17 st 7 lb)111 [[Kilogram|kg]] (245 [[Pound (mass)|lb]]; 17 [[Stone (unit)|st]] 7 lb)
|
Expand{{Convert|245|lb|kg stlb|abbr=on|lk=on}} → 245 lb (111 kg; 17 st 7 lb) |
---|
{{Infobox person/weight|245 [[Pound (mass)|lb]] (111 [[Kilogram|kg]]; 17 [[Stone (unit)|st]] 7 lb)}}
{{Infobox person/weight}}
245 lb (111 kg; 17 st 7 lb)245 [[Pound (mass)|lb]] (111 [[Kilogram|kg]]; 17 [[Stone (unit)|st]] 7 lb)
{{Infobox person/weight/sandbox}}
245 lb (111 kg; 17 st 7 lb)245 [[Pound (mass)|lb]] (111 [[Kilogram|kg]]; 17 [[Stone (unit)|st]] 7 lb)
{{Infobox person/weight/sandbox2}}
245 lb (111 kg; 17 st 7 lb)245 [[Pound (mass)|lb]] (111 [[Kilogram|kg]]; 17 [[Stone (unit)|st]] 7 lb)
|
weight ranges
with en dash (–):
with hyphen (-); output is changed to en dash by {{Convert}}:
kg-stlb enabled
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):
lb-stlb enabled
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):
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: