Template:Convert/testcases

From Wikipedia, the free encyclopedia

Page Module:Message box/ombox.css has no content.

{cvt} testcases

To compare: |abbr= options in Template:Tlf and Template:Tlf

  • {convert|10|km|mi}} → 10 kilometres (6.2 mi)
{cvt|...} → Template:Cvt
  • {convert|10|km|mi|abbr=}} → 10 kilometres (6.2 mi)
{cvt|...} → Template:Cvt
  • {convert|10|km|mi|abbr=in}} → 10 km (6.2 miles)
{cvt|...} → Template:Cvt
  • {convert|10|km|mi|abbr=off}} → 10 kilometres (6.2 miles)
{cvt|...} → Template:Cvt
  • {convert|10|km|mi|abbr=none}} → 10 kilometres (6.2 miles)
{cvt|...} → Template:Cvt
  • {convert|10|km|mi|abbr=on}} → 10 km (6.2 mi)
{cvt|...} → Template:Cvt
  • {convert|10|km|mi|abbr=out}} → 10 kilometres (6.2 mi)
{cvt|...} → Template:Cvt
  • {convert|10|km|mi|abbr=values}} → 10 (6.2)
{cvt|...} → Template:Cvt
  • {convert|10|km|mi|abbr=~}} → 10 kilometres [km] (6.2 mi)
{cvt|...} → Template:Cvt
  • {convert|10|km|mi|abbr=foo}} → 10 kilometres (6.2 mi)*
{cvt|...} → Template:Cvt


Sandbox testcases

The following test the sandbox modules by comparing the output of Template:Tl with fixed wikitext. The results should be examined when the sandbox modules are changed.

The sandbox testcases contain almost all the converts from the tests listed in other sections on this page, and extra tests.

Test Result
sandbox1 talk sandbox1
sandbox2 talk sandbox2
sandbox3 talk sandbox3
sandbox4 talk sandbox4

Other testcases

The following compare the output of Template:Tl with that from Template:Tl. The former uses the system of templates from before December 2013, while the latter uses the convert modules.

Test topic
tables
sigfig