Template:Isnumeric/doc: Difference between revisions

From FamilySearch Wiki
(Update)
(Fix category)
 
Line 28: Line 28:
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Template namespace templates|{{PAGENAME}}]]
[[Category:Utility templates|{{PAGENAME}}]]
[[Category:Formatting and function templates|{{PAGENAME}}]]


<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>
</includeonly>

Latest revision as of 14:36, 23 February 2010

This is the {{Isnumeric}} template. This template is used to test if the passed in parameter is numeric or not. Only one parameter is used and required, the value to be tested.

Examples[edit source]

Entered Produces Notes
{{Isnumeric{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} 782195 Correct
{{Isnumeric{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} Contains non-numeric characters
{{Isnumeric{{{2}}}{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} Missing number

See also[edit source]