Template:Pagesincat
[[:Category:{{{1}}}|{{{1}}}]]: 0
This returns the number of pages in a specified category and links to the category itself (pipe-tricked to not show the "Category:" part).
Usage
edit{{pagesincat|<category name (no prefix)>|<display name (optional)>}}
Examples
edit- {{pagesincat|CommonsRoot}} → CommonsRoot: 7
- {{pagesincat|CommonsRoot|adjust=-5}} → CommonsRoot: 2
See also
edit- {{PagesincatR}} - adds a R (related changes link) after the number.