User:MaxSem (WMF)/sandbox

Lua error in Module:BRFA at line 17: Invalid page name.
Lua error in Module:BRFA at line 17: Invalid page name.

Operator: and the Wikimedia Community Tech team

Time filed:

Automatic, Supervised, or Manual: automatic

Programming language(s): Python/Pywikibot

Source code available: WIP: https://github.com/MaxSem/CommonsNotifier (will be moved later)

Function overview: notifying article authors about problems with Commons images used.

Links to relevant discussions (where appropriate): Wishlist survey #10, enwiki discussion

Edit period(s): continuous. Will start with running every 15 minutes, then adjust if needed.

Estimated number of pages affected: several thousand per month

Namespace(s): Talk:

Exclusion compliant (Yes/No): yes, standard Pywikibot code

Adminbot (Yes/No): no

Function details:

Whenever a Commons image used on this wiki in mainspace is nominated for deletion:
 * Wait some time in case the nomination was vandalism/mistake. We will start with 15 minutes' wait for speedy deletion nominations and 1 hour for discussion-based deletions but may change the delays later if needed.
 * Post short messages to affected articles' talk pages, linking to deletion discussion where applicable. The messages can be seen at T188151.
 * The bot will not post to more than 10 pages per file. Initially, these will be selected randomly but later 10 most watched pages will be notified.