Template:Valid: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
Created
Ookami (talk | contribs)
m 23 revisions imported
 
(21 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{#if:{{{number|}}}|{{#ifeq:{{{number}}}|{{evalns|{{{number}}}}}|true|{{#ifeq:{{{number}}}|+{{evalns|{{{number}}}}}|true|{{#ifeq:{{{number}}}|({{evalns|{{{number}}}}})|true|false}}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude>
==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==
:<code><nowiki>{{valid|number=1234}}</nowiki></code> = {{valid|number=1234}}
:<code><nowiki>{{valid|number=1234567890}}</nowiki></code> = {{valid|number=1234567890}} (too large)
:<code><nowiki>{{valid|number=1234567890}}</nowiki></code> = {{valid|number=1234567890}}
</noincude><includeonly>{{REM|
  }}{{#if:{{{number|}}}|{{REM|
    }}{{#ifeq:{{{1|0}}}|{{evalns|{{{1|0}}}}}{{REM|
        }}|true|{{REM|
        }}{{#ifeq:{{{1|0}}}|+{{evalns|{{{1|0}}}}}{{REM|
          }}|true{{REM|
          }}|false{{REM|
        }}}}{{REM|
    }}}}{{REM|
  }}}}{{REM|
}}</includeonly>

Latest revision as of 13:41, 3 September 2020