Difference between revisions of "Template:Category information"
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}}}| has a backlog of| contains}}{{#ifeq:{{PAGESINCATEGORY:{{{1}}}}}|0| no| {{PAGESINCATEGORY:{{{1}}}}}}} | + | <includeonly>*[[:Category:{{{1}}}]]{{#if:{{{backlog|}}}|{{#ifexpr:{{PAGESINCATEGORY:{{{1}}}|R}} > {{{backlog|0}}}| has a backlog of| contains}}| contains}}{{#ifeq:{{PAGESINCATEGORY:{{{1}}}}}|0| no| {{PAGESINCATEGORY:{{{1}}}}}}} page{{#ifeq:{{PAGESINCATEGORY:{{{1}}}}}|1||s}}</includeonly><noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 21:58, 3 September 2018
![]() | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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) eitheronlyinfo
orbullet
, used to customise output of this template. The default isbullet
.
Examples
{{Backlog category information|Biography articles without listas parameter|backlog=50}}
- Category:Biography articles without listas parameter contains no pages
{{Backlog category information|Biography articles without listas parameter|backlog=50|format=onlyinfo}}
- Category:Biography articles without listas parameter contains no pages
The above documentation is transcluded from Template:Category information/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |