Template:Category link: Difference between revisions

From The Goon Show Depository

m (1 revision imported)
en>HouseBlaster
(sync with sandbox, which allows for the option of a category prefix and reduces calls to the WP:EXPENSIVE PAGESINCAT)
Line 1: Line 1:
{{Tfm/dated|page=Category link|otherpage=cat|link=Wikipedia:Templates for discussion/Log/2024 July 7#Template:Category link|type=inline|help=off|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}[[:Category:{{{1}}}|{{{2|Category:{{{1}}}}}}]]{{#ifeq:{{Yesno|{{{count|no}}}}}|yes|<small> {{#ifexpr:{{PAGESINCAT:{{{1}}}|{{UC:{{{count_type|ALL}}}}}|R}}>={{{backlog|{{#expr:{{PAGESINCAT:{{{1}}}|{{UC:{{{count_type|ALL}}}}}|R}}+1}}}}}|<span style="font-weight: bold; color: #DD0000;">}}(&thinsp;{{PAGESINCAT:{{{1}}}|{{UC:{{{count_type|ALL}}}}}}}&thinsp;){{#ifexpr:{{PAGESINCAT:{{{1}}}|{{UC:{{{count_type|ALL}}}}}|R}}>={{{backlog|{{#expr:{{PAGESINCAT:{{{1}}}|{{UC:{{{count_type|ALL}}}}}|R}}+1}}}}}|</span>}}</small>}}<noinclude>
{{Category link/core|1={{PAGENAME:{{{1}}}}}|2={{{2|Category:{{PAGENAME:{{{1}}}}}}}}|count={{{count|no}}}|page_count={{PAGESINCAT:{{PAGENAME:{{{1}}}}}|{{UC:{{{count_type|ALL}}}}}|R}}|backlog={{{backlog|{{formatnum:{{NUMBEROFPAGES}}|R}}}}}}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 10:02, 14 July 2024

[[:Category:|Category:]]