Wikipedia:Bots/Requests for approval/AnomieBOT 71
- 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: Anomie (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 01:55, Thursday October 10, 2013 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Perl
Source code available: User:AnomieBOT/source/tasks/TemplateTalkRedirectCreator.pm
Function overview: Create redirects for talk pages of certain pages, such as template /doc subpages, where discussion should be centralized on a corresponding "main" talk page.
Links to relevant discussions (where appropriate): Wikipedia:Bots/Requests_for_approval/BlakesBot
Edit period(s): Periodic
Estimated number of pages affected: There are currently 26690 pages meeting criteria #1 and #2 (some of these may be excluded by #3 or #4). After that, it depends on the rate of creation of new pages resulting in matches for the bot's criteria.
Exclusion compliant (Y/N): N/A, as a nonexistent page cannot have an exclusion template (but yes)
Already has a bot flag (Y/N): Yes
Function details: The bot will query the replicated database on Tool Labs and the API to find pages matching certain patterns where the following conditions hold:
- The subjectspace page exists (e.g. Template:Example/doc)
- The talk page does not exist (e.g. Template talk:Example/doc)
- The corresponding "main" talk page exists (e.g. Template talk:Example)
- If the corresponding "main" talk page is a redirect, its target also exists
When these conditions are satisfied, the talk page in #2 will be created as a redirect to the corresponding "main" talk page (or to its target if that page is a redirect).
Discussion
editNote this task was previously approved for trial for BlakesBot, but the operator seems to have disappeared since August. It was then approved for trial for Gabrielchihonglee-Bot, but after running into issues that request was withdrawn.
The current list of patterns and the corresponding "main" talk pages is:
- Template talk:Example/doc → Template talk:Example
- Template talk:Example/sandbox → Template talk:Example
- Template talk:Example/testcases → Template talk:Example
- Template talk:Example/TemplateData → Template talk:Example
- Module talk:Example/doc → Module talk:Example
I've worded the task to be open to additions to this list. At the moment the redirects will be created "bare"; if someone wants to create an appropriate redirect template I'd be happy to start using it. Anomie⚔ 01:55, 10 October 2013 (UTC)[reply]
- Technical Code Review: Logic is straight forward and makes sense. Technically it does everything it's supposed to. Hasteur (talk) 18:57, 10 October 2013 (UTC)[reply]
{{BAGAssistanceNeeded}} Well? Anomie⚔ 21:09, 20 October 2013 (UTC)[reply]
Approved for trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. — HELLKNOWZ ▎TALK 18:58, 26 October 2013 (UTC)[reply]
- Trial complete. Edits are at [1]. Note how the bot avoided a double redirect when creating Template talk:-importance/sandbox. You may also notice that around edit #65 it suddenly has a run of pages with en-dashes; I realized that the bot was skipping these because the data from the database was coming in flagged as binary rather than text and so the bot was finding that the resulting mojibaked titles didn't exist. Anomie⚔ 22:48, 26 October 2013 (UTC)[reply]
- So, the trial was a success? Josh Parris 10:53, 5 November 2013 (UTC)[reply]
- {{BAGAssistanceNeeded}} Anomie⚔ 20:23, 5 November 2013 (UTC)[reply]
- A simple yes or no will do. Josh Parris 21:17, 5 November 2013 (UTC)[reply]
- {{BAGAssistanceNeeded}} Anomie⚔ 20:23, 5 November 2013 (UTC)[reply]
- So, the trial was a success? Josh Parris 10:53, 5 November 2013 (UTC)[reply]
Approved. Don't see any double redirects or misnames, random sample looks good. — HELLKNOWZ ▎TALK 22:18, 5 November 2013 (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.