మూస:Convert/testcases
This is the template test cases page for the sandbox of మూస:Convert. 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 with these links: |
- Live version tested: Convert (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test)
- Sandbox version tested: Convert/sandboxlua (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test)
- Module tested in this sandbox: Module:Convert (edit | talk | history | links | watch | logs)
- All /testcases/ pages
{cvt} testcases
మార్చుTo compare: |abbr=
options in {{convert}} and {{cvt}}
- {convert|10|km|mi}} → 10 కిలోమీటర్లు (6.2 మై.)
- {cvt|...} → 10 కి.మీ. (6.2 మై.)
- {convert|10|km|mi|abbr=}} → 10 కిలోమీటర్లు (6.2 మై.)
- {cvt|...} → 10 కి.మీ. (6.2 మై.)
- {convert|10|km|mi|abbr=in}} → 10 కి.మీ. (6.2 మైళ్లు)
- {cvt|...} → 10 కి.మీ. (6.2 మై.)
- {convert|10|km|mi|abbr=off}} → 10 కిలోమీటర్లు (6.2 మైళ్లు)
- {cvt|...} → 10 కి.మీ. (6.2 మై.)
- {convert|10|km|mi|abbr=none}} → 10 కిలోమీటర్లు (6.2 మైళ్లు)
- {cvt|...} → 10 కి.మీ. (6.2 మై.)
- {convert|10|km|mi|abbr=on}} → 10 కి.మీ. (6.2 మై.)
- {cvt|...} → 10 కి.మీ. (6.2 మై.)
- {convert|10|km|mi|abbr=out}} → 10 కిలోమీటర్లు (6.2 మై.)
- {cvt|...} → 10 కి.మీ. (6.2 మై.)
- {convert|10|km|mi|abbr=values}} → 10 (6.2)
- {cvt|...} → 10 (6.2)
- {convert|10|km|mi|abbr=~}} → 10 కిలోమీటర్లు [కి.మీ.] (6.2 మై.)
- {cvt|...} → 10 కి.మీ. [కి.మీ.] (6.2 మై.)
- {convert|10|km|mi|abbr=foo}} → 10 కిలోమీటర్లు (6.2 మై.)*
- {cvt|...} → 10 కి.మీ. (6.2 మై.)[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 |
Testcases by unit type
మార్చుThe following compare the output of {{convert/old}} with that from {{convert}}. The former uses the system of templates from before December 2013, while the latter uses the convert modules.
Type |
---|
acceleration |
area, area2 |
density |
energy, energy2, energy3, energy4 |
energyperlength |
energypermass |
energypervolume |
exhaustemission |
flow |
force |
fuelconsumption |
gradient |
length, length2, length3 (hand) |
lineardensity |
mass |
mole |
per (cost/area/volume/mass) |
populationdensity |
power |
pressure |
radioactivity |
speed |
temperature |
temperature-change |
time |
torque |
volume, volume2, volume3, volume4, volume5 |
misc (these need sorting into better groupings) |
Other testcases
మార్చుThe following compare the output of {{convert/old}} with that from {{convert}}. The former uses the system of templates from before December 2013, while the latter uses the convert modules.
Test topic |
---|
warnings |
numbers |
dualunit |
options, options2 |
tables |
spell |
range |
rounding |
sigfig |
parametercombinations1 - No disp param |
parametercombinations2 - disp=or |
parametercombinations3 - disp=x|BEGIN|END |
parametercombinations4 - disp=output only |
parametercombinations5 - disp=output number only |
parametercombinations6 - disp=flip |
parametercombinations7 - disp=unit |
parametercombinations8 - disp=br |
parametercombinations9 - disp=sqbr |
parametercombinations10 - disp=u2 |
extra |
prefixes (currently, SI only) |