For faster navigation, this Iframe is preloading the Wikiwand page for ප්‍රවර්ගය:Pages with non-numeric formatnum arguments.

ප්‍රවර්ගය:Pages with non-numeric formatnum arguments

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 exists 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.

False positives:

  • 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. Another workaround, if having this error category on a page bothers you, is to use a hyphen-minus within formatnum to avoid this error category; note that it does not output a proper minus sign; see T10327.
{{bottomLinkPreText}} {{bottomLinkText}}
ප්‍රවර්ගය:Pages with non-numeric formatnum arguments
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?