Wikipedia:Bots/Requests for approval/Ryan Vesey Bot 2
- 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: Ryan Vesey (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 05:35, Friday June 22, 2012 (UTC)
Automatic, Supervised, or Manual: Semi-Automatic but supervised. I will check the first few edits to make sure they are satisfactory then switch to bot mode
Programming language(s): AutoWikiBrowser
Source code available: Runs on AWB
Function overview: Adding Baseball Umpires to Wikipedia:WikiProject Umpires (actually a task force, but that link is easier to use/remember)
Links to relevant discussions (where appropriate): Wikipedia talk:WikiProject Baseball/Umpires task force#Consensus to add this task force to all umpire related articles (Approval given by Task Force Creator)
Edit period(s): One time run, possibly 2 or more separate runs depending on how long this takes
Estimated number of pages affected: 390 or so
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details: The bot will use AWB's find and replace function to find {{WikiProject Baseball}} and other variations of it and replace it with {{WikiProject Baseball|umpires=yes|umpires-importance=}}<nowiki>. I have a list of variations created that will modify something like <nowiki>{{WikiProject Baseball|class=start|importance=top}} to {{WikiProject Baseball|class=start|importance=top|umpires=yes|umpires-importance=}}. An example of this edit can be seen here. After running through those, the bot will append {{WikiProject Baseball|class= |importance= |umpires=yes|umpires-importance=}} to the top of every article that doesn't currently contain the WikiProject Baseball template. Any remaining will be modified semi-manually without the assistance fo the bot. The pages included are from the categories Category:Baseball umpires, Category:Major League Baseball umpires, Category:Minor league baseball umpires, Category:19th-century baseball umpires, Category:American baseball umpire stubs. Only the talk pages of the articles will be affected, and changes will only occur to the template I have specified.
Discussion
[edit]Just to check, will it skip any templates it finds that already have 'umpires' or 'umpires-importance' variables? --slakr\ talk / 19:55, 22 June 2012 (UTC)[reply]
- Few exist but yes. It is actually currently designed to do a find and replace. This required me to make a long list of possible transclusions of the template. It will skip any transclusions of the template that weren't on that find list. There will certainly be ones that aren't edited after that, I will finish by going through the skipped edits and creating two lists. One will be a list of templates that don't contain {{WikiProject Baseball The other will be a list of templates that contain WikiProject Baseball but don't contain
|umpires-importance=
. The later group will be operated semi-manually with each edit checked by me. This will generally apply to pages that are part of another task force of wikiProject Baseball. Ryan Vesey Review me! 20:03, 22 June 2012 (UTC)[reply]- Sweet; well let's Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. as a sanity check, and it's obviously uncontroversial, so I see no problem approving it afterwards (as long as everything goes according to plan). --slakr\ talk / 23:26, 22 June 2012 (UTC)[reply]
- Should I do those semi-manually or are you going to give it the bot flag? Ryan Vesey Review me! 23:40, 22 June 2012 (UTC)[reply]
- Bots under trial don't run flagged. --slakr\ talk / 23:49, 22 June 2012 (UTC)[reply]
- Okay thank you, can you add the bot to Wikipedia:AutoWikiBrowser/CheckPage#Bots? Ryan Vesey Review me! 23:53, 22 June 2012 (UTC)[reply]
- Done. — The Earwig (talk) 01:10, 23 June 2012 (UTC)[reply]
- Okay thank you, can you add the bot to Wikipedia:AutoWikiBrowser/CheckPage#Bots? Ryan Vesey Review me! 23:53, 22 June 2012 (UTC)[reply]
- Bots under trial don't run flagged. --slakr\ talk / 23:49, 22 June 2012 (UTC)[reply]
- Should I do those semi-manually or are you going to give it the bot flag? Ryan Vesey Review me! 23:40, 22 June 2012 (UTC)[reply]
- Sweet; well let's Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. as a sanity check, and it's obviously uncontroversial, so I see no problem approving it afterwards (as long as everything goes according to plan). --slakr\ talk / 23:26, 22 June 2012 (UTC)[reply]
Trial complete. No problems on my end; although, using regex in the find replace is causing AWB to freeze so I had to do it without that, any advice? Ryan Vesey Review me! 01:29, 23 June 2012 (UTC)[reply]
Approved. Looks good. — The Earwig (talk) 07:10, 23 June 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.