Template:Category count only
Jump to navigation
Jump to search
0
This documentation is transcluded from Template:Category count only/doc.
{{Category count only}} simply returns the number of pages in a category, with no extra surrounding text. It serves as a shorthand for Mediawiki's {{PAGESINCATEGORY}} magic word.
Usage
{{Category count only |Category= |Type= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
Category | category | Category to check | empty | required |
Type | type | Whether to count all pages, ordinary pages (excluding subcategories and files), subcategories, or files. | empty | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
- {{Category count only|Trees|all}} → 5,591
- {{Category count only|Trees|pages}} → 2
- {{Category count only|Trees|subcats}} → 71
- {{Category count only|Trees|files}} → 5,518