
Category:Pages with non-numeric formatnum arguments
Jump to navigation
Jump to search
This is a maintenance category. It is used for maintenance of the Wikipedia project and is not part of the encyclopedia. It contains pages that are not articles, or it groups articles by status rather than subject. Do not include this category in content categories. This is a hidden category. It is not shown on its member pages, unless the corresponding user preference 'Show hidden categories' is set. This is a tracking category. It builds and maintains a list of pages primarily for the sake of the list itself. Pages are added to tracking categories through templates. |
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; see T237467. A workaround for this incorrect usage was applied to {{US Census population}}, which shows population declines as negative numbers. You should use hyphen-minus withinformatnum
to avoid this error category and it will output the proper minus sign (see T10327).
Pages in category "Pages with non-numeric formatnum arguments"
The following 200 pages are in this category, out of 262 total.
(previous page) (next page)2
- 2008 Sierran federal election
- 2017 Alcenian Senate special election in Sidanevi
- 2018 FIFA World Cup (Eagle, Bear, and Crane)
- 2018 World Cup
- 2019 Kingdom of Sierra CAS membership referendum
- 2020 Asia Cup (Eagle, Bear, and Crane)
- 2020 Sierran federal election
- 2020 Sierran Senate elections
- 2020 Superian federal election
- 2021 Sierran federal election
- 2022 FIFA World Cup
- 2022 Superian federal election
A
B
C
E
G
I
- Ila
- Illinois
- Imperial City
- Indianapolis (IE)
- Module:Infobox
- Template:Infobox academic division
- Template:Infobox academic division/doc
- Template:Infobox airport
- Template:Infobox airport/doc
- Template:Infobox album
- Template:Infobox album/doc
- Template:Infobox film
- Template:Infobox film/doc
- Template:Infobox international football competition
- Template:Infobox international football competition/doc
- Template:Infobox landform/doc
- Template:Infobox Liberta neighborhood
- Template:Infobox person
- Template:Infobox person/doc
- Template:Infobox pipeline
- Template:Infobox pipeline/doc
- Template:Infobox political division
- Template:Infobox political division/doc
- Template:Infobox settlement
- Template:Infobox settlement/doc
- Template:Infobox U.S. state
- Template:Infobox U.S. state/doc
- Module:Infobox/doc
- Inuigawa (Eastern Manifest Destiny)
- Irvine, Orange
K
L
M
N
- Nami Novgorod
- Nanyo Prefecture (Ume)
- National Capital Region
- Nauvoo, Illinois (Vandverse)
- Template:Navbox
- Template:Navbox with collapsible groups
- Nazareth City
- Nevidad
- New Brandenburg
- New Cumbria
- New Gloucester
- New Hamburg
- New Manila, Gold Coast
- New Mexico
- New Pomerelia
- New Rotterdam and Nassau Island (Annexico)
- New York (state)
- Ngelab
- Nicaragua
- Ninihúsa (Merveilles des Morte)
- Nobea (neighborhood)
- Norman, Shasta
- Nova Scotia (Merveilles des Morte)
- Template:Number and percent/doc
- Nyrøysa
P
- Paiagua
- Panaxa
- Paradise Bay, Orange
- Paraná
- Paraná (São Leopoldo state)
- Pawnee, Inland Empire
- Template:Percentage bar
- Template:Percentage bar/doc
- Porciúncula
- Porciúncula County, Gold Coast
- Porciúncula International Airport
- Port James
- Port Kane
- Portal Corporation
- Providencia, Gold Coast
- Prussia
- Puerto Lempira
- Purington, Inland Empire
- Pőnan