An investigation task for wish #10, Commons deletion notification bot
Notes on the project page:
https://meta.wikimedia.org/wiki/Community_Tech/Commons_deletion_notification_bot
Related Phabricator tasks: T167614
Investigation tasks:
* Determine an implementation plan, including localization
----
Investigation result -
=== Detecting files nominated for deletion ===
* '''Speedy deletion''': pages are nominated for deletion by slapping one of many templates and are put into [[commons:Category:Candidates for speedy deletion|Category:Candidates for speedy deletion]] or its subcategories. We might automatically update this list periodically. To differentiate between deletion categories and categories nominated for deletion, recursion should be restricted to categories containing <code>[[commons:Template:DeletionCategory|<nowiki>{{DeletionCategory}}</nowiki>]]</code>.
* '''Normal deletion''': discussion based deletion requests are mostly done with <code>[[commons:Template:Delete|<nowiki>{{delete}}</nowiki>]]</code>, files are placed into subcategories of [[commons:Category:Deletion requests|Category:Deletion requests]]. To differentiate between suitable and not so suitable subcategories, search should be restricted to <code>Category:Deletion requests <month> <year></code> without recursion.
** The <code>reason</code> and <code>subpage</code> parameters (or first and second unnamed) could be used to get more information on deletion to report on other wikis.
=== Proposed localization ===
Two principal possibilities: leaving templated messages or free text.
**Messages**: can be localized on TWN, the bot will leave wikitext afterwards.
Pros:
* One localization can be shared between all wikis in the same language.
* Easier to make opt-out based deployments: a wiki doesn't need to do anything to start receiving notifications, at most we could require that certain messages should be localized. Once these are done, you're immediately ready to receive notifications.
**Templates**: the bot leaves parameterized templates as messages.
Pros:
* Users love templates.
* Templates can be updated with more information, e.g. when deletion discussions are over.
* Can retroactively modify and improve old messages.
Cons:
* The templates need to be set up on each wiki in order for the bot to work.
* Updating the templates can break old messages.
=== Delayed notifications ===
Sometimes, pages are vandalized with frivolous deletion nominations. To reduce noise and workload, it has been proposed that notifications be delayed for a certain amount of time. I propose to start with 15 minutes delay for speedy deletion nominations and 1 hour for deletion discussions and adjust as we go.
=== Estimated number of pages to edit ===
Appears to be in the order of magnitude of 10k per month for deletion discussions. These numbers are smaller because some discussions have already concluded:
MariaDB [commonswiki_p]> select count(*) from globalimagelinks where gil_to in (select page_title from page, categorylinks where page_id=cl_from and page_namespace=6 and cl_to='Deletion_requests_December_2017');
| count(*) |
| 3641 |
| 1 row in set (0.09 sec) |
MariaDB [commonswiki_p]> select count(*) from globalimagelinks where gil_to in (select page_title from page, categorylinks where page_id=cl_from and page_namespace=6 and cl_to='Deletion_requests_January_2018');
| count(*) |
| 7200 |
| 1 row in set (2.30 sec) |