Wikipedia:Bots/Requests for approval/MGA73bot 5


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Symbol keep vote.svgSymbol support vote.svg Speedily Approved.

MGA73bot 5
Operator: MGA73

Automatic or Manually assisted: Manually Assisted

Programming language(s): Python - pywikipedia (replace.py)

Source code available: Standard pywikipedia (replace.py)

Function overview: Add a "|no Commons=yes" to PD-self and similar on files with a Keep local (and other templates that indicate that file should not be moved to Commons and deleted locally).

Edit period(s): One run. Perhaps an additional run from time to time.

Estimated number of pages affected: less than 400 first time. Perhaps 20 files next times.

Exclusion compliant (Y/N): ? Should not be relevant

Already has a bot flag (Y/N): Yes

Function details: Per discussion about separating files that could be moved to Commons and deleted locally from files that can not be moved and deleted the solution to fix the PD-self template was found.

If a "|no Commons=yes" is added to the template then the file is moved from "Category:User-created public domain images from " to "Category:User-created public domain images (no Commons) from ".

That make it possible to work on the files in Category:User-created public domain images and empty the sub categories.

I made a few edits like so you can see what happens.

Hope it can be a speedy approval. --MGA73 (talk) 19:24, 2 March 2012 (UTC)
 * – What regular expression are you using? (Out of curiosity.) I don't see anything preventing speedy approval after seeing a few "real world" edits. &mdash; madman 20:47, 2 March 2012 (UTC)


 * . I used "\{\{PD-sel([^\}]*?)\}\}" "" and checked all edits on screen. Once they are done I'll do a query to see if any is missing. --MGA73 (talk) 21:13, 3 March 2012 (UTC)
 * &mdash; madman 22:37, 3 March 2012 (UTC)
 * The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.