Template:Valid: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
x
meta>SkyLined
removed REM
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=1234567890}}</nowiki></code> = {{valid|number=1234567890}}
:<code><nowiki>{{valid|number=1234567890}}</nowiki></code> = {{valid|number=1234567890}}
</noincude><includeonly>{{REM|
</noincude><includeonly>{{#if:{{{number|}}}|{{#ifeq:{{{number|0}}}|{{evalns|{{{number|0}}}}}|true|{{#ifeq:{{{number|0}}}|+{{evalns|{{{number|0}}}}}|true|false}}}}}}</includeonly>
  }}{{#if:{{{number|}}}|x{{REM|
    }}{{#ifeq:{{{number|0}}}|{{evalns|{{{number|0}}}}}{{REM|
        }}|true{{REM|
        }}|{{#ifeq:{{{number|0}}}|+{{evalns|{{{number|0}}}}}{{REM|
          }}|true{{REM|
          }}|false{{REM|
        }}}}{{REM|
    }}}}{{REM|
  }}}}{{REM|
}}</includeonly>

Revision as of 16:58, 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}} =
{{valid|number=1234567890}} = (too large)
{{valid|number=1234567890}} =

</noincude>