Manual:Pywikibot/Compat/commons category redirect.py
(Redirected from Manual:Pywikibot/commons category redirect.py)
This page is documentation for Pywikipedia Compat, which is no longer supported. This page is kept for historical interest. It may document scripts and features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. |
This bot cleans Commons:Category:Non-empty category redirects by moving all the files, pages and categories from redirected category, which were not edited for at least a week, to the target category.
The bot will look for categories that are marked with a category redirect template, take the first parameter of the template as the target of the redirect, and move all pages and subcategories of the category there. Only category pages that haven't been edited for a certain cooldown period (currently 7 days) are taken into account, to prevent edit wars and vandalism.
Parameters
editNo bot-specific parameters.