Template:Count: Difference between revisions

From The Pokemon Insurgence Wiki
No edit summary
No edit summary
Line 4: Line 4:




</noinclude>
== Usage ==
Set ''base=0'' or ''base=1'' to change from the default value returned if there are no '''defined''' parameters.&nbsp; (i.e. If no '''defined''' parameters, returns 0 by default <small>(or 1 if ''base=1'')</small>)
 
== Examples ==
{{Count/testcases}}
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- ■■ Categories go here and interwikis go in Wikidata. ■■ -->
 
}}</includeonly>

Revision as of 22:19, 29 January 2015


Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Note: {{Count/testcase1}} tests nesting of templates calling {{Count}}.

Call Result
{{Count|A|B||D}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|base{{=}}1}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|base{{=}}0}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|abc}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|abc|base{{=}}0}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|abc|base{{=}}1}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1||DEF}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|abc|DEF}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|abc|DEF|}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|abc|DEF|ghi}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|abc||ghi}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz#}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%|^&*|()_|+:"|123|456|789|000}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases

  Only counts to 10 right now!
{{Count/testcase1|abc||ghi||mno||stu||yz@|}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1||DEF||JKL||PQR||VWX||#$%}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|DEF|JKL|PQR|VWX|#$%}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1||||||||||#$%}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|||||||||}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1||||||||||base{{=}}0}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1||||||||||base{{=}}1}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|base{{=}}0|||||||||}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|base{{=}}1|||||||||}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|base{{=}}0||||||PQR|||}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases


{{Count/testcase1|base{{=}}1||||||PQR|||}}

Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed.  Currently supports a maximum of 10 parameters.


Usage

Set base=0 or base=1 to change from the default value returned if there are no defined parameters.  (i.e. If no defined parameters, returns 0 by default (or 1 if base=1))

Examples

Template loop detected: Template:Count/testcases