Difference between revisions of "Template:IsNumber"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
− | -->{{#iferror: {{#expr: {{{value|}}} }}||yes}}<!-- | + | -->{{#iferror:{{#expr:{{{value|}}}*0}}||yes}}<!-- |
--></includeonly> | --></includeonly> |
Revision as of 13:06, 25 June 2017
The template returns "yes" if the entered string is a number, and an empty string otherwise.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|value=
- the value to check