Community Tech/Commons deletion notification bot
< Community Tech
This page documents a project the Wikimedia Foundation's Community Tech team has worked on or declined in the past. Technical work on this project is complete.
We invite you to join the discussion on the talk page. You may track this project's progress on T167614.
Tracked in Phabricator:
task T167614
This is the project page for Commons deletion notification bot, the #10 wish in the 2017 Community Wishlist Survey. The project is now complete and you can request for it to be enabled on your project.
When there are multiple files nominated for deletion on a page

When there is a single file nominated for deletion on a page
How it works
When a file on Wikimedia Commons is nominated for deletion, the Community Tech bot account posts on talk pages of articles using that image about the impending file deletion. The bot only posts on the first 10 talk pages on a wiki if the image is being used on more than 10 wiki pages to prevent spam (such as when an image being used in a template is nominated for deletion).
Request to enable on a project
Hi! If you would like the Commons deletion notification bot to be enabled on your project, please create a phabricator task and add a 'community-tech' tag. Or comment on this task. We'd appreicate your help in getting the bot approved on your wiki and for getting the bot message strings translated.
Status
August 10, 2018
The bot is now translatable using TranslateWiki. The work to rollout the bot to more languages is being tracked in task T190233.
July 28, 2018
The bot is happily working on English wikipedia without any major feedback so far. We're working on making the bot translatable so we can enable it on more projects.
May 30, 2018
Progress is still chugging along! We're currently running a trial of the bot on English Wikipedia (request for approval here) and have found a few hiccups we need to address before a full release, such as an obnoxious bug where the bot will post multiple sections on the same talk page (phab:T195629). We're also considering how to enable this on all the wikis that want it in phab:T190233.
Community Tech is currently focusing all attention on another 6-week project so development will resume in July. We hope to have the bot completed by the end of July or early August.
April 26, 2018
Development of the bot is in progress, but it's prioritized second to other Community Tech projects. We've made it a team goal to complete it by the end of June.
We've decided on the text that the bot will post, based on input in the Phabricator task. For files marked with regular deletion:
== A Commons file used on this article has been nominated for deletion == The file [[commons:File:Foobar.jpg|Foobar.jpg]] on Wikimedia Commons has been nominated for deletion. View and participate in the deletion discussion at the [[commons:Commons:Deletion requests/File:Foobar.jpg|nomination page]]. — ~~~~
For speedy deletion:
== A Commons file used on this article has been nominated for speedy deletion ==
The file [[commons:File:Foobar.jpg|Foobar.jpg]] on Wikimedia Commons has been nominated for speedy deletion. View the deletion reason at the [[commons:File:Foobar.jpg|Commons file page]]. — ~~~~
Perhaps the biggest change that's been made is that this bot will be opt-in rather than our initial idea to make it opt-out. This means that a wiki will need to proactively ask to have it enabled. We will still send word that it's available and invite all wikis to request it to be enabled. Each local wiki will need one (or more) administrators who will be responsible for the bot if any questions, discussions, or problems arise. (Blocking the bot will stop it from posting, as usual, in any urgent situations.) For now, we'll take requests to have the bot enabled on this article's talk page. We're looking for initial wikis to test on, so please sign up whenever you're ready!
March 20, 2018
We've made some decisions about the bot. The current requirements are listed below at #Requirements but are open to changing them based on your feedback on the talk page or at phab:T188151. Here's what we decided:
March 16, 2018
This project is still in development, in addition to other Wishlist projects. We hope to complete development by July 2018.
February 23, 2018
Subtasks have been created, and a first draft of requirements has been posted at #Requirements below.
February 20, 2018
The investigation for this project has been completed. Notes can be found at phab:T184311.
We've emailed the author of a French Wikipedia bot about potential collaboration on this.
Next steps: write up the product requirements for this work and work with Max to split this into Phabricator tasks.
January 4, 2018
When a file is up for deletion on commons, this bot should alert the talk page of affected articles. This could possibly warn the talk pages of WikiProjects, but this is out of scope for the initial version of this bot. Version 1.0 of this bot will post a new section on the talk page of an article that uses the image if that image is nominated for deletion on Commons. If there is good response, we could think about extending the bot to notify pertinent WikiProjects.
We will need to consider how this bot will operate on wikis that use Flow (but will ignore LiquidThreads.)
This is just for deletion nomination, not other actions. 
Translation should happen through translatewiki.
December 13, 2017
The team will start investigating this project early in 2018. If you've got suggestions or questions, please write your thoughts on the talk page!
Important links
Requirements
Messages to post
For regular deletion:
== A Commons file used on this article has been nominated for deletion == The file [[commons:File:Foobar.jpg|Foobar.jpg]] on Wikimedia Commons has been nominated for deletion on 1 January 2000. View and participate in the deletion discussion at the [[commons:Commons:Deletion requests/File:Foobar.jpg|nomination page]]. — ~~~~

For speedy deletion:
== A Commons file used on this article has been nominated for speedy deletion == The file [[commons:File:Foobar.jpg|Foobar.jpg]] on Wikimedia Commons has been nominated for speedy deletion on 1 January 2000. View the deletion reason at the [[commons:File:Foobar.jpg|Commons file page]]. — ~~~~
Technical analysis
Detecting files nominated for deletion
Proposed localization
Two principal possibilities: leaving templated messages or free text.
Messages
can be localized on TWN, the bot will leave wikitext afterwards.
Pros:
Templates
the bot leaves parameterized templates as messages.
Pros:
Cons:
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)
See also
Last edited on 14 July 2021, at 07:45
Meta
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
Desktop
HomeRandomLog inSettingsDonateAbout MetaDisclaimers
WatchEdit