Template:Category link: Difference between revisions

    From Nonbinary Wiki
    m>Technical 13
    (Add the ability to get a count of pages in category.)
    m (32 revisions imported from templatewiki:Template:Category_link)
     
    (6 intermediate revisions by 4 users not shown)
    Line 1: Line 1:
    {{#ifeq:{{#titleparts:{{PAGENAME}}|1}}|Stub types for deletion |[[:Category:{{{1}}}|Cat:{{{1}}}]]
    {{#ifeq:{{#titleparts:{{PAGENAME}}|1}}|Stub types for deletion |[[:Category:{{{1}}}|Cat:{{{1}}}]] | [[: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:{{{1}}}|{{{2|Category:{{{1}}}}}}]]{{#ifeq:{{Yesno|{{{count|no}}}}}|yes|<small> (&thinsp;{{PAGESINCAT:{{{1}}}|{{{count_type|ALL}}}}}&thinsp;)</small>}}
    }}<noinclude>
    {{Documentation}}
    {{Documentation}}
    {{En-WP attribution notice|Template:Category link}}
    </noinclude>
    </noinclude>

    Latest revision as of 09:58, 16 November 2019

    [[:Category:{{{1}}}|Category:{{{1}}}]]

    Template documentation[create]
    Wikipedia logo This template uses material from the Wikipedia template Template:Category link, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).