New to bots on Wikipedia? Read these primers!
Operator: Philroc (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 20:32, Wednesday, April 15, 2020 (UTC)
Function overview: Remove ((ShadowsCommons)) from local files transcluding it whose corresponding Commons files no longer exist
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python
Source code available: Here
Links to relevant discussions (where appropriate): Wikipedia:Bot requests#Follow up task for files tagged Shadows Commons by GreenC bot job 10
Edit period(s): Daily
Estimated number of pages affected: <20 per day
Namespace(s): Files
Exclusion compliant (Yes/No): Yes (handled automatically by Pywikibot)
Function details: The bot will scan through the files in Category:Wikipedia files that shadow a file on Wikimedia Commons (which pages using ShadowsCommons are automatically added to) and determine if a page with the same title as each file exists on Commons; if one doesn't, a regex will be used to detect and remove ShadowsCommons from the file's wikitext.