Difference between revisions of "Template:Category count only/doc"

(Creation (as this is needed))
 
m (Updating)
Line 1: Line 1:
{{Documentation}}
+
{{Documentation subpage}}
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
{{tsh|cconly}}
 
{{tsh|cconly}}

Revision as of 21:06, 2 March 2023

About

{{Category count only}} simply returns the number of pages in a category, with no extra surrounding text.

Usage

The first unnamed parameter, mandatory, is the category name to be counted.
A second unnamed parameter, optional, may be used to count several subsets of that category, as described in mw:Help:Magic words#Statistics.

See also

Template Example output
{{c}} Help
{{cl}} Category:Help
{{cls}} Cat:Help
Template Example output
{{cconly}} 45
{{clc}} Category:Help (45)
{{lc}} Category:Help (edit | talk | history | links | watch | logs)
{{lcs}} Category:Help (Edit Discussion links Page history)