Template:IsValidNumber/doc

From Ring of Brodgar
Jump to navigation Jump to search
Is IsValidNumber.
Checks if a string is a valid single number.
A valid math expression here is considered a non single number string.
{{IsValidNumber|string}}
{{IsNum|string}} (short named version)
Result.
Success: Returns the used string.
Fail: Returns an empty string.
Note
When using special formatted numbers like "17,964,614", one must raw-format them in order to remove commas. (Ref)
For SMW returned data use ... else use: {{IsValidNumber|{{formatnum:<number-string>|R}}}}