Template:Isnumeric/doc: Difference between revisions

(Create)
 
(Fix category)
 
(One intermediate revision by the same user not shown)
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}}  
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 13: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

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