Manual:Pywikibot/commonscat.py

With this tool you can add the template to categories. The tool works by following the interwiki links. If the template is present on another language page, the bot will use it. You could probably use it at articles as well, but this isn't tested.

Parameters
This bot uses pagegenerators to get a list of pages. The following options are supported: -always          Don't prompt you for each replacement. Warning message has not to be confirmed. ATTENTION: Use this with care! -summary:XYZ     Set the action summary message for the edit to XYZ, otherwise it uses messages from add_text.py as default. -checkcurrent    Work on all category pages that use the primary commonscat template.

For example to go through all categories:  python pwb.py commonscat -start:Category:!

Pages to work on can be specified using any of: