Difference between revisions of "Template:Category information"

From blackwiki
Jump to navigation Jump to search
imported>Dreamy Jazz
(changing to backlog param)
imported>Dreamy Jazz
(push from sandbox)
Line 1: Line 1:
<includeonly>*[[:Category:{{{1}}}]]{{#ifexpr:{{PAGESINCATEGORY:{{{1}}}|R}} > {{{backlog|0}}}|&#32;has a backlog of|&#32;contains}}{{#ifeq:{{PAGESINCATEGORY:{{{1}}}}}|0|&#32;no|&#32;{{PAGESINCATEGORY:{{{1}}}}}}} article{{#ifeq:{{PAGESINCATEGORY:{{{1}}}}}|1||s}}</includeonly><noinclude>
+
<includeonly>*[[:Category:{{{1}}}]]{{#if:{{{backlog|}}}|{{#ifexpr:{{PAGESINCATEGORY:{{{1}}}|R}} > {{{backlog|0}}}|&#32;has a backlog of|&#32;contains}}|&#32;contains}}{{#ifeq:{{PAGESINCATEGORY:{{{1}}}}}|0|&#32;no|&#32;{{PAGESINCATEGORY:{{{1}}}}}}} page{{#ifeq:{{PAGESINCATEGORY:{{{1}}}}}|1||s}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 21:58, 3 September 2018

Template documentation[view] [edit] [history] [purge]

Usage

This template displays the number of pages in a category in a variety of formats, with an optional backlog parameter.

Note: This template uses expensive parser functions, so when this template is used repeatedly on a page, the page may take a long time to load.

Full parameters

{{Category information|1=(cat name)|backlog=|format=}}
  • |1= the name of the category.
  • |backlog= (optional) an integer used to work out if the category has a backlog (when the number of pages is greater than this number). When not using this parameter, the backlog feature will not be used.
  • |format= (optional) either onlyinfo or bullet, used to customise output of this template. The default is bullet.

Examples

{{Backlog category information|Biography articles without listas parameter|backlog=50}}

{{Backlog category information|Biography articles without listas parameter|backlog=50|format=onlyinfo}}