Template:Count/doc
Appearance
![]() | This is a documentation subpage for Template:Count. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 831,000 pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
![]() | This template uses Lua: |
Returns a number from (0 or 1) to 10 indicating the number of defined parameters passed. Currently supports a maximum of 10 parameters.
Usage
[edit]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
[edit]Note: {{ Count/testcase1 }} tests nesting of templates calling {{ Count }}.
See also
[edit]- {{Counter}}
- module:ParameterCount, with more options