Template:PAGESINCATEGORY/doc
< Template:PAGESINCATEGORY
Jump to navigation
Jump to search
Revision as of 21:55, 22 October 2021 by Wikipedia>JJMC89 bot III (Merging Category:Magic word templates to Category:Wikipedia magic word templates per Wikipedia:Categories for discussion/Log/2021 September 25#Category:Magic word templates)
| This is a documentation subpage for Template:PAGESINCATEGORY. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{PAGESINCATEGORY|Featured articles}}gives 0{{PAGESINCATEGORY|Featured articles|R}}gives 0 (no commas)
{{PAGESINCATEGORY|Wikipedia files requiring renaming|all}}gives 0 — all pages{{PAGESINCATEGORY|Wikipedia files requiring renaming|pages}}gives 0 — ordinary pages (excluding subcategories and files){{PAGESINCATEGORY|Wikipedia files requiring renaming|subcats}}gives 0 — subcategories{{PAGESINCATEGORY|Wikipedia files requiring renaming|files}}gives 0 — files
This behaviour is the same as (and uses) the WP:Magic word "PAGESINCATEGORY". The only exception is that if no parameter is used, the current pagename is used as the parameter.