This is the template test cases page for the sandbox of Template:Convert/testcases. 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: |
- Testcases with
|sigfig=
.
- To get the message shown, code
warnings=on
must be set. Therefor we must be tested with {{convert/sandboxlua2}} (which has that|warning=on
set).
option | value | Live | sandboxlua2 | note |
---|---|---|---|---|
sigfig | dflt | 1 kilometre (0.62 mi) | 1 km (0.62 mi) | |
sigfig | 20 | 1 kilometre (0.62137119223733 mi) | 1 km (0.62137119223733 mi) | |
sigfig | 15 | 1 kilometre (0.62137119223733 mi) | 1 km (0.62137119223733 mi) | |
sigfig | 14 | 1 kilometre (0.62137119223733 mi) | 1 km (0.62137119223733 mi) | max=14 (new) |
sigfig | 10 | 1 kilometre (0.6213711922 mi) | 1 km (0.6213711922 mi) | |
sigfig | 5 | 1 kilometre (0.62137 mi) | 1 km (0.62137 mi) | |
sigfig | 4 | 1 kilometre (0.6214 mi) | 1 km (0.6214 mi) | |
sigfig | 3 | 1 kilometre (0.621 mi) | 1 km (0.621 mi) | |
sigfig | 2 | 1 kilometre (0.62 mi) | 1 km (0.62 mi) | |
sigfig | 1 | 1 kilometre (0.6 mi) | 1 km (0.6 mi) | |
sigfig | 0 | 1 kilometre (0.62 mi)* | 1 km (0.62 mi)[convert: invalid sigfig] | |
sigfig | -1 | 1 kilometre (0.62 mi)* | 1 km (0.62 mi)[convert: invalid sigfig] | |
sigfig | 2.2 | 1 kilometre (0.62 mi)* | 1 km (0.62 mi)[convert: invalid sigfig] | |
sigfig | 3 (whitesp) | 1 kilometre (0.621 mi) | 1 km (0.621 mi) | |
sigfig | 2 | 1 kilometre (0.62 mi)* | 1 km (0.62 mi)[convert: invalid sigfig] | |
sigfig | 2<br> | 1 kilometre (0.62 mi)* | 1 km (0.62 mi)[convert: invalid sigfig] | |
sigfig | =blank | 1 kilometre (0.62 mi) | 1 km (0.62 mi) | |
sigfig | -1 icw error | [convert: needs a number] | [convert: needs a number] | |
sigfig | -1 icw error | [convert: needs a number] | [convert: needs a number] | |
sigfig | -1 icw error | 1[convert: needs unit name] | 1[convert: needs unit name] |