Template:IsNumber/doc

This template is used to determine whether an input is an integer number. This is useful in cases where it is ambiguous if, for instance, the value of a template parameter is the name or the ID of an item.

It only recognizes purely numerical strings, i.e., strings consisting of one or more digits. It also recognizes a minus sign in front of the digits. Spaces within the number, or thousands or decimal separators are not considered (spaces around the number are ignored).

Note that it might sometimes be preferable to use a combination of and. That allows recognizing all valid syntax, e.g. formulas, which might be useful if the following logic uses  itself.

Usage
The string which is to be checked if it consists of a number.
 * First unnamed parameter