Template:PAGESINCATEGORY/sandbox
Appearance
0
This is the template sandbox page for Template:PAGESINCATEGORY (diff). See also the companion subpage for test cases. |
Please use {{PAGESINCATEGORY:Category}} , rather than {{PAGESINCATEGORY|Category}} . This uses the magic word directly instead of using the template to call the magic word. |
Usage
[edit]{{PAGESINCATEGORY|Featured articles}}
gives 6,627{{PAGESINCATEGORY|Featured articles|R}}
gives 6627 (no commas)
{{PAGESINCATEGORY|Wikipedia files requiring renaming|all}}
gives 7 — all pages{{PAGESINCATEGORY|Wikipedia files requiring renaming|pages}}
gives 0 — ordinary pages (excluding subcategories and files){{PAGESINCATEGORY|Wikipedia files requiring renaming|subcats}}
gives 4 — subcategories{{PAGESINCATEGORY|Wikipedia files requiring renaming|files}}
gives 3 — 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.