User:DumbBOT/CatCreate

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

DumbBOT creates a number of daily categories. Generally, it creates the categories from one day before to three days after today. It currently creates the categories according to the following table:

Wiki Subcategory/Subpage Starter Replace
commons.wikimedia.org Category:Media missing permission as of $D Template:Media missing permission subcategory starter
commons.wikimedia.org Category:Media without a license as of $D Template:Media without a license subcategory starter
commons.wikimedia.org Category:Media without a source as of $D Template:Media without a source subcategory starter

The subcategory/subpage starter template is transcluded using the following arguments:

  • 1 = year
  • 2 = month
  • 3 = day, 0-padded
  • 4 = day
  • 5 = day, blank padded
  • 6 = date as used in place of $D
  • 7-12 same for day before
  • 13-19 same for day after
  • REVID is the id of the previous revision
  • MONTHNO is the number of the month, zero-padded

Date $D is formatted using GNU date. Default formatting is "%-d_%B_%Y".