Difference between revisions of "Module:Category link with count/doc"
Jump to navigation
Jump to search
blackwiki>Zyxw (update examples) |
blackwiki>Zyxw (→Examples: update) |
||
| Line 9: | Line 9: | ||
== Examples == | == Examples == | ||
| − | + | === 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}} | ||
| − | ; | + | ; 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 === | |
| + | ; 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
| This is a documentation subpage for Module:Category link with count. It contains usage information, categories and other content that is not part of the original module page. |
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
|
|