Category:Pages with non-numeric formatnum arguments
Jump to navigation
Jump to search
(previous page) (next page)
![]() | This is a maintenance category, used for maintenance of the PBC. It is not part of the encyclopedia and contains non-article pages, or groups articles by status rather than subject. Do not include this category in content categories.
This is a tracking category. It builds and maintains a list of pages primarily for the sake of the list itself. They are not part of the encyclopedia's categorization scheme.
Administrators: Please do not delete this category even if it is empty! This category may be empty occasionally or even most of the time. |
![]() | This is a tracking category It is used to build and maintain lists of pages—primarily for the sake of the lists themselves. They are not part of the encyclopedia's categorization scheme.
|
* # 0 1 2 3 4 5 6 7 8 9 • A Aa Ae Aj Ao At • B Ba Be Bj Bo Bt • C Ca Ce Cj Co Ct • D Da De Dj Do Dt • E Ea Ee Ej Eo Et • F Fa Fe Fj Fo Ft • G Ga Ge Gj Go Gt • H Ha He Hj Ho Ht • I Ia Ie Ij Io It • J Ja Je Jj Jo Jt • K Ka Ke Kj Ko Kt • L La Le Lj Lo Lt • M Ma Me Mj Mo Mt • N Na Ne Nj No Nt • O Oa Oe Oj Oo Ot • P Pa Pe Pj Po Pt • Q Qa Qe Qj Qo Qt • R Ra Re Rj Ro Rt • S Sa Se Sj So St • T Ta Te Tj To Tt • U Ua Ue Uj Uo Ut • V Va Ve Vj Vo Vt • W Wa We Wj Wo Wt • X Xa Xe Xj Xo Xt • Y Ya Ye Yj Yo Yt • Z Za Ze Zj Zo Zt
This category collects pages that use the formatnum
parser function with a non-numeric or incorrectly formatted value, e.g. {{formatnum:foo}}
or {{formatnum:12,345}}
.
Ways to fix or work around this error inside template code:
- If
formatnum
is being applied to a string that includes both a number and words, change it to wrap just the number. Example:{{formatnum:{{{var}}} dollars}}
→{{formatnum:{{{var}}}}} dollars
- Another way to work around invalid input is to remove commas from the input like this:
{{formatnum:{{replace|{{{var}}}|,|}}}}
. Note that input using commas as decimal separators, in contravention of MOS:DECIMAL, will cause formatnum to produce invalid values. To fix the problem, use a full stop (period) as a decimal separator. - A limited way to work around invalid input in templates is to use {{digits}}, e.g.
{{formatnum:{{digits|{{{votes}}}}}}}
. This works only for whole numbers and will produce incorrect results for input containing decimal points or other non-numeric characters.
Ways to fix this error in articles:
- When additional text or references exist in a template parameter that expects only numbers, find a way to move the additional text outside the template or into a different parameter. For example:
- Currency templates like {{CAD}} or {{US$}} take only numeric input. Use
{{US$|123}}{{nbsp}}million
instead of{{US$|123 million}}
- The
|population_total=
parameter in {{Infobox settlement}} should have only a number in it. Move any references to|population_footnotes=
, as in this edit.
- Currency templates like {{CAD}} or {{US$}} take only numeric input. Use
Other:
- When
formatnum
is given a negative number written with the proper U+2212 "minus sign" (instead of the commonly used hyphen-minus key that appears on most keyboards), e.g.{{formatnum:−9000000}}
, it assigns this error category.
Pages in category "Pages with non-numeric formatnum arguments"
The following 29 pages are in this category, out of 1,458 total.
(previous page) (next page)