Difference between revisions of "Template:Category link with count"

From Yugipedia
Jump to: navigation, search
m (1 revision imported: update Module:Navbox and whatnot from Wikipedia)
(we have {{Normalized pagename}}, so we don't need to go through contortions to properly handle categories with weird characters in their names)
Line 1: Line 1:
[[:Category:{{#ifeq:{{str left|{{{1}}}|9}}|Category:|{{str right|{{{1}}}|9}}|{{{1}}}}}|<!--
+
[[:Category:{{Normalized pagename|{{{1}}}}}|<!--
-->{{#if:{{{name|}}}|{{{name}}}|Category:{{#ifeq:{{str left|{{{1}}}|9}}|Category:|{{str right|{{{1}}}|9}}|{{{1}}}}}}}<!--
+
-->{{#if:{{{name|}}}|{{{name}}}|Category:{{Normalized pagename|{{{1}}}}}}}<!--
-->]]&nbsp;({{PAGESINCATEGORY:{{#ifeq:{{str left|{{{1}}}|9}}|Category:|{{str right|{{{1}}}|9}}|{{{1}}}}}|{{{2|all}}}}})<noinclude>
+
-->]]&nbsp;({{PAGESINCATEGORY:{{Normalized pagename|{{{1}}}}}|{{{2|all}}}}})<noinclude>
 
{{Documentation|Template:Clc/doc}}
 
{{Documentation|Template:Clc/doc}}
 
[[Category:Internal category-link templates]]
 
[[Category:Internal category-link templates]]
 
</noinclude>
 
</noinclude>

Revision as of 06:34, 15 January 2019

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