Jump to content

Template:Category link with count: Difference between revisions

From Wiki - Scioly.org
Created page with ":Category:{{#ifeq:{{str left|{{{1}}}|9}}|Category:|{{str right|{{{1}}}|9}}|{{{1}}}}}|<!-- -->{{#if:{{{name|}}}|{{{name}}}|Category:{{#ifeq:{{str left|{{{1}}}|9}}|Category:|{..."
 
m 1 revision imported: Import updated Navbox module from wikipedia
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[:Category:{{#ifeq:{{str left|{{{1}}}|9}}|Category:|{{str right|{{{1}}}|9}}|{{{1}}}}}|<!--
[[:Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|<!--
-->{{#if:{{{name|}}}|{{{name}}}|Category:{{#ifeq:{{str left|{{{1}}}|9}}|Category:|{{str right|{{{1}}}|9}}|{{{1}}}}}}}<!--
-->{{#if:{{{name|}}}|{{{name}}}|Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}}}<!--
-->]]&nbsp;({{PAGESINCATEGORY:{{#ifeq:{{str left|{{{1}}}|9}}|Category:|{{str right|{{{1}}}|9}}|{{{1}}}}}|{{{2|all}}}}})<noinclude>
-->]]&nbsp;({{PAGESINCATEGORY:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|{{{2|all}}}}})<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 07:55, 27 July 2025

[[:Category:{{{1}}}|Category:{{{1}}}]] (0)

Template documentation

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

One parameter
{{Category link with count|CATEGORY}}
{{clc|CATEGORY}}
{{CLC|CATEGORY}}
Two parameters
{{Category link with count|CATEGORY|TYPE}}
{{clc|CATEGORY|TYPE}}
{{CLC|CATEGORY|TYPE}}
Name label
{{Category link with count|State Pages|name=SP}}SP (0)

Examples

Using the template shortcut {{clc}}:

One parameter

{{clc|State Pages}}Category:State Pages (0)

Two parameters

without "Category:"
{{clc|State Pages|pages}}Category:State Pages (0)
{{clc|State Pages|subcats}}Category:State Pages (0)
{{clc|State Pages|files}}Category:State Pages (0)