Module talk:Object weight/testcases
Appearance
| This is the template test cases page for the sandbox of Module talk:Object 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 and parsers with these links: |
19 of 21 tests failed.
test_weight
| Text | Expected | Actual | |
|---|---|---|---|
| {{#invoke:object weight/sandbox|weight|123 grams}} | 123 g (4 oz) | 123 g (4 oz)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 gram}} | 123 g (4 oz) | 123 g (4 oz)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 gs}} | 123 g (4 oz) | 123 g (4 oz)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 g.}} | 123 g (4 oz) | 123 g (4 oz)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 g,}} | 123 g (4 oz) | 123 g (4 oz)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 ounces}} | 123 oz (3,487 g) | 123 oz (3,487 g)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 ounce}} | 123 oz (3,487 g) | 123 oz (3,487 g)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 oz,}} | 123 oz (3,487 g) | 123 oz (3,487 g)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 oz.}} | 123 oz (3,487 g) | 123 oz (3,487 g)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 grams (body only)}} | 123 g (4 oz) (body only) | 123 g (4 oz) (body only)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 gram (body only)}} | 123 g (4 oz) (body only) | 123 g (4 oz) (body only)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 gs (body only)}} | 123 g (4 oz) (body only) | 123 g (4 oz) (body only)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 g. (body only)}} | 123 g (4 oz) (body only) | 123 g (4 oz) (body only)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 g, (body only)}} | 123 g (4 oz) (body only) | 123 g (4 oz) (body only)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 ounces (body only)}} | 123 oz (3,487 g) (body only) | 123 oz (3,487 g) (body only)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 ounce (body only)}} | 123 oz (3,487 g) (body only) | 123 oz (3,487 g) (body only)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 oz, (body only)}} | 123 oz (3,487 g) (body only) | 123 oz (3,487 g) (body only)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 oz. (body only)}} | 123 oz (3,487 g) (body only) | 123 oz (3,487 g) (body only)[[Category:Pages where weight is being automatically converted]] | |
| {{#invoke:object weight/sandbox|weight|123 ounce <ref>{{cite web|url=www.google.com}}</ref>}} | 123 oz (3,487 g) '"`UNIQ--ref-00000009-QINU`"' | 123 oz (3,487 g) '"`UNIQ--ref-00000008-QINU`"'[[Category:Pages where weight is being automatically converted]] |
test_weight_should_not_convert
| Text | Expected | Actual | |
|---|---|---|---|
| {{#invoke:object weight/sandbox|weight|123 LBS}} | 123 LBS | 123 LBS | |
| {{#invoke:object weight/sandbox|weight|123 Pounds}} | 123 Pounds | 123 Pounds |