Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Count/doc: Difference between revisions

Template page
Created page with "{{wikipedia|page name}} {{Documentation subpage}} {{High-use}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> {{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 == Set ''base=0'' or ''base=1'' to change from..."
 
No edit summary
 
Line 1: Line 1:
{{wikipedia|page name}}
{{wikipedia|page name}}
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{Lua|Module:ParameterCount}}
{{Lua|Module:ParameterCount}}

Latest revision as of 17:38, 9 April 2025

This page uses Creative Commons Licensed content from Wikipedia (view authors).

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

See also