Difference between revisions of "Template:Dated maintenance category count/doc"

From blackwiki
Jump to navigation Jump to search
imported>Davidwr
(initial documentation, moving category from Template:Dated maintenance category count to here per convention)
 
imported>Davidwr
(→‎Usage: improve documentation)
Line 2: Line 2:
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
== Usage ==
 
== Usage ==
 +
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|</nowiki>''Dated maintenance category''<nowiki>}}</nowiki></code>
  
Counts the total number of members of the listed category plus each of the dated monthly categories going back 5 years.
+
Returns the total number of members of <code>'''<nowiki>[[Category:</nowiki>''Dated maintenance category''<nowiki>]]</nowiki>'''</code> plus the total number of members of each of the dated monthly categories going back 5 years.
 +
 
 +
''Dated maintenance category'' is a parent category whose sub-categories have names in the form <code>'''<nowiki>[[Category:</nowiki>''Dated maintenance category'' from ''Month'' ''YEAR''<nowiki>]]</nowiki>'''</code>.
  
  
Line 15: Line 18:
  
  
;Depends on:
+
;Dependencies and limitations:
* [[Template:dated maintenance category count line]]
+
* Makes 60 calls to [[Template:dated maintenance category count line]]
 
+
* <code><nowiki>{{dated maintenance category count line|</nowiki>''Dated maintenance category''<nowiki>|</nowiki>''number of months ago''<nowiki>}}</nowiki></code>
 
+
: resulting in 61 calls to the [[WP:EXPENSIVE|expensive parser function]] <code><nowiki>{{PAGESINCATEGORY:}}</nowiki></code>.
;Caveats:
+
: Wikipedia limits pages to 500 expensive parser function calls.
* [[Template:dated maintenance category count line]] makes one call to the [[WP:EXPENSIVE|expensive parser function]] <code>PAGESINCATEGORY</code> for each monthly maintenance category plus one call for the main category itself.
 
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 00:49, 6 September 2020

Usage

  • {{Dated maintenance category count|Dated maintenance category}}

Returns the total number of members of [[Category:Dated maintenance category]] plus the total number of members of each of the dated monthly categories going back 5 years.

Dated maintenance category is a parent category whose sub-categories have names in the form [[Category:Dated maintenance category from Month YEAR]].


Example
  • As of January 2026, {{dated maintenance category count|BLP articles lacking sources}} returns 0


Used by


Dependencies and limitations
resulting in 61 calls to the expensive parser function {{PAGESINCATEGORY:}}.
Wikipedia limits pages to 500 expensive parser function calls.