Difference between revisions of "Template:IsNumber"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
− | -->{{#iferror:{{# | + | -->{{#iferror:{{#ifexpr:{{#var: varFirstPageNumber}}^0 = 1 |yes|}}|}}<!-- |
--></includeonly> | --></includeonly> |
Latest revision as of 18:50, 28 December 2021
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