Template:Convert/testcases

To compare: |abbr= options in {{convert}} and {{cvt}}

Template:Convert/testcases

{cvt} testcases

To compare: |abbr= options in {{convert}} and {{cvt}}

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


Sandbox testcases

The following test the sandbox modules by comparing the output of {{convert/sandbox}} 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 {{Convert/sandboxlua}} with that from {{convert}}. The former uses the system of templates from before December 2013, while the latter uses the convert modules.

Test topic
tables
sigfig

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.