Wikipedia:Bots/Requests for approval/Mobius Bot
- 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 Approved.
Operator: Mobius Clock (talk · contribs)
Automatic or Manually assisted: Automatic
Programming language(s): C# using dotnetwikibot
Source code available: here's the important bit
Function overview: Renaming small set of articles as set out in this BOTREQ.
Links to relevant discussions (where appropriate): As listed on the BOTREQ: Wikipedia talk:WikiProject Football/Archive 33#Formal petition to change the naming conventions and Wikipedia talk:WikiProject Football/Season article task force#Discussion reinitiated.
Edit period(s): One time run
Estimated number of pages affected: ~60
Exclusion compliant (Y/N): Not necessary given that there is consensus for this task, and a very small set of pages will be edited. Compliance can be added if desired however.
Already has a bot flag (Y/N): No
Function details: Pursuant to this BOTREQ, the bot will take all pages in Category:Primera_División_Argentina beginning with 'Primera División Argentina', and rename said pages from the form Primera División Argentina XXXX to the form XXXX Argentine Primera División.
Discussion
[edit]- Approved for trial (5 pages). Please provide a link to the relevant contributions and/or diffs when the trial is complete.. I've done similar tasks to standardize season articles to YYYY xxx format - it has consensus: I was actually going to pick up this task =). –xenotalk 13:20, 3 May 2010 (UTC)[reply]
- This is really strange. When I run the code, it reports that the page has been renamed successfully, but nothing actually happens on wiki. I've tested in my own userspace with the special characters involved, no problem; and I brought the edit summary well below 255 characters, so that's no problem. I'll continue to debug, but if anyone can see something wrong with the code, I'd appreciate it (it's probably some stupid mistake). EDIT: I also messed around with raw strings, that didn't change anything either. - Mobius Clock 19:12, 3 May 2010 (UTC)[reply]
- Have you considered using m:movepages.py? –xenotalk 19:14, 3 May 2010 (UTC)[reply]
- I had thought about it, but my Python is a bit rusty; I'm much more familiar with C#, so I thought I'd use what I know best. Thanks for the suggestion, though! In any case I fixed the weirdness by constructing the new title and storing it as a separate string, then passing that to Page.RenameTo(). Five pages done, see here. Trial complete. - Mobius Clock 19:23, 3 May 2010 (UTC)[reply]
- Approved. Test moves look fine; fairly simple task; wide consensus exists to standardize season articles as such. –xenotalk 19:48, 3 May 2010 (UTC)[reply]
- I had thought about it, but my Python is a bit rusty; I'm much more familiar with C#, so I thought I'd use what I know best. Thanks for the suggestion, though! In any case I fixed the weirdness by constructing the new title and storing it as a separate string, then passing that to Page.RenameTo(). Five pages done, see here. Trial complete. - Mobius Clock 19:23, 3 May 2010 (UTC)[reply]
- Have you considered using m:movepages.py? –xenotalk 19:14, 3 May 2010 (UTC)[reply]
- This is really strange. When I run the code, it reports that the page has been renamed successfully, but nothing actually happens on wiki. I've tested in my own userspace with the special characters involved, no problem; and I brought the edit summary well below 255 characters, so that's no problem. I'll continue to debug, but if anyone can see something wrong with the code, I'd appreciate it (it's probably some stupid mistake). EDIT: I also messed around with raw strings, that didn't change anything either. - Mobius Clock 19:12, 3 May 2010 (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.