Difference between revisions of "Template:Isnumeric"

From BroaDWcast
Jump to navigationJump to search
(Created page with "{{#iferror:{{#expr:{{formatnum:{{{1|error}}}|R}}}}|{{#ifeq:{{{boolean|false}}}|true|0|}}|{{#ifeq:{{{boolean|false}}}|true|1|{{{1}}}}}}}<noinclude>")
 
Line 1: Line 1:
 
{{#iferror:{{#expr:{{formatnum:{{{1|error}}}|R}}}}|{{#ifeq:{{{boolean|false}}}|true|0|}}|{{#ifeq:{{{boolean|false}}}|true|1|{{{1}}}}}}}<noinclude>
 
{{#iferror:{{#expr:{{formatnum:{{{1|error}}}|R}}}}|{{#ifeq:{{{boolean|false}}}|true|0|}}|{{#ifeq:{{{boolean|false}}}|true|1|{{{1}}}}}}}<noinclude>
 +
<noinclude>By default, simply writing {{Isnumeric|1,327}} (where 1,327 is an example number) will pass through the parameter if it's numeric and be blank if it's not. If the parameter boolean=true is given, as in {{Isnumeric|1,327|boolean=true}}, then the template will output 1 if numeric and 0 if not numeric.</noinclude>
 +
[[wikipedia:Template:Isnumeric/doc|Template:Isnumeric/doc]]

Revision as of 00:57, 26 July 2013

By default, simply writing 1,327 Template:Isnumeric/doc (where 1,327 is an example number) will pass through the parameter if it's numeric and be blank if it's not. If the parameter boolean=true is given, as in 1 Template:Isnumeric/doc, then the template will output 1 if numeric and 0 if not numeric. Template:Isnumeric/doc