Template:Category link with count/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Hyacinth {{Internal category-link templates}} |
meta>Zyxw update and add examples |
||
Line 1: | Line 1: | ||
{{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]]) --> | ||
{{Larger|{{Template shortcut|CLC|clc}}}} | |||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' generates a link to a category followed by the number of pages in the category. It uses the [[mw:Help:Magic words#PAGESINCATEGORY|PAGESINCATEGORY]] [[Help:Magic words#Parser functions|parser function]]. | |||
== Usage == | == Usage == | ||
{{tlc|{{BASEPAGENAME}}|<var>CATEGORY</var>}} | |||
== Examples == | |||
; One parameter (without "Category:") | |||
: {{tlc|{{BASEPAGENAME}}|Côte-d'Or}} → {{{{BASEPAGENAME}}|Côte-d'Or}} | |||
; One parameter (with "Category:") | |||
: {{tlc|{{BASEPAGENAME}}|Category:Côte-d'Or}} → {{{{BASEPAGENAME}}|Category:Côte-d'Or}} | |||
; Two parameters | |||
: {{tlc|{{BASEPAGENAME}}|Africa|Côte-d'Or}} → {{{{BASEPAGENAME}}|Côte-d'Or|pages}} | |||
==See also== | ==See also== | ||
Line 8: | Line 23: | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Internal category-link templates]] | |||
}}</includeonly> | }}</includeonly> |
Revision as of 18:37, 2 July 2017
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. |
Template: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
{{Category link with count|CATEGORY}}
Examples
- One parameter (without "Category:")
{{Category link with count|Côte-d'Or}}
→ Category:Côte-d'Or (0)
- One parameter (with "Category:")
{{Category link with count|Category:Côte-d'Or}}
→ Category:Côte-d'Or (0)
- Two parameters
{{Category link with count|Africa|Côte-d'Or}}
→ Category:Côte-d'Or (0)
See also
|
|