قالب:Val/units/testcases
This is the testcases page for قالب:Val/units. To update the testcases, click the box to the left of this message. More information and options If there are many examples of a complicated template on this page, those toward the end of the page may malfunction due to MediaWiki limits. If this occurs, see the "NewPP limit report" comment added to the rendered page.
You can also use Special:ExpandTemplates to examine the results of template use. Skins available in which to view this page: |
This is list of all units in alphabetical order. When several entries in a row look alike, it can mean that there are several ways to markup that link in Val.
If tests fail, there or reload here.
The test includes whitespace.
- The output should be double spaced, no more, no less.
- Each side-by-side token should look the same.
The other units tests (incl. whitespace) is at Val testcases.
Usage
Generate the tests from {{Val/units}} wikitext. First remove the unspaced units then grep '^|' val-units | sort | perl -F'/\||=/' -lane 'print either "{{Val/units|$F[1]}} {{Val/units/sandbox|$F[1]}}\n"' or "{{Val/units|$F[1]}} {{Convert|1|$F[1]|disp=unit|lk=on|abbr=on}}\n"'
If a test fails, you must identify the unit code from the wikitext.
- If markup is showing instead rendering, you've got a syntax error that should've been caught at Val/units preview testing (missing colon, misplaced bracket, etc.)
- If there's a red link, start by editing Val/units.
- Uncommon failures are template problems. If one unit is quadruple spaced, a unit had no output because no #switch default. If all units are quadruple spaced, a partial transclusion tag is out of place at units.
Compare Val/units with its current sandbox
<Units Sandbox>
<Units Sandbox>
<Units Sandbox>
<Units Sandbox>
8 billionths 8 billionths
<Units Sandbox>
8 decilliard 8 decilliard
<Units Sandbox>
<Units Sandbox>
8 nonilliard 8 nonilliard
8 octilliard 8 octilliard
<Units Sandbox>
8 quadrillionth 8 quadrillionth
8 quadrillionths 8 quadrillionths
8 quintillionth 8 quintillionth
8 quintillionths 8 quintillionths
8 septillion 8 septillion
8 septillionths 8 septillionths
8 sextillion 8 sextillion
8 sextillionths 8 sextillionths
8 trillionth 8 trillionth
<Units Sandbox>
Compare Val/units with {{Convert}}
<Units Convert>
8 eV/c2 eV/c2[convert: unknown unit]
8 AD AD[convert: unknown unit]
8 BC BC[convert: unknown unit]
8 BCE BCE[convert: unknown unit]
8 BP BP[convert: unknown unit]
8 CE CE[convert: unknown unit]
8 EA EA[convert: unknown unit]
8 EV EV[convert: unknown unit]
8 M⊕ Earth mass[convert: unknown unit]
8 R⊕ Earth radius[convert: unknown unit]
8 Foo Foo[convert: unknown unit]
8 GA GA[convert: unknown unit]
8 GJ⋅mol−1 GJ.mol-1[convert: unknown unit]
8 GV GV[convert: unknown unit]
8 Gal Gal[convert: unknown unit]
8 Gbit/s Gbit/s[convert: unknown unit]
8 GeV/c2 GeV/c2[convert: unknown unit]
8 Gpc2 Gpc2[convert: unknown unit]
<Units Convert>
8 Gpc3 Gpc3[convert: unknown unit]
8 H⋅m−1 H.m-1[convert: unknown unit]
8 J⋅mol−1 J.mol-1[convert: unknown unit]
8 J⋅s J.s[convert: unknown unit]
8 MJ Jupiter mass[convert: unknown unit]
8 RJ Jupiter radius[convert: unknown unit]
8 KPa KPa[convert: unknown unit]
8 L☉ L_Solar[convert: unknown unit]
8 L☉ L_solar[convert: unknown unit]
8 MA MA[convert: unknown unit]
8 MJ⋅mol−1 MJ.mol-1[convert: unknown unit]
8 MV MV[convert: unknown unit]
8 M⊕ M_Earth[convert: unknown unit]
8 MJ M_Jupiter[convert: unknown unit]
8 M☉ M_Solar[convert: unknown unit]
8 M☉ M_solar[convert: unknown unit]
8 Mbit/s Mbit/s[convert: unknown unit]
8 MeV/c2 MeV/c2[convert: unknown unit]
8 Mpc2 Mpc2[convert: unknown unit]
8 Mpc3 Mpc3[convert: unknown unit]
8 N⋅A−2 N.A-2[convert: unknown unit]
8 Osm Osm[convert: unknown unit]
8 PA PA[convert: unknown unit]
8 PV PV[convert: unknown unit]
<Units Convert>
8 R⊕ R_Earth[convert: unknown unit]
8 RJ R_Jupiter[convert: unknown unit]
8 R☉ R_Solar[convert: unknown unit]
8 R☉ R_solar[convert: unknown unit]
8 L☉ Solar luminosity[convert: unknown unit]
8 M☉ Solar mass[convert: unknown unit]
8 R☉ Solar radius[convert: unknown unit]
8 TA TA[convert: unknown unit]
8 TJ⋅mol−1 TJ.mol-1[convert: unknown unit]
8 TV TV[convert: unknown unit]
8 Tbit/s Tbit/s[convert: unknown unit]
8 TeV/c2 TeV/c2[convert: unknown unit]
8 V⋅m−1 V.m-1[convert: unknown unit]
8 V/m V/m[convert: unknown unit]
8 VV VV[convert: unknown unit]
8 Wb Wb[convert: unknown unit]
8 YA YA[convert: unknown unit]
8 YV YV[convert: unknown unit]
8 ZA ZA[convert: unknown unit]
8 ZV ZV[convert: unknown unit]
<Units Convert>
8 aA aA[convert: unknown unit]
8 billiard billiard[convert: unknown unit]
8 billion billion[convert: unknown unit]
8 billionth billionth[convert: unknown unit]
8 billionths billionths[convert: unknown unit]
8 bit/s bit/s[convert: unknown unit]
8 bit/s bps[convert: unknown unit]
8 bya bya[convert: unknown unit]
8 byte/s byte/s[convert: unknown unit]
8 byte byte[convert: unknown unit]
8 cA cA[convert: unknown unit]
8 cV cV[convert: unknown unit]
8 cm−1 cm-1[convert: unknown unit]
8 dA dA[convert: unknown unit]
8 dV dV[convert: unknown unit]
8 daA daA[convert: unknown unit]
8 daV daV[convert: unknown unit]
<Units Convert>
8 decilliard decilliard[convert: unknown unit]
8 decillion decillion[convert: unknown unit]
8 decillionth decillionth[convert: unknown unit]
8 decillionths decillionths[convert: unknown unit]
8 °C degC[convert: unknown unit]
8 °F degF[convert: unknown unit]
8 °R degR[convert: unknown unit]
8 fA fA[convert: unknown unit]
8 fV fV[convert: unknown unit]
8 fb−1 fb-1[convert: unknown unit]
8 g⋅mol−1 g.mol-1[convert: unknown unit]
8 hA hA[convert: unknown unit]
8 hV hV[convert: unknown unit]
8 kA kA[convert: unknown unit]
8 kJ⋅mol−1 kJ.mol-1[convert: unknown unit]
8 kV kV[convert: unknown unit]
<Units Convert>
8 kbit/s kbit/s[convert: unknown unit]
8 keV/c2 keV/c2[convert: unknown unit]
8 kg⋅mol−1 kg.mol-1[convert: unknown unit]
8 kpc2 kpc2[convert: unknown unit]
8 kpc3 kpc3[convert: unknown unit]
8 kya kya[convert: unknown unit]
8 lbm lbm[convert: unknown unit]
8 m−1 m-1[convert: unknown unit]
8 m−2 m-2[convert: unknown unit]
8 m−3 m-3[convert: unknown unit]
8 m⋅s−1 m.s-1[convert: unknown unit]
8 m⋅s−2 m.s-2[convert: unknown unit]
8 mA mA[convert: unknown unit]
8 mGal mGal[convert: unknown unit]
8 mV mV[convert: unknown unit]
8 mas mas[convert: unknown unit]
8 meV mev[convert: unknown unit]
8 milliard milliard[convert: unknown unit]
8 muA muA[convert: unknown unit]
<Units Convert>
8 muG muG[convert: unknown unit]
8 muGal muGal[convert: unknown unit]
8 muHz muHz[convert: unknown unit]
8 muJ muJ[convert: unknown unit]
8 muK muK[convert: unknown unit]
8 muT muT[convert: unknown unit]
8 muV muV[convert: unknown unit]
8 mug/dL mug/dL[convert: unknown unit]
8 mug/dl mug/dl[convert: unknown unit]
8 mug mug[convert: unknown unit]
8 mum mum[convert: unknown unit]
8 mus mus[convert: unknown unit]
8 mya mya[convert: unknown unit]
8 nA nA[convert: unknown unit]
8 nV nV[convert: unknown unit]
8 nonilliard nonilliard[convert: unknown unit]
8 nonillion nonillion[convert: unknown unit]
8 nonillionth nonillionth[convert: unknown unit]
8 nonillionths nonillionths[convert: unknown unit]
8 octilliard octilliard[convert: unknown unit]
8 octillion octillion[convert: unknown unit]
8 octillionth octillionth[convert: unknown unit]
8 octillionths octillionths[convert: unknown unit]
8 osmol osmol[convert: unknown unit]
8 pA pA[convert: unknown unit]
8 pV pV[convert: unknown unit]
8 pc2 pc2[convert: unknown unit]
8 pc3 pc3[convert: unknown unit]
8 pp pp[convert: unknown unit]
8 ppb ppb[convert: unknown unit]
8 ppm ppm[convert: unknown unit]
8 quadrilliard quadrilliard[convert: unknown unit]
<Units Convert>
8 quadrillion quadrillion[convert: unknown unit]
8 quadrillionth quadrillionth[convert: unknown unit]
8 quadrillionths quadrillionths[convert: unknown unit]
8 quintilliard quintilliard[convert: unknown unit]
8 quintillion quintillion[convert: unknown unit]
8 quintillionth quintillionth[convert: unknown unit]
8 quintillionths quintillionths[convert: unknown unit]
8 s−1 s-1[convert: unknown unit]
8 s−2 s-2[convert: unknown unit]
8 s2 s2[convert: unknown unit]
8 septilliard septilliard[convert: unknown unit]
8 septillion septillion[convert: unknown unit]
8 septillionth septillionth[convert: unknown unit]
8 septillionths septillionths[convert: unknown unit]
8 sextilliard sextilliard[convert: unknown unit]
8 sextillion sextillion[convert: unknown unit]
8 sextillionth sextillionth[convert: unknown unit]
8 sextillionths sextillionths[convert: unknown unit]
8 L☉ solar luminosity[convert: unknown unit]
8 trilliard trilliard[convert: unknown unit]
8 trillion trillion[convert: unknown unit]
8 trillionth trillionth[convert: unknown unit]
8 trillionths trillionths[convert: unknown unit]
8 14C yr BP uBP[convert: unknown unit]
8 yA yA[convert: unknown unit]
8 yV yV[convert: unknown unit]
8 zA zA[convert: unknown unit]
8 zV zV[convert: unknown unit]
<Units Convert>
8 μA µA[convert: unknown unit]
8 µ
B µB[convert: unknown unit]
8 µGal µGal[convert: unknown unit]
8 μV µV[convert: unknown unit]
Commentary
Per the above
Questionable links:
- Ga goes to Hectare#Are instead of GigaAnum
- mug goes to Mug (as in coffee)
- mum goes to Mother
Wrong links going to letters of the alphabet or to DAB pages:
- A,
- EV, EK, EG, EA
- GA, GK, GV,
- H
- MA, MG, MV
- Osm
- PA, PG, PK, PV
- TA, TG, TK, VV,
- V
- Wb,
- YA, YG, YK, YV
- ZA, ZG, ZK, ZV
- aA, aG, aK
- c, cA, cG, cK, cV, cm-1
- dA, dG, dK, dV,
- fA, fG
- hA, hG, hK, hV,
- kA,
- m-1, m-2, m-3, mA, mG, mK, mV, mas?, mug, mus, mya
- nA, nG, nK, nV
- pA, pG, pK, pV, pc3, ppb, ppm,
- s-1, s-2, s2
- u, uBP,
- y, yA, yG, yK, yV,
- zA , zG, zK, zV,
- GREEK LETTER MICRO A is going to MA
- GREEK LETTER MICRO K is going to MK
- GREEK LETTER MICRO V is going to MV
Interesting differences from Val:
- Ga
- Gg
- Gs (Convert's is better)
- J/Mol
- KPa should be kPa in both
- MHz
- MJ/Mol
- MT MegaTesla verses t for tonne
- Ma
- Mg (Megagram V tonne)
- Ms (second V megaSecond) Convert's is better)
- Pm (Convert's is better Petameter)
- Ps (Convert's is better Petasecond)
- Tg (Tonne V Gram)
- Tm (Convert's is better Terameter)
- Ts (Convert's is better Terasecond)
- VV (Volt V W)??
- Ys (Convert's is better Yotasecond)
- Zm (Convert's is better Zettameter)
- Zs (Convert's is better Zettasecond)
- billiard
- billion
- billionth
- byr V Ga
- cg
- cm-1 (could go to article called "Reciprocal length")
- decilliard
- decillion
- degF, degC, degR
- fm (Convert's is better)
- g/L (grams per Liter V Density)
- g/cm3
- g/l (grams per liter, but convert abbreviates liter both acceptible ways)
- g/mol
- kg/mol
- ks (Convert's is better)
- kyr (kyr V millenium)
- lbf (markup only)
- mg/mL (grams per liter V Density)
- milliard
- myr (million year V Annum)
- nonillion
- octillion
- quadrilliard
- quadrillion
- quadrillionth
- quintillion
- septillion
- sextilliard
- sextillion
- trilliard
- trillion
- trillionth
- yr (markup a, and year V annum)
- year (ditto)
- GREEK LETTER MICRO N differs in markup (Nuclear Magneton V Newton)