Wikipedia:Bots/Requests for approval/Addbot 26
- 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 Withdrawn by operator.
Operator: Addshore (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 17:41, Sunday January 6, 2013 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): PHP
Source code available: Not yet but it will be
Function overview: Maintaining Wikipedia:AutoWikiBrowser/User_talk_templates
Links to relevant discussions (where appropriate):
Edit period(s): Run after every edit of Wikipedia:AutoWikiBrowser/User_talk_templates (Looking at the history of the page this could be once every two weeks or sometimes a few times a day.
Estimated number of pages affected: 1 Wikipedia:AutoWikiBrowser/User_talk_templates
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): Yes
Function details:
An edit of the page Wikipedia:AutoWikiBrowser/User_talk_templates will be used as a trigger. The bot will:
- Get the current list from the page
- Add templates on Category:Wikipedia_templates_to_be_automatically_substituted to the list (as well as other categories of templates that should be substed (i.e. welcome templates)
- Get redirects to any of these templates (runs at most once in 24 hours)
- Sort the list
- Remove any red link templates from the list (runs at most once in 24 hours)
- Post the new list
I have run the code previously allowing it to edit my sandbox. See the version here I then posted this over to the AWB page as can be seen here
Discussion
[edit]Please also see another run which I have just completed here adding more templates to the list. ·Add§hore· Talk To Me! 21:09, 6 January 2013 (UTC)[reply]
- I'm assuming its running and reading from the actual page and outputting to your sandbox. I see no issues here.—cyberpower OfflineHappy 2013 23:47, 6 January 2013 (UTC)[reply]
- Given that the answer to "number of pages affected" is Wikipedia:AutoWikiBrowser/User talk templates and the bot is fully automatic, I'm guessing that the request is for permission to move it out of the sandbox and have the bot make the updates itself.
- Addshore, what is the reasoning for having an edit to Wikipedia:AutoWikiBrowser/User talk templates trigger the bot? Surely most of the changes (e.g. files becoming red linked, templates being added to Category:Wikipedia templates to be automatically substituted) and independent of the actual page itself being edited? Could you be more specific about what categories you mean by "other categories of templates that should be substed"? Do you mean just welcome templates, or others as well? - Kingpin13 (talk) 16:49, 7 January 2013 (UTC)[reply]
- Yes the bot is currently running and editing to my user space so this is simply permission to allow it to edit the AWB page. Current categories being used are Category:Wikipedia templates to be automatically substituted and Category:Welcome templates. The e.t.c is just to later add any more categories I find that have similar templates that should be substituted. If anyone knows of any more currently then please note them down here and I will add them to the categories that the bot checks.
- Rather than have the bot check on the edit of the page (which was simply for some reason where my first idea for the bot came from) perhaps a better idea would be to check the page on a weekly basis for red links and to add templates from categories and redirects to said templates. As well as this the sort could be added in every time the page is edited (as this only needs a couple of requests) and will keep things tidy. ·Add§hore· Talk To Me! 17:51, 7 January 2013 (UTC)[reply]
- Okay, yeah, I think a weekly run or something similar would be better. In similar cases, I've found that quite a lot of users manually edit lists like these to remove red-links etc., so checking immediately after an edit like that would not be the best time. If you want to run certain parts which make sense after an edit, such as the sort routine, I don't see any problem with that.
- I noticed that the bot added Template:Subst to the list at one point, which was then removed as it's not meant to be substed (despite being in the category). Have you now put a catch in, where the bot skips that template? It would be nice to have an on-wiki page in the bot's userspace, where users can list special exceptions like that and have the bot ignore them. - Kingpin13 (talk) 18:12, 8 January 2013 (UTC)[reply]
- Template:Subst has never been added by the bot. It has been in the list since the template originally redirected to Uw-Subst. The redirect got removed to make room for a new template here.
- It could be a good idea to either have a page in the bot user space OR a sub page of the AWB page containing a list of templates that should never be added though. Although given the sources the bot used the templates should never be added anyway. ·Add§hore· Talk To Me! 18:32, 8 January 2013 (UTC)[reply]
- I just completed another run which shows a wee problem. Before due to the nature of the sources there has been no need to eliminate pages from any particular namespace. This run included the category Category:User_warning_templates which says all templates should again be substituted. Adding another 700ish templates to the list. Should this category also be included in the bot (naturally after the bug is removed) ·Add§hore· Talk To Me! 20:56, 8 January 2013 (UTC)[reply]
- A reply to myself here, Looking at some of the templates that are in the category this one should not be included. Bugfix in progress. ·Add§hore· Talk To Me! 20:59, 8 January 2013 (UTC)[reply]
- I would say this task deserves a trial and recommend letting it run for 20 edits.—cyberpower ChatOnline 00:18, 14 January 2013 (UTC)[reply]
- Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. MBisanz talk 01:51, 14 January 2013 (UTC)[reply]
- Edit 1 [1] ·Add§hore· Talk To Me! 22:17, 16 January 2013 (UTC)[reply]
- Edit 2 [2] ·Add§hore· Talk To Me! 22:09, 18 January 2013 (UTC)[reply]
- Edit 3 [3] and Edit 4 [4]. Small problem with the description in that last edit but should be easily fixed. ·Add§hore· Talk To Me! 22:17, 23 January 2013 (UTC)[reply]
- 5 [5] ·Add§hore· Talk To Me! 22:13, 25 January 2013 (UTC)[reply]
- I'm not so sure about these removals, could you please check on them? Hazard-SJ ✈ 01:02, 1 February 2013 (UTC)[reply]
- It would appear that all of those templates should still be in the list, will check over the code, as the check for a red link is to load the page I am guessing these are failed loads on the api. I will add some code and run again and see what happens. ·Add§hore· Talk To Me! 02:32, 1 February 2013 (UTC)[reply]
- The API seems to have been failing a lot lately. I think this issue should be raised to the developers.—cyberpower ChatOnline 02:40, 1 February 2013 (UTC)[reply]
- A few more diffs. [6][7][8] ·Add§hore· Talk To Me! 13:48, 10 February 2013 (UTC)[reply]
- All seems to be going as expected [9] ·Add§hore· Talk To Me! 13:33, 14 February 2013 (UTC)[reply]
- It would appear that all of those templates should still be in the list, will check over the code, as the check for a red link is to load the page I am guessing these are failed loads on the api. I will add some code and run again and see what happens. ·Add§hore· Talk To Me! 02:32, 1 February 2013 (UTC)[reply]
- I'm not so sure about these removals, could you please check on them? Hazard-SJ ✈ 01:02, 1 February 2013 (UTC)[reply]
A user has requested the attention of the operator. Once the operator has seen this message and replied, please deactivate this tag. (user notified) What's the status of this task? It seemed to be going alright on 14 Feb before later wiping out most of the page. Maxim(talk) 16:25, 23 February 2013 (UTC)[reply]
- Withdrawn by operator. I will just run the script manually every now and again posting with my user. ·Add§hore· Talk To Me! 02:07, 24 February 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.