Template:Valid: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined Removed |0 (not needed) fixed example |
meta>SkyLined testing (doesn't seem to work correctly) |
||
Line 8: | Line 8: | ||
:<code><nowiki>{{valid|number=1234567890}}</nowiki></code> = {{valid|number=1234567890}} (too large) | :<code><nowiki>{{valid|number=1234567890}}</nowiki></code> = {{valid|number=1234567890}} (too large) | ||
:<code><nowiki>{{valid|number=123456789000}}</nowiki></code> = {{valid|number=123456789000}} | :<code><nowiki>{{valid|number=123456789000}}</nowiki></code> = {{valid|number=123456789000}} | ||
</noinclude><includeonly>{{#if:{{{number|}}}|{{#ifeq:{{{number}}}|{{evalns|{{{number}}}}}| | </noinclude><includeonly>{{#if:{{{number|}}}|{{#ifeq:{{{number}}}|{{evalns|{{{number}}}}}|true1|{{#ifeq:{{{number}}}|+{{evalns|{{{number}}}}}|true2|false}}}}}}</includeonly> |
Revision as of 17:03, 16 April 2008
Purpose
Determines whether something is valid in a vertain context. Currently only implemented for determining if a number is within the precision that wikipedia expressions can handle.
Returns
true if the argument is valid, false if it is not.
Examples
{{valid|number=1234}}
= true1{{valid|number=1234567890}}
= true1 (too large){{valid|number=123456789000}}
= true1