Wikipedia:Bots/Requests for approval/Kumi-Taskbot 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 Symbol no support vote.svg Revoked.


 * 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 Symbol keep vote.svg Approved

Kumi-Taskbot 5
Operator:

Time filed: 20:22, Tuesday January 10, 2012 (UTC)

Automatic or Manual: Automatic

Programming language(s): AWB, Regex

Source code available: Yes,basically as follows

Function overview: Add inline,title to Coord for articles in this category

Links to relevant discussions (where appropriate): Mostly Here and here. Per the first discussion 90% of the articles with the template have already been done manually and this is to save them from having to do the last 11, 000 by hand.

Edit period(s): Mostly one time run but may be needed again periodically to clean out container category

Estimated number of pages affected: About 11, 000 currently

Exclusion compliant (Y/N): Y

Already has a bot flag (Y/N): Y

Function details: Thousands of stubs in Category:Wikipedia articles incorporating text from the USGS Geographic Names Information System need to have their coordinate display parameter set to, as in. Among other things, this will cause them to be included in Google Maps' Wikipedia layer.

The basic code is as follows: Find: Replace with:    If doesn't contain: (.*?)}}

Additionally, based on the discussion below I will cleanup the redirects as I am doing this task. For the articles I cannot update by bot I will add them to the category Category:Articles with multiple coordinates but no title coordinates.--Kumioko (talk) 20:24, 11 January 2012 (UTC)

Discussion
If the article already has title coordinates (for instance from an infobox) could this possibly result in a conflict? —Stepheng3 (talk) 23:24, 10 January 2012 (UTC) Also, note that Coor dm is a redirect to Coord. Have you considered expanding your scope and/or replacing the former with the latter? —Stepheng3 (talk) 23:29, 10 January 2012 (UTC)
 * Good catch; yes, Coord should be used. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 23:44, 10 January 2012 (UTC)
 * Thanks for letting me know about the redirect. I should have noticed that. There are a number of possible redirects for the Coord template, Heres the list: Coor, Coor at d, Coor at dm, Coor at dms, Coor dec, Coor dm, Coor dms, Coor title d, Coor title dm, Coor title dms, CoorHeader, Coords, Geocoordinate, Location, Location dec. I can easily replace those templates as I go through them making the change. If someone needs me to post the code for it here its no problem just let me know. I'm not sure about the Infobox question. --Kumioko (talk) 03:25, 11 January 2012 (UTC)
 * What would the bot do to Sverdrup Mountains, for instance? —Stepheng3 (talk) 07:28, 11 January 2012 (UTC)
 * It could skip that, on the grounds that there is already a coordinates template with a "title" parameter. (I've manually replaced the Coor dm templates). Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 12:31, 11 January 2012 (UTC)
 * First, it can handle it however it should I just need to know. As it is right now, if there is one instance of Coord on the article with the inline title parameter then it would skip the whole page. If there wasn't any then it would add it for all of them. Since the example you showed me has the coord template for several locations it poses a question of how you want me to handle articles with multiple coord templates. --Kumioko (talk) 13:30, 11 January 2012 (UTC)
 * If there are multiple coordinate templates, none with a title parameter, either skip the article, or, if possible, please add a tracking category or add it to list for manual attention. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 14:20, 11 January 2012 (UTC)
 * Ok so what I will do is scan through the articles that need it and if Coord appears more than once I will add a category. Then I will go back and add the Title inline parameter to the rest. What category do you want me to use? --Kumioko (talk) 14:43, 11 January 2012 (UTC)
 * They only need to be added to the category if none of them have a title parameter. Shall we say Category:Articles with multiple coordinates but no title coordinates? Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 17:03, 11 January 2012 (UTC)
 * I added the coord template and its redirects to the AWB Template redirects list. That will help clean those up as people make other edits in addition to this bot. --Kumioko (talk) 14:44, 11 January 2012 (UTC)
 * Cool, thanks. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 17:03, 11 January 2012 (UTC)
 * So where do you want the Category to go? Talk page? --Kumioko (talk) 17:52, 11 January 2012 (UTC)
 * On the article; as a hidden category. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 19:59, 11 January 2012 (UTC)
 * OK i'll look into how to do that. --Kumioko (talk) 20:10, 11 January 2012 (UTC)
 * Figured it out. I created the category. All I need to do now is find an article that meets the criteria and mark it to make sure its working. --Kumioko (talk) 20:21, 11 January 2012 (UTC)

BAG assistance needed

Trial
-- Chris 17:06, 20 January 2012 (UTC)
 * BotTrialComplete --Kumioko (talk) 19:58, 21 January 2012 (UTC)

BAGAssistanceNeeded - Its only been three days so its not neglected just trying to keep things moving. --Kumioko (talk) 17:48, 24 January 2012 (UTC)

In the future, please provide a link to the edits performed under the trial, like so: http://en.wikipedia.org/w/index.php?title=Special:Contributions&offset=20120121200000&limit=239&contribs=user&target=Kumi-Taskbot


 * What's with this edit http://en.wikipedia.org/w/index.php?title=Arena_Glacier&diff=prev&oldid=472484206 ?
 * Do you think this was a reasonable edit http://en.wikipedia.org/w/index.php?title=Asgard_Range&diff=prev&oldid=472484863 ?
 * What have you done to prevent this from happening again http://en.wikipedia.org/w/index.php?title=Alpha_Island&action=historysubmit&diff=472482802&oldid=472482477 ?

Please provide the regexs and other AWB settings that you're using for this task. Josh Parris 02:13, 26 January 2012 (UTC)
 * On the first question, I expanded the skip if code to include that.
 * On the second question, yes, is there some reason its not a reasonable edit?
 * On the third question, most is provided in the function details above, I do have the General settings on but all the other functionality like typo fixing, tagger are off. Additionally I am not using any custom modules or find and replace beyond whats in the coding provided above. I do have a short regex statement in the skip if filter to exclude any coordinate entries that contain the display parameter as follows: . I do also have one find and replace to convert the redirects of Coord to Coord but its set as minor so it only does it if the article actually has a major edit.

I hope that helps clarify but please let me know if you have any more questions. --Kumioko (talk) 02:44, 26 January 2012 (UTC)


 * I've now read the doco for coord, and what I thought were erroneous parameters were in fact legitimate.
 * Given you've got a fix in place for the other problems, let's see how that works out.
 * Please run another Josh Parris 07:05, 27 January 2012 (UTC)
 * Oh, and if you can arrange it, I'd like to see the bot's work with Category:Articles with multiple coordinates but no title coordinates Josh Parris 07:08, 27 January 2012 (UTC)
 * Thanks, I'll run those tonight or tomorrow. On the category I'll try but after thinking about it some more it might be better for the bot to just skip the article if multiple Coord are there needing attention rather than add a maintenance category. Once I run through the list it should be short enough that I can manually go back through and do the multiples in a manual/semi automated fashion. --Kumioko (talk) 21:22, 27 January 2012 (UTC)
 * Ok I think I did about 250. The bot is still hitting one every once in a while that has more than one coord on it so I just watched it and fixed it when it happens. Of the 250 it changed 2 and I changed them immediately later. If you look at the last 250 edits of the bot youll see the edits. --Kumioko (talk) 01:19, 29 January 2012 (UTC)
 * Is there anyway to stop it changing multiple coords, and how much of a problem is it? (i.e. is it a mostly superficial thing, or does it actually break things) -- Chris 12:01, 6 February 2012 (UTC)
 * It does catch most but not all, of the 250 there were 3 I think. I just ran it automatic supervised and watched so when it hit one it didn't change I stopped the bot, reverted the change and then restarted the bot and continued on. --Kumioko (talk) 12:08, 6 February 2012 (UTC)

Please try to watch it to fix the 100 or so potential instances of the above issue out of the 11,000 or so total.  MBisanz  talk 15:28, 6 February 2012 (UTC)


 * 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.

Per consensus at. &mdash; madman 15:21, 18 February 2012 (UTC)
 * 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.