Template:Valid: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
Created page with '{{subst:doc}}'
 
meta>SkyLined
Created
Line 1: Line 1:
<div class="template-documentation"><!--
<noinclude>
-->{{#ifeq:μ|<!--**DEFINED BUT EMPTY**-->
==Purpose==
  |<!--**NOTHING**-->
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.
  |<div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifeq:μ|μ
==Returns==
  |<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{Documentation/docname}}
'''true''' if the argument is valid, '''false''' if it is not.
    |<!--**    /doc EXISTS**  -->[[{{fullurl:{{Documentation/docname}}|action=edit}} edit]]
==Examples==
    |<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{Documentation/docname }}|action=edit&preload=Template:Documentation/preload}} create]]
:<code><nowiki>{{valid|number=1234}}</nowiki></code> = {{valid|number=1234}}
  }}</span>
:<code><nowiki>{{valid|number=1234567890}}</nowiki></code> = {{valid|number=1234567890}} (too large)
  }} <span style="{{#if:|{{{heading-style}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:|{{{heading}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|[[Image:Template-info.svg|50px]] Template documentation|Documentation}}}}</span></div>
:<code><nowiki>{{valid|number=1234567890}}</nowiki></code> = {{valid|number=1234567890}}
}}<!--
</noincude><includeonly>{{REM|
 
  }}{{#if:{{{number|}}}|{{REM|
--><div id="template_doc_page_transcluded" class="dablink plainlinks"><!--
     }}{{#ifeq:{{{1|0}}}|{{evalns|{{{1|0}}}}}{{REM|
  -->{{#ifexist: {{Documentation/docname}}
         }}|true|{{REM|
  |<!--**/doc EXISTS**-->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{Documentation/docname}}]]. <small style="font-style: normal">([{{fullurl:{{Documentation/docname}}|action=edit}} edit] &#124; [{{fullurl:{{Documentation/docname}}|action=history}} history])</small><br />
        }}{{#ifeq:{{{1|0}}}|+{{evalns|{{{1|0}}}}}{{REM|
}}<!--
          }}|true{{REM|
 
          }}|false{{REM|
-->{{#switch: {{SUBPAGENAME}}
        }}}}{{REM|
  |sandbox|testcases=<!--**DO NOT SHOW THESE LINKS ON THE SANDBOX/TESTCASES PAGES**-->
    }}}}{{REM|
  |#default=
  }}}}{{REM|
    {{#switch: {{SUBJECTSPACE}}
}}</includeonly>
    |{{ns:template}}
     |{{ns:user}}=
      {{#ifexist: {{FULLPAGENAME}}/sandbox
      |This template has a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit])</small> <!--
         -->{{#ifexist: {{FULLPAGENAME}}/testcases
        |and [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small>}} for editors to experiment.
      |{{#ifexist: {{FULLPAGENAME}}/testcases
        |This template has [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small> for editors to experiment.}}
}}}}}}
</div>
{{#if:|{{{content}}}|{{#ifexist:{{Documentation/docname}} | {{ {{Documentation/docname}} }} }}}}
</div>

Revision as of 16:54, 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>