More actions
m Protected "Template:Category link with count/doc": Initial wiki setup ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{wikipedia|page name}} | |||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
{{Template shortcut|clc|CLC}} | {{Template shortcut|clc|CLC}} | ||
{{Lua|Module:String}} | {{Lua|Module:String}} | ||
== About == | == About == | ||
{{tl|Category link with count}} generates a link to a category followed by the number of pages in the category. It uses the | {{tl|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 == | == Usage == | ||
| Line 18: | Line 17: | ||
* {{tlc|clc|<var>CATEGORY</var>|<var>TYPE</var>}} | * {{tlc|clc|<var>CATEGORY</var>|<var>TYPE</var>}} | ||
== Examples == | == Examples == | ||
| Line 27: | Line 24: | ||
Prefix namespace {{mono|Category}} is optional. | Prefix namespace {{mono|Category}} is optional. | ||
===Name label=== | ===Name label=== | ||
<div style="margin-left:1.6em;">{{para|name|}}</div> | <div style="margin-left:1.6em;">{{para|name|}}</div> | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Latest revision as of 08:23, 14 April 2025
| This page uses Creative Commons Licensed content from Wikipedia (view authors). |
| This is a documentation subpage for Template:Category link with count It may contain usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
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}}
Two parameters
{{Category link with count|CATEGORY|TYPE}}{{clc|CATEGORY|TYPE}}
Examples
Using the template shortcut {{clc}}:
One parameter
Prefix namespace Category is optional.
Name label
|name=