Difference between revisions of "Template:Count/doc"
Jump to navigation
Jump to search
imported>DePiep |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- | + | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> |
| − | Returns a number from (0 or 1) to 10 indicating the number of '''defined''' parameters passed. Currently supports a '''maximum of 10 parameters'''.<!-- | + | {{Lua|Module:ParameterCount}} |
| + | Returns a number from (0 or 1) to 10 indicating the number of '''defined''' parameters passed. Currently supports a '''maximum of 10 parameters'''.<!--NOTE: Update [[Template:Count/testcases]] if support is added for more parameters. --> | ||
== Usage == | == Usage == | ||
| Line 13: | Line 14: | ||
* [[:module:ParameterCount]], with more options<!-- | * [[:module:ParameterCount]], with more options<!-- | ||
| − | --><includeonly>{{ | + | --><includeonly>{{Sandbox other|| |
<!-- Categories go here and interwikis go in Wikidata. --> | <!-- Categories go here and interwikis go in Wikidata. --> | ||
| + | [[Category:Parameter handling templates]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 16:25, 24 April 2020
| 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. |
| 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
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}}
- module:ParameterCount, with more options