Template:Category link with count: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
en>Tom Morris
(adding a second argument: default "all" but you can put in "pages" or "subcats" etc. as documented on mw:Help:Magic_words#Statistics and it passes it through to the magic word)
m (1 revision imported from wikipedia:Template:Category_link_with_count)
 
(11 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[:Category:{{{1}}}]]&nbsp;({{PAGESINCATEGORY:{{{1}}}|{{{2|all}}}}})<noinclude>
[[:Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|<!--
-->{{#if:{{{name|}}}|{{{name}}}|Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}}}<!--

-->]]&nbsp;({{PAGESINCATEGORY:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|{{{2|all}}}}})<noinclude>
[[Category:Internal category-link templates]]
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 15:07, 22 September 2022

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