Template:Category link with count: Difference between revisions

From Xomnipedia
Jump to navigation Jump to search
Content deleted Content added
If parameter 1 starts with "Category:", remove it. This prevents red links, such as Category:Category:ABC.
m 13 revisions imported from wikipedia:Template:Category_link_with_count
 
(10 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[:Category:{{PAGENAME:{{{1}}}}}]]&nbsp;({{PAGESINCATEGORY:{{PAGENAME:{{{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}}}}<!--
{{Documentation|Template:Clc/doc}}
-->]]&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 16:37, 28 March 2022

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