Template:Category link with count/doc
Jump to navigation
Jump to search
About
{{Category link with count}}
generates a link to a category followed by the number of pages in the category. It uses the PAGESINCATEGORY parser function.
Usage
One parameter
{{Category link with count|CATEGORY}}
{{clc|CATEGORY}}
{{CLC|CATEGORY}}
Two parameters
{{Category link with count|CATEGORY|TYPE}}
{{clc|CATEGORY|TYPE}}
{{CLC|CATEGORY|TYPE}}
Name label
{{Category link with count|Category:Guans (bird)|name=CAT:Guans}}
→- CAT:Guans (0)
Examples
Using the template shortcut {{clc}}
:
One parameter
Prefix namespace Template:Mono is optional.
Without "Category:"
{{clc|Stratagems}}
→ Category:Stratagems (84)
With "Category:"
{{clc|Category:Stratagems}}
→ Category:Stratagems (84)
Two parameters
{{clc|Stratagems|pages}}
→ Category:Stratagems (70){{clc|Stratagems|subcats}}
→ Category:Stratagems (14){{clc|Stratagems|files}}
→ Category:Stratagems (0)
{{clc|Category:Stratagems|pages}}
→ Category:Stratagems (70){{clc|Category:Stratagems|subcats}}
→ Category:Stratagems (14){{clc|Category:Stratagems|files}}
→ Category:Stratagems (0)
Name label
|name=
{{clc|Stratagems|name=Strats}}
→ Strats (84)
See also
Template:Internal category-link templates
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.