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
Speedily Approved.
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 <date>" to "Category:User-created public domain images (no Commons) from <date>".
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 this so you can see what happens.
Hope it can be a speedy approval. --MGA73 (talk) 19:24, 2 March 2012 (UTC)[reply]
Approved for trial (20 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. – What regular expression are you using? (Out of curiosity.) I don't see anything preventing speedy approval after seeing a few "real world" edits. — madman 20:47, 2 March 2012 (UTC)[reply]
Trial complete.. I used "\{\{PD-sel([^\}]*?)\}\}" "{{PD-sel\1|no Commons=yes}}" 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)[reply]
Speedily Approved. — madman 22:37, 3 March 2012 (UTC)[reply]
- 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.