GaryJJSpate (talk | contribs) Created page with "{{PAGESINCATEGORY:{{{1|{{PAGENAME}}}}}|{{{2|}}}|{{{3|}}}}}<noinclude> {{Documentation}} </noinclude>" |
GaryJJSpate (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{PAGESINCATEGORY:{{{1 | <includeonly>{{PAGESINCATEGORY:{{{1}}}|{{{2|pages}}}}} pages</includeonly><noinclude> | ||
== Template:CategoryCount == | |||
Wraps the built-in <code>PAGESINCATEGORY</code> magic word to output a live page count with the word "pages" attached, so category pages don't need to write the raw magic word syntax themselves. | |||
{{ | '''Usage:''' | ||
<pre> | |||
{{CategoryCount|Vault Templates}} | |||
</pre> | |||
Renders as: <code>14 pages</code> (the number updates automatically as pages are added or removed from the category) | |||
=== Parameters === | |||
* '''1''' — required. The category name (without the <code>Category:</code> prefix) | |||
* '''2''' — optional. What to count: <code>pages</code> (default), <code>subcats</code>, <code>files</code>, or <code>all</code> | |||
[[Category:Vault Templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 02:18, 22 July 2026
Template:CategoryCount
Wraps the built-in PAGESINCATEGORY magic word to output a live page count with the word "pages" attached, so category pages don't need to write the raw magic word syntax themselves.
Usage:
{{CategoryCount|Vault Templates}}
Renders as: 14 pages (the number updates automatically as pages are added or removed from the category)
Parameters
- 1 — required. The category name (without the
Category:prefix) - 2 — optional. What to count:
pages(default),subcats,files, orall