Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Category link with count/doc: Difference between revisions

Template page
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{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]]) -->
{{High-use}}
{{Expensive}}
{{Template shortcut|clc|CLC}}
{{Template shortcut|clc|CLC}}
{{Lua|Module:String}}
{{Lua|Module:String}}
Line 19: Line 17:
* {{tlc|clc|<var>CATEGORY</var>|<var>TYPE</var>}}
* {{tlc|clc|<var>CATEGORY</var>|<var>TYPE</var>}}


Name label
* {{tlc|Category link with count|<var>Category:Guans (bird)</var>|<nowiki>name=CAT:Guans</nowiki>}} &rarr; {{clc|Category:Guans (bird)|name=CAT:Guans}}


== Examples ==
== Examples ==
Line 28: Line 24:
Prefix namespace {{mono|Category}} is optional.
Prefix namespace {{mono|Category}} is optional.


Without "Category&#58;"
* {{tlc|clc|Côte-d'Or}} &rarr; {{clc|Côte-d'Or}}
With "Category&#58;"
* {{tlc|clc|Category:Côte-d'Or}} &rarr; {{clc|Category:Côte-d'Or}}
=== Two parameters ===
* {{tlc|clc|Côte-d'Or|pages}} &rarr; {{clc|Côte-d'Or|pages}}
* {{tlc|clc|Côte-d'Or|subcats}} &rarr; {{clc|Côte-d'Or|subcats}}
* {{tlc|clc|Côte-d'Or|files}} &rarr; {{clc|Côte-d'Or|files}}
* {{tlc|clc|Category:Côte-d'Or|pages}} &rarr; {{clc|Category:Côte-d'Or|pages}}
* {{tlc|clc|Category:Côte-d'Or|subcats}} &rarr; {{clc|Category:Côte-d'Or|subcats}}
* {{tlc|clc|Category:Côte-d'Or|files}} &rarr; {{clc|Category:Côte-d'Or|files}}


===Name label===
===Name label===
<div style="margin-left:1.6em;">{{para|name|}}</div>
<div style="margin-left:1.6em;">{{para|name|}}</div>
* <code><nowiki>{{clc|Côte-d'Or|name=Cd'O}}</nowiki></code> &rarr; {{clc|Côte-d'Or|name=Cd'O}}


==See also==
{{Internal category-link templates}}


<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).

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=