Template:Isnumeric/doc: Difference between revisions

From FamilySearch Wiki
(Create)
 
(Update)
Line 13: Line 13:
| {{tlx|Isnumeric|782195}}  
| {{tlx|Isnumeric|782195}}  
| {{Isnumeric|782195}}  
| {{Isnumeric|782195}}  
|  
| Correct
|-
|-
| {{tlx|Isnumeric|941.5 D27gj}}  
| {{tlx|Isnumeric|941.5 D27gj}}  
| {{Isnumeric|941.5 D27gj}}  
| {{Isnumeric|941.5 D27gj}}  
|  
| Contains non-numeric characters
|-
|-
| {{tlx|Isnumeric}}  
| {{tlx|Isnumeric}}  

Revision as of 14:28, 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]