Difference between revisions of "Module:Category link with count/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(update examples)
blackwiki>Zyxw
(→‎Examples: update)
Line 9: Line 9:
  
 
== Examples ==
 
== Examples ==
; One parameter (without "Category:")
+
=== One parameter ===
 +
; without "Category:"
 
: {{tlc|{{BASEPAGENAME}}|Côte-d'Or}} → {{{{BASEPAGENAME}}|Côte-d'Or}}
 
: {{tlc|{{BASEPAGENAME}}|Côte-d'Or}} → {{{{BASEPAGENAME}}|Côte-d'Or}}
 
   
 
   
; One parameter (with "Category:")
+
; with "Category:"
 
: {{tlc|{{BASEPAGENAME}}|Category:Côte-d'Or}} → {{{{BASEPAGENAME}}|Category:Côte-d'Or}}
 
: {{tlc|{{BASEPAGENAME}}|Category:Côte-d'Or}} → {{{{BASEPAGENAME}}|Category:Côte-d'Or}}
  
; Two parameters
+
=== Two parameters ===
 +
; without "Category:"
 
: {{tlc|{{BASEPAGENAME}}|Côte-d'Or|pages}} → {{{{BASEPAGENAME}}|Côte-d'Or|pages}}
 
: {{tlc|{{BASEPAGENAME}}|Côte-d'Or|pages}} → {{{{BASEPAGENAME}}|Côte-d'Or|pages}}
 
: {{tlc|{{BASEPAGENAME}}|Côte-d'Or|subcats}} → {{{{BASEPAGENAME}}|Côte-d'Or|subcats}}
 
: {{tlc|{{BASEPAGENAME}}|Côte-d'Or|subcats}} → {{{{BASEPAGENAME}}|Côte-d'Or|subcats}}
 
: {{tlc|{{BASEPAGENAME}}|Côte-d'Or|files}} → {{{{BASEPAGENAME}}|Côte-d'Or|files}}
 
: {{tlc|{{BASEPAGENAME}}|Côte-d'Or|files}} → {{{{BASEPAGENAME}}|Côte-d'Or|files}}
 +
 +
; with "Category:"
 +
: {{tlc|{{BASEPAGENAME}}|Category:Côte-d'Or|pages}} → {{{{BASEPAGENAME}}|Category:Côte-d'Or|pages}}
 +
: {{tlc|{{BASEPAGENAME}}|Category:Côte-d'Or|subcats}} → {{{{BASEPAGENAME}}|Category:Côte-d'Or|subcats}}
 +
: {{tlc|{{BASEPAGENAME}}|Category:Côte-d'Or|files}} → {{{{BASEPAGENAME}}|Category:Côte-d'Or|files}}
  
 
==See also==
 
==See also==

Revision as of 19:05, 2 July 2017

Module: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)
with "Category:"
{{Category link with count|Category:Côte-d'Or}}Category:Côte-d'Or (0)

Two parameters

without "Category:"
{{Category link with count|Côte-d'Or|pages}}Category:Côte-d'Or (0)
{{Category link with count|Côte-d'Or|subcats}}Category:Côte-d'Or (0)
{{Category link with count|Côte-d'Or|files}}Category:Côte-d'Or (0)
with "Category:"
{{Category link with count|Category:Côte-d'Or|pages}}Category:Côte-d'Or (0)
{{Category link with count|Category:Côte-d'Or|subcats}}Category:Côte-d'Or (0)
{{Category link with count|Category:Côte-d'Or|files}}Category:Côte-d'Or (0)

See also

Template Example output
{{c}} Example
{{cl}} Category:Example
{{cls}} Cat:Example
Template Example output
{{cconly}} Template:Cconly
{{clc}} Category:Example (0)
{{lc}} Category:Example (edit | talk | history | links | watch | logs)
{{lcs}} Category:Example(edit talk links history)