Difference between revisions of "Template:Count/doc"
Jump to navigation
Jump to search
imported>Who R you? (Split out documentation with testcases added) |
imported>Hyacinth (==See also== *{{tl|Counter}}) |
||
| Line 8: | Line 8: | ||
== Examples == | == Examples == | ||
{{Count/testcases}} | {{Count/testcases}} | ||
| + | |||
| + | ==See also== | ||
| + | *{{tl|Counter}} | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | ||
Revision as of 16:09, 16 June 2014
| This is a documentation subpage for Template:Count. It contains usage information, categories and other content that is not part of the original template page. |
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 }}.
See also
- {{Counter}}