Page semi-protected

Wikipedia:Bots/Requests for approval

From Wikipedia, the free encyclopedia
Jump to: navigation, search

If you want to run a bot on the English Wikipedia, you must first get it approved. To do so, follow the instructions below to add a request. If you are not familiar with programming it may be a good idea to ask someone else to run a bot for you, rather than running your own.

 Instructions for bot operators

Current requests for approval

edit WP:BRFA/JJMC89 bot_7

JJMC89 bot 7

Operator: JJMC89 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 22:40, Monday, September 5, 2016 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): C# (Custom AWB module)

Source code available: Partial: AWB

Function overview: Migrate infobox coordinates parameters to {{Coord}}

Links to relevant discussions (where appropriate):

Edit period(s): One run per infobox

Estimated number of pages affected: Up to the number of articles transcluding each infobox (6–10 edits/min)

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): Yes

Function details: Migrate infobox coordinates parameters to {{Coord}} using a template wrapper substitution.

Discussion

{{Infobox park}} will be used for the bot trial with {{subst:Infobox coord/sandbox}} as the wrapper to convert the coordinates parameters to |coords={{Coord}}.

{{Infobox park}} configuration #1
private static readonly string targetTemplate = "Infobox park";

private static readonly Regex regexTargetTemplate = Tools.NestedTemplateRegex(new List<string>("Infobox park,Infobox Park,Infobox Nature reserve,Infobox garden,Infobox desert".Split(',')));

private static readonly Dictionary<string, string> parametersDict = new Dictionary<string, string>
{
	{ "lat_d", "lat_d" },
	{ "lat_m", "lat_m" },
	{ "lat_s", "lat_s" },
	{ "lat_NS", "lat_NS" },
	{ "long_d", "long_d" },
	{ "long_m", "long_m" },
	{ "long_s", "long_s" },
	{ "long_EW", "long_EW" },
	{ "coords_type", "type" },
	{ "region", "region" },
	{ "dim", "dim" },
	{ "scale", "scale" },
	{ "source", "source" },
	{ "display", "display" },
	{ "format", "format" }
};

private static readonly string replacementParameter = "coords";

private static readonly string initialReplacementTemplate = "subst:Infobox coord/sandbox";

private static readonly string editSummary = "Migrate {{" + targetTemplate + "}} coordinates parameters to " + replacementParameter + "={{Coord}}, see [[Help:Coordinates in infoboxes]]";
— JJMC89(T·C) 22:40, 5 September 2016 (UTC)
Minor comment: Should {{Coord}} in the edit summary be escaped or written as {{tl|Coord}}? Have you tested this script manually to see if the edit summary parses correctly? I trust that you'll make it work. – Jonesey95 (talk) 03:51, 6 September 2016 (UTC)
@Jonesey95: The edit summary will appear as Migrate {{Infobox park}} coordinates parameters to coords={{Coord}}, see Help:Coordinates in infoboxes. — JJMC89(T·C) 04:23, 6 September 2016 (UTC)
@JJMC89: Could the bot also do another run after the first one to remove any remaining instances of the parameters (for all transclusions, not just those on pages in the tracking category)? Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 10:28, 6 September 2016 (UTC)
@Jc86035: The current code supports doing this, so subject to BAG approval, it can. — JJMC89(T·C) 15:54, 6 September 2016 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────@JJMC89: Parameters for Infobox school below. Can the AWB module handle aliases?

{{Infobox school}} parameters
{{Infobox school}} |coordinates={{subst:Geobox coor/sandbox}}
latitude or latd 1
latm 2
lats 3
latNS 4
longitude or longd 5
longm 6
longs 7
longEW 8
iso_region region
coordinates_display title
dms dms

Jc86035 (talk • contribs) Use {{re|Jc86035}} to reply to me 16:19, 6 September 2016 (UTC)

@Jc86035: Currently it will handle aliases where only one has a value. To handle cases where multiple have a value, I will need to update the code. — JJMC89(T·C) 17:31, 6 September 2016 (UTC)
@Jc86035: The code has been revised to fully handle parameter aliases. Aliases must be in order: {{{latitude|{{{latd|}}}}}}"latitude,latd".
{{Infobox park}} configuration #2
private static readonly string targetTemplate = "Infobox park";

private static readonly Regex regexTargetTemplate = Tools.NestedTemplateRegex("Infobox park,Infobox Park,Infobox Nature reserve,Infobox garden,Infobox desert".Split(',').ToList());

private static readonly Dictionary<string, List<string>> parametersDict = new Dictionary<string, List<string>>
{
	{ "lat_d", "lat_d".Split(',').ToList() },
	{ "lat_m", "lat_m".Split(',').ToList() },
	{ "lat_s", "lat_s".Split(',').ToList() },
	{ "lat_NS", "lat_NS".Split(',').ToList() },
	{ "long_d", "long_d".Split(',').ToList() },
	{ "long_m", "long_m".Split(',').ToList() },
	{ "long_s", "long_s".Split(',').ToList() },
	{ "long_EW", "long_EW".Split(',').ToList() },
	{ "coords_type", "type".Split(',').ToList() },
	{ "region", "region".Split(',').ToList() },
	{ "dim", "dim".Split(',').ToList() },
	{ "scale", "scale".Split(',').ToList() },
	{ "source", "source".Split(',').ToList() },
	{ "display", "display".Split(',').ToList() },
	{ "format", "format".Split(',').ToList() }
};

private static readonly string replacementParameter = "coords";

private static readonly string initialReplacementTemplate = "subst:Infobox coord/sandbox";

private static readonly string editSummary = "Migrate {{" + targetTemplate + "}} coordinates parameters to " + replacementParameter + "={{Coord}}, see [[Help:Coordinates in infoboxes]]";
{{Infobox school}} configuration
private static readonly string targetTemplate = "Infobox school";

private static readonly Regex regexTargetTemplate = Tools.NestedTemplateRegex("Infobox school,School,Infobox HighSchool,Infobox OtherEducation,Infobox Private School,Infobox School2,Infobox high school,Infobox middle school,Infobox education in Canada,Infobox private school,School infobox,Infobox New Zealand school,Infobox Public School,Infobox secondary school,Infobox School3,Infobox US school,Infobox School UK,Infobox Education in the United States,Infobox boarding school,Infobox Malaysia School,Infobox Malaysia school,Infobox Secondary School,Infobox K-12 School,Infobox scottish primary, secondary and nursery school,Infobox scottish primary school,Infobox High School,High school,Infobox School IN,Infobox Education in Canada,Infobox Secondary school,Infobox School,Infobox education in the United States,Infobox NZ school,Infobox Hochschule,Infobox cadet college,Infobox yeshiva,Infobox education in canada".Split(',').ToList());

private static readonly Dictionary<string, List<string>> parametersDict = new Dictionary<string, List<string>>
{
	{ "1", "latitude,latd".Split(',').ToList() },
	{ "2", "latm".Split(',').ToList() },
	{ "3", "lats".Split(',').ToList() },
	{ "4", "latNS".Split(',').ToList() },
	{ "5", "longitude,longd".Split(',').ToList() },
	{ "6", "longm".Split(',').ToList() },
	{ "7", "longs".Split(',').ToList() },
	{ "8", "longEW".Split(',').ToList() },
	{ "title", "coordinates_display".Split(',').ToList() },
	{ "dms", "dms".Split(',').ToList() }, // Geobox coor: format
	{ "region", "iso_region".Split(',').ToList() }
};

private static readonly string replacementParameter = "coordinates";

private static readonly string initialReplacementTemplate = "subst:Geobox coor/sandbox";

private static readonly string editSummary = "Migrate {{" + targetTemplate + "}} coordinates parameters to " + replacementParameter + "={{Coord}}, see [[Help:Coordinates in infoboxes]]";
— JJMC89(T·C) 05:34, 7 September 2016 (UTC)

@JJMC89: Tried making one for {{Infobox station}}. Does the process normally go this long without any input from approvals group members?

{{Infobox station}} configuration
private static readonly string targetTemplate = "Infobox station";

private static readonly Regex regexTargetTemplate = Tools.NestedTemplateRegex("Infobox station,Infobox Austria station,Infobox China station,Infobox English bus stations,Infobox GB bus station,Infobox HK Bus Station,Infobox HK Bus station,Infobox Ireland disused station,Infobox Ireland station,Infobox Italy station,Infobox Japan station,Infobox MTR,Infobox MTR station,Infobox NI station,Infobox NS-station,Infobox Oslo Tramway station,Infobox Railway Station,Infobox Slovakia station,Infobox Slovenia station,Infobox Station,Infobox Switzerland station,Infobox Taiwan station,Infobox bus station,Infobox china station,Infobox japan station,London Tram stations,MTR Infobox,MTR infobox,TP Train Station".Split(',').ToList());

private static readonly Dictionary<string, List<string>> parametersDict = new Dictionary<string, List<string>>
{
	{ "1", "latitude,latd".Split(',').ToList() },
	{ "2", "latm".Split(',').ToList() },
	{ "3", "lats".Split(',').ToList() },
	{ "4", "latNS".Split(',').ToList() },
	{ "5", "longitude,longd".Split(',').ToList() },
	{ "6", "longm".Split(',').ToList() },
	{ "7", "longs".Split(',').ToList() },
	{ "8", "longEW".Split(',').ToList() },
	{ "title", "coordinates_display".Split(',').ToList() },
	{ "format", "coordinates_format".Split(',').ToList() },
	{ "region", "iso_region".Split(',').ToList() }
};

private static readonly string replacementParameter = "coordinates";

private static readonly string initialReplacementTemplate = "subst:Geobox coor/sandbox";

private static readonly string editSummary = "Migrate {{" + targetTemplate + "}} coordinates parameters to " + replacementParameter + "={{Coord}}, see [[Help:Coordinates in infoboxes]]";

Jc86035 (talk) Use {{re|Jc86035}}
to reply to me
13:03, 8 September 2016 (UTC)

@Jc86035: Thanks. I think we're good on configurations until the bot task gets approval. There aren't many active BAG members, so it is common for it to take some time before getting any input. — JJMC89(T·C) 22:24, 8 September 2016 (UTC)
Pinging everyone in the active section of the BAG members list, because why not. Jc86035 (talk) Use {{re|Jc86035}}
to reply to me
15:42, 9 September 2016 (UTC)

{{BAG assistance needed}} Any questions or comments? — JJMC89(T·C) 02:22, 13 September 2016 (UTC)

Do you have any ballpark estimation to the number of edits this task will make? — xaosflux Talk 01:27, 19 September 2016 (UTC)
@Xaosflux: I'd say around 100,000 to a million pages. Possibly before this task ends, the Geohack parameter syntax might be changed due to the introduction of Kartographer's <maplink/> (which Yurik might want {{Coord}} to be based on), so that would involve some more pages. Jc86035 (talk) Use {{re|Jc86035}}
to reply to me
03:47, 19 September 2016 (UTC)
@Xaosflux: That depends on the scope of the approval. If the task is approved to remove all the deprecated parameters, then significantly more edits will be needed. There are roughly 830k transclusions of the infoboxes currently listed at Help:Coordinates in infoboxes. Three of them have been setup to test for needing the change. If those three are representative, then about 90k of the 830k would need to be edited to convert to use {{coord}}. I don't think those three are representative, so that is probably on the low end. — JJMC89(T·C) 04:28, 19 September 2016 (UTC)
A user has requested the attention of a member of the Bot Approvals Group. Once assistance has been rendered, please deactivate this tag. — JJMC89(T·C) 03:03, 27 September 2016 (UTC)

Bots in a trial period

edit WP:BRFA/Dexbot_8

Dexbot 8

Operator: Ladsgroup (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 19:41, Sunday, September 25, 2016 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): python

Source code available: based on pywikibot. Simple.

Function overview: Clean up proxy links to direct links

Links to relevant discussions (where appropriate): User talk:Ladsgroup#proxy urls

Edit period(s): One time run

Estimated number of pages affected: less than 10K I guess

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): Yes

Function details: See the discussion in my talk page made by User:AManWithNoPlan. I also made some edits already [1] :)Ladsgroupoverleg 19:41, 25 September 2016 (UTC)

Discussion

Might have to do again later, if I find an organization that using a proxy with a different name, and there are way to many to do by hand AManWithNoPlan (talk) 13:46, 26 September 2016 (UTC)

Approved for trial (200 edits). This seems fine. Although it's ideal to ask first, I didn't see any errors anyway. I would like to see one more test set just in case, but I bet there won't be any issues. --slakrtalk / 23:42, 26 September 2016 (UTC)
Please more fully document your function above, people reviewing this in the future may want more information. Feel free to link to permalinks. — xaosflux Talk 02:17, 27 September 2016 (UTC)
such as https://en.wikipedia.org/w/index.php?title=John_W._Baumgartner&diff=prev&oldid=741160192 AManWithNoPlan (talk) 02:53, 27 September 2016 (UTC)
Non-perma link to me doing a bunch by hand https://en.wikipedia.org/w/index.php?title=Special:Contributions/AManWithNoPlan&offset=&limit=500&target=AManWithNoPlan AManWithNoPlan (talk) 01:48, 30 September 2016 (UTC)
Some perma-links to existing examples for the record:
https://en.wikipedia.org/w/index.php?title=Wilder_W._Hartley&diff=prev&oldid=741160124
https://en.wikipedia.org/w/index.php?title=Roy_Hampton&diff=prev&oldid=741160101 
https://en.wikipedia.org/w/index.php?title=John_W._Shenk&diff=prev&oldid=741159973
https://en.wikipedia.org/w/index.php?title=History_of_Ohio_State_Buckeyes_football&diff=prev&oldid=741804058

Basically turning institution specific URLs in the world accessible URLs (assuming you have a library card in many cases) AManWithNoPlan (talk) 01:48, 30 September 2016 (UTC)

edit WP:BRFA/OmniBot_6

OmniBot 6

Operator: Omni Flames (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 07:53, Saturday, July 30, 2016 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): AutoWikiBrowser

Source code available: AWB

Function overview: Remove requests for an infobox on article talk pages when the article in question already has an infobox.

Links to relevant discussions (where appropriate): Wikipedia:Bot requests/Archive 72#Pages without infoboxes

Edit period(s): One time run for now, possibly run again if needed

Estimated number of pages affected: I'm still creating the list of pages that need fixing, so I can't give an exact number. However, the number could very well go in to the tens of thousands, considering the fact that Category:Wikipedia articles with an infobox request contains over 100k pages (although the number of those that are in mainspace or talkspace is more like 75k).

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): Yes

Function details: This bot will go through the category Wikipedia articles with an infobox request, and find the talk pages where the corresponding article has an infobox. It will then go through the list of pages which already have an infobox, and remove the category from them. It will also go through the subcategories of that maintenance category, and do the same thing there. Note that in some cases, such as Category:School articles without infoboxes, the category is placed on the talk page via the WikiProject banner, so I'll have to use a different find and replace rule for that.

AWB's general fixes will also be turned on during this run, unless anyone objects, in which case I'm happy to discuss it with you.

Discussion

@Omni Flames: recall that AWB general fixes for talk pages are optimised with User:Magioladitis/WikiProjects. -- Magioladitis (talk) 09:31, 30 July 2016 (UTC)

Approved for trial (100 edits). -- Magioladitis (talk) 09:31, 30 July 2016 (UTC)

  • Will the bot be searching for a {{Infobox in the syntax to identify which pages have an infobox? If so, don't forget about articles which use {{Taxobox}} and {{Geobox}} templates instead (and possibly others). If it ascertains the presence of an infobox in a different way, ignore this comment. Rcsprinter123 (drone) 22:51, 1 August 2016 (UTC)
  • Btw, a lot of the edits from 30 July only did genfixes or changed whitespace, not removing the category. Rcsprinter123 (interface) 22:53, 1 August 2016 (UTC)
    • @Rcsprinter: The bot used to simply check if the page contained \{\{(.*)obox. However, after the complaint on the bot's talk page, I realized this was also picking up templates like {{Infobox requested}} (which, I hope, also addresses your second concern). So after that, I changed the regex to \{\{(inf|tax|ge)obox (?!requested). Omni Flames (talk) 06:53, 2 August 2016 (UTC)
      • Have you not got the "skip if ... only genfixes" box ticked in AWB? It needs to stop making edits which don't relate to this task. Rcsprinter123 (comment) 23:55, 2 August 2016 (UTC)
        • @Rcsprinter123: As I said, I've fixed this issue now. I forgot to tick the "skip if no replacement" box, which I've now fixed. You said that "it needs to stop making edits which don't relate to this task", but it hasn't made any edits at all since your comment, or since the message on the bot's talk page, for that matter. Omni Flames (talk) 00:36, 3 August 2016 (UTC)
          • Oh, and just a note that the total number of pages needing to be fixed is around 16k-17k. I should have the trial finished by tonight. Omni Flames (talk) 00:39, 3 August 2016 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── @Magioladitis: Trial complete. 50 of each here. I haven't found any false positives yet excluding those which were already brought up before. Omni Flames (talk) 09:37, 3 August 2016 (UTC)

  • This should only be done if the detected template is before the first subheading; sometimes people use an infobox for the subject of a subsection of an article, or use {{Infobox}} to format images, etc. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:44, 6 August 2016 (UTC)
  • You could also remove |needs-infobox= from any of the family of {{WikiProject templates. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:46, 6 August 2016 (UTC)
    • @Pigsonthewing: In regards to your first concern, that's not a bad idea, and I'll be sure to implement that. As for your second comment, that's already what the bot is doing, have you seen the contributions? Omni Flames (talk) 22:40, 6 August 2016 (UTC)
      • I agree with Andy's suggestion to only edit templates in the zeroth section of talk pages. — JJMC89(T·C) 00:48, 7 August 2016 (UTC)
Trial edits check: Only three of the article edits performed the intended task. (Noted to be resolved above - skip if no replacement.) All of the talk page edits look good. — JJMC89(T·C) 00:48, 7 August 2016 (UTC)
{{BAGAssistanceNeeded}} Omni Flames (talk) 22:33, 15 August 2016 (UTC)
Symbol full support vote.svg Approved for extended trial (50 edits). Please re-run the trial with the corrections discussed above. Please run 25 mainspace edits and 25 talk space edits. — xaosflux Talk 10:27, 31 August 2016 (UTC)
{{OperatorAssistanceNeeded}} Do you intend to continue with this bot? — xaosflux Talk 01:24, 19 September 2016 (UTC)
@Xaosflux: Sorry, I completely forgot about this. Anyway, Trial complete.. I only ended up doing 19 article edits, because that's all there were left (there are a lot more talk page edits). I found a few problems with the article space edits, but that shouldn't matter now because I went through and fixed them manually and I don't plan on ever running that script again now those edits are done. No problems identified with the talk space edits. Omni Flames (talk) 08:16, 19 September 2016 (UTC)
Omni Flames regarding the talk edits - what is going on with the following edits, they appear to be in error. — xaosflux Talk 10:57, 19 September 2016 (UTC)
  1. Special:Diff/740136962
  2. Special:Diff/740137366
  3. Special:Diff/740137364
  4. Special:Diff/740137011
@Xaosflux: Oh, my bad. I forgot to click "skip if general fixes only". Fixed. Omni Flames (talk) 11:49, 19 September 2016 (UTC)
Symbol full support vote.svg Approved for extended trial (25 edits). - Omni Flames Please rerun your Talk: run for 25 edits, making sure all your parameters are correct. Some editors get rather upset about WP:COSMETICBOT type issues. — xaosflux Talk 15:17, 19 September 2016 (UTC)
A user has requested the attention of the operator. Once the operator has seen this message and replied, please deactivate this tag. (user notified)xaosflux Talk 03:48, 1 October 2016 (UTC)

edit WP:BRFA/CanaryBot

CanaryBot

Operator: Ivanhercaz (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 01:36, Monday, July 11, 2016 (UTC)

Automatic, Supervised, or Manual: Manual Automatic and manual.

Programming language(s): Control Panel with Bash and scripts from Pywikibot.

Source code available: Not at this moment. I'm trying to refine more the code and make a better control panel before to share the code.

Function overview: Replace incorrect images (like no official symbols by the official or its alternative) and replace images for SVG version if its is available. It also make lists of pages and archive of its userpage to be look up.

Links to relevant discussions (where appropriate): Any discussion relevant at this moment.

Edit period(s): When I find something to replace or when I will make a SVG version of some image.

Estimated number of pages affected: Depending. There is files used 5-15 times, but there is another files used more than 1000 times.

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): No

Function details:

  • Replace images by its SVG version (if its available). This function consists mainly in looking for an image on every page where it is and replace it with its SVG version. It's very safe because everything is manual and I have to accept the change. I will never change images of user pages, discussion pages, wikiprojects pages, etc.; I'm only accept changes on articles and templates pages (nor in its discussions).
  • Correcting images. That works like the first task but the focus is different. It consists in replace image because it's erroneous. To be more concise I give you an example.
The provinces of Las Palmas de Gran Canaria and Santa Cruz de Tenerife haven't got official flags but there is many articles where the users have put a flag (Las Palmas and Santa Cruz de Tenerife unofficial flags) known like the "official". Why it isn't official? Because there isn't an official regulation (it hasn't been published in any official gazette (like es:Boletín Oficial de Canarias). So the solution is replace by one official symbol to represent the province (or by nothing if there isn't one), I mean like the coat of arms, in the case of both provinces exists officials coat of arms.
  • List pages. I have include a function to list specific pages, like every page in one category or every that has an external link to a website. It's useful to recover information of what websites are referenced on wiki articles. When I list pages the bot ask me if I want to archive the list, if I say "yes" the bot create a page in its userpage that everyone could visit. To illustrate that example I invite you to visit the user page of CanaryBots in Spanish Wikipedia.

When someone confirms me that I can make some tests of my tasks in the articles I will made to illustrate how CanaryBot works. While you can check the contributions on Spanish Wikipedia.

Discussion

  • Quick note: that link to the bot's ESWP contributions seems to be broken. Enterprisey (talk!(formerly APerson) 05:17, 11 July 2016 (UTC)
Excuse me! Fixed YesY Regards, Ivanhercaz | Discusión Plume pen w.png 09:23, 11 July 2016 (UTC)
  • Keep in mind that some non-free images have SVGs available, but in some cases should not be used. My go-to example for this seems to have been deleted a few years ago, so I'm afraid I can't illustrate such a case. But from WP:FREER, For a vector image (i.e. SVG) of a non-free logo or other design, US law is not clear as to whether the vectorization of the logo has its own copyright which exists in addition to any copyright on the actual logo. Σσς(Sigma) 05:50, 11 July 2016 (UTC)
Of course. I'm going to replace images following the rules. Before to start the task I read the warnings in both files to know if there is some reason to not make the change (like the example that you have said). First of all I'm going to concentrate in replace images that clearly do not infringe the rules, like many flags of the Spanish province. Then I will try to make SVG version (in the case that I can make it legally) and then make the replacement. Regards, Ivanhercaz | Discusión Plume pen w.png 09:23, 11 July 2016 (UTC)

I am going to take a closer look at this later. However I will point out that if your tool makes suggestions to you, and you manually implement the changes then it is generally considered a manual edit. For the first task you say "everything is manual and I have to accept the change", if you do this then a bot flag is not needed as it is you who are doing the editing not the bot. Naturally the edits will be judged as though a human made them, any mistake a bot might make but a human would not would indicate that it was not manual editing.

Regarding the second task, I am wondering if these erroneous images are simply mistakes or if they are possibly a result of a difference of opinion. If people are in disagreement as to if a flag belongs then it is not a good task for a bot as human discussion would be required. If this is not controversial then that is fine, but I would like some indication that this is known to be uncontroversial or that a consensus exists for this.

Regarding task 3, it looks like an information gathering and reporting tool. See Wikipedia:Bot policy#Valid operations without approval which described acceptable use of bots in your own userspace without approval.

These are my first impressions, I am certainly going to give this a harder look later. Please let me know what you think. HighInBC Need help? {{ping|HighInBC}} 15:08, 18 July 2016 (UTC)

@HighInBC: Hi! Thank your for your comment, excuse me the delay in responding. I'm going to clarify point by point your appreciations.
  1. About the manual edits. Sorry, I was wrong when I type just manual on the request. I mean, CanaryBot would make both edits, automatic and manual. To make automatic edits I need to be sure what pages I need to change, so I will use that option with the support of the list pages task: I made a list with the pages that I have interested to change and then, I execute CanaryBot to replace every page automatically (because the list has been revised and I know that every edit will be correct). I will make manual edits with the control panel of CanaryBot when an article has a few pages where is used or when I need to revise because there is exceptions to keep in mind.
  2. About the corrections. Second task is important but, like you have said, it's important to be sure about the change.
    1. In the example of the flags of the Canary provinces (Las Palmas and Santa Cruz de Tenerife) I can say that I'm totally sure because it's about flags and a official flag need a document to be official, and in that case, there isn't an official document published in a official gazette. Before to make that edits I comment the change in the article's talk page (if you know Spanish you can read it), and if I make that change in another wiki I would published the same (in the correct language) in its respective talk page.
    2. If I consider that any kind of files (not symbols that need a reference to an official document) need to be corrected, I would explain what I think and why I think that it should be change in the talk page (or in the village pump). I don't want change for change, I want to improve the quality of the content, so I need to be sure with the changes.
  3. About task 3. All right, I understand.
Thank your for your impressions HighInBC. I hope that I have clarify more the tasks. I await your answer. Regards, Ivanhercaz | Discusión Plume pen w.png 21:34, 20 July 2016 (UTC)
Task trials

Approved for trial (70 edits).

Task 1 Please demonstrate with with 3-5 different files, up to a maximum of 40 edits.
Task 2 Please demonstrate with 2-3 different files, up to a maximum of 30 edits.
Task 3 As this is confided to your bot user space - you may trial this at low volumes (up to 2 edits per hour continuously)
xaosflux Talk 00:53, 1 September 2016 (UTC)
@Xaosflux: At this moment I haven't got so much time to apply this task so I have made it with fastly examples:
Ivanhercaz | Discusión Plume pen w.png 12:49, 1 September 2016 (UTC)
Could you make some more edits under task #1 - your initial ones appear OK - but having more volume will lead to a better review. — xaosflux Talk 13:00, 1 September 2016 (UTC)
Without problems. I have made 28 edits more replacing Buenos Aires province flag.png with Bandera Buenos Aires.svg. Excuse me, I beat the maximum edits in task 1, I made 46 if I am not wrong. Regards, Ivanhercaz | Discusión Plume pen w.png 14:49, 1 September 2016 (UTC)

edit WP:BRFA/Lowercase sigmabot IV_1

Lowercase sigmabot IV 1

Operator: Σ (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 02:26, Saturday, June 25, 2016 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python

Source code available: Soon

Function overview: Replace CSD tags on pages if the tags are removed by the author

Links to relevant discussions (where appropriate): Wikipedia:Bots/Requests for approval/SDPatrolBot, Wikipedia:Bots/Requests for approval/NNBot II

Edit period(s): Continuous

Estimated number of pages affected: [0, ∞)

Exclusion compliant (Yes/No): No

Already has a bot flag (Yes/No): No

Function details: From the link: If a page which has been nominated for deletion has it's speedy tag removed by the author of the page, this bot will replace (or revert, depending on what you people want it to do ;D) the deletion tag and warn the user.

Notice that I am not implementing the G7-tagging part. I've seen that some authors will blank a new page they create right after they create it, and then later, add more content. WP:NPPNICE; I wouldn't put this up to this bot as I envision it.

Discussion

So If I create a page, then speedy it, then change my mind - this will revert me? — xaosflux Talk 03:23, 25 June 2016 (UTC)
No, it shouldn't. Σσς(Sigma) 04:47, 25 June 2016 (UTC)
Which warning template will it use? Will it revert indefinitely, or only a set number of times per page? — Earwig talk 05:17, 25 June 2016 (UTC)
A few observations from a quick look at SDPatrolBot's contributions:
That should answer a few of your questions. I also found Wikipedia:Bots/Requests for approval/NNBot II and have added it to the list of relevant discussions at the top of the page.
I think it may be wise for the bot to respect 3RR for safety and that deletion should "reset" the 3RR clock: if the page is recreated after deletion, and CSD tagged again, the bot should restore the CSD tag if it's removed again. But I have nothing against carrying out the decision of this discussion wherever the chips may fall. Σσς(Sigma) 05:56, 25 June 2016 (UTC)
The reason for the skipping of the level 3 warning was to be able to give a final warning before reporting to AIV, without violating the 3RR. The number of time the bot reverts was actually a configurable option set at User:SDPatrolBot/configuration/replacementslmt.css, I think it would make sense to keep to 3 reverts before reporting, to stay inline with 3RR, and it therefore seems to make sense to follow a warning level of 1, 2 and then 4, so that a final warning is presented before reporting (reporting instead of reverting the fourth time the tag is removed). - Kingpin13 (talk) 23:36, 25 June 2016 (UTC)
You should also exempt G13s from this bot, because, obviously, if the creator edits their draft nominated for G13 to remove the notice, then it no longer qualifies for G13. — Preceding unsigned comment added by Omni Flames (talkcontribs) 11:11 19 June 2016
I do not plan this bot to edit outside of mainspace. Σσς(Sigma) 05:30, 30 June 2016 (UTC)
Ah, that makes sense. Omni Flames (talk) 06:39, 30 June 2016 (UTC)
  • I'm just a tad bit busy right now, and probably won't be able to look at this for the week. Σσς(Sigma) 16:38, 25 July 2016 (UTC)

In my experience, filter 29 doesn't always trigger when someone removes a CSD. I think I'd just see if a page, that previously was in CAT:CSD but no longer is, doesn't transclude {{db-meta}}. Then I'd go through the previous revisions until I find a revision that had a {{db-[arg][0-9]{1,2} tag and stick that back on the page. Maybe I'd also have checks to skip A1/A3 and G7 if they contain more than 100 bytes. Σσς(Sigma) 16:29, 30 July 2016 (UTC)

How are you getting your input? Are you going to periodically scrape CAT:CSD, or are you going to be processing the entire recent changes feed (or something else)? — xaosflux Talk 14:13, 8 August 2016 (UTC)
{{OperatorAssistanceNeeded}} — xaosflux Talk 16:06, 17 August 2016 (UTC)
Sorry for the late reply. And yes, it will check CAT:CSD every 30 seconds or every 60 seconds, depending on how things look when I can test the script. Σσς(Sigma) 05:27, 18 August 2016 (UTC)
Most "antivandalism" type bots don't use the bot flag specifically so that the the changes will not be edited - what types of edits did you plan on asserting this for, if any? — xaosflux Talk 02:47, 21 August 2016 (UTC)
I wouldn't mark CSD tags as a bot edit, if that's what you mean? Σσς(Sigma) 04:31, 23 August 2016 (UTC)
Approved for trial (60 edits). Please include a link to Wikipedia:Bots/Requests_for_approval/Lowercase_sigmabot_IV_1#Trial1 in your edit summaries (along with whatever else you are going to use). — xaosflux Talk 19:16, 25 August 2016 (UTC)
Great! Please allow me six weeks before starting to work on the trial. Σσς(Sigma) 02:30, 27 August 2016 (UTC)

Trial 1

Please place feedback and results from initial trial run here. — xaosflux Talk 19:17, 25 August 2016 (UTC)

Bots that have completed the trial period

edit WP:BRFA/KMLbot

KMLbot

Operator: Evad37 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 05:33, Saturday, September 3, 2016 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): SPARQL + PetScan + AWB

Source code available: Yes, see function details below

Function overview: Adds {{Attached KML}} to articles which have KML files available through Wikidata

Links to relevant discussions (where appropriate): Template talk:Attached KML § Proposal: Use Wikidata and new module

Edit period(s): Around once a week

Estimated number of pages affected: ~450 for initial run, probably much less in subsequent runs (depends on KML creation rate on other wikis)

Exclusion compliant (Yes/No): Not through {{bots}} Yes, per below

Already has a bot flag (Yes/No): No

Function details:

  • (1) Get a list of Wikidata items which have both a KML file and an article on English Wikipedia.
    Done manually with the following SPARQL query to Wikidata Query Service:
SELECT ?article
WHERE
{
        ?article schema:about ?item 
        ;       schema:isPartOf <https://en.wikipedia.org/> .
        ?item wdt:P3096 ?kml .
        SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Output saved as CSV, opened with MS Excel. Titles extracted from URLs using formula like =LEFT(MID(A2,31,999),LEN(A2)-30). But these are precent-encoded, so then decode them using a web-based URL decoder.

Notes:

  • Applying here per Special:Diff/737483526
  • The page at User:KMLbot would have info like what I started drafting at User:Evad37/KML, but adjusted to match whatever approval is given for the bot.
  • The bot would be not only be exclusion-compliant through {{bots}}, but would also be exclusion-compliant through the (yet to be created) {{No KML}} template populating [[Category:Pages which should not use KML from Wikidata]] (hidden tracking category also yet to be created). This allows excluded pages to be filtered out with the PetScan query, would enable tracking of such article through the category, and would encourage editors to provide a reason why the KML shouldn't be used (so that problems could possibly be fixed for all wikis, rather than just ignored at the English Wikipedia). - Evad37 [talk] 05:33, 3 September 2016 (UTC)

Discussion

Unless you turn the option off, AWB is exclusion compliant via {{bots}}. — JJMC89(T·C) 05:55, 3 September 2016 (UTC)

Oh, okay. Didn't realise that, but I don't think it makes a big difference to the proposal. - Evad37 [talk] 06:25, 3 September 2016 (UTC) Adjusted above - Evad37 [talk] 06:27, 3 September 2016 (UTC)

Approved for trial (50 edits). — Earwig talk 17:16, 3 September 2016 (UTC)

Trial complete. See edits. Notes:
  • Edits 1-5: edit summary malformed
  • Edits 6-10: disambiguation pages included - because typo in petscan (capital D)
  • Edits 11-14: tried to fix in petscan - something went wrong, all of these had no KML in wikidata - reverted these edits
  • Edits 15-20: Started over (Wikidata query, decode titles, petscan query, save as UTF8 text file). Generally okay, but AWB inconsistent in adding new lines - some have a single space (as intended), some with 2 (which makes a gap in rendered page), some with none (??) - may be due to extra lines being rearranged by "Sort meta data after".
  • Edits 21-25: Try option "use 0 newlines" - all appears to be okay now;
  • Edits 25-50: Went ahead with remainder of trial edits. Spot-checked about 15 of these while the bot was editing and saw no problems - Evad37 [talk] 00:44, 6 September 2016 (UTC)
Some further notes: I left the KML files on the disambig pages in place. While I don't think dismbig pages are good candidates for automated KML addition, as what is ambiguous in one language might not be in another, in these cases the KML files did match the disambig listings. I reverted the bot's edit to Field of Mars ([2]), a set index article. With similar reasoning to disambigs, I'll exclude set index articles in future runs (by putting Category:All set index articles in the petscan query). All other edits have functioned as expected, and as of now (6 days later), none have been reverted, and no-one's posted anything at the bot's talk page. - Evad37 [talk] 04:14, 12 September 2016 (UTC)
A user has requested the attention of a member of the Bot Approvals Group. Once assistance has been rendered, please deactivate this tag. - Evad37 [talk] 07:18, 16 September 2016 (UTC)
@The Earwig: - Evad37 [talk] 00:36, 26 September 2016 (UTC)
@Evad37: Hmm. Do you think it's placing the template in the best location? This and a lot of others looks fairly unbalanced. Also, what's going on with the unreferenced tag here? — Earwig talk 01:03, 26 September 2016 (UTC)
The movement of unreferenced tags might be an AWB bug, I've reported it at WT:AWB#Unreferenced_stub_template (I think that might be AWB mistaking {{unreferenced stub}} for a stub tag, and thus resorting it to the end of the article.)
With regards to the location, the absolute ideal location could vary quite a lot based on what else is on the page. It should go somewhere under the last heading, and come before the categories and stub templates, but whether it would be better above or below the navboxes really depends on what exactly is above the navboxes. If its just a simple bulleted list, then it can float to the right of the list. But if there's already one or more floating-box templates, or a multi-column list (e.g. reflist), or if its a short article with a long infobox, placement above the navboxes would cause excessive whitespace. (For example, these pages which had the KML box manually added below the navboxes some years ago: Karrinyup Road, West Coast Highway, Perth.) But then again, if there's just one floating box template and 6 or so items in a bulleted list, then it may be better to place it immediately after the existing box, to float in space available on the right of the list. I don't think a bot can be much good at making these cosmetic decisions – I'd rather the bot place the template in an acceptable position (if not 100% optimal), that gives the links to readers without causing big whitespace issues, and allow humans editors to make aesthetic choices when further editing of the article occurs. - Evad37 [talk] 02:24, 26 September 2016 (UTC)
@The Earwig: Got an answer from WT:AWB – if I enable genfixes, then the {{unreferenced stub}} template redirect will be bypassed and replaced with {{unreferenced}}, but left where it is rather than being moved to the end of the article. This seems to work, I tested it by getting AWB to generate a diff (but not saving) for Nishiyatsushiro District, Yamanashi:
KMLbot diff Nishiyatsushiro District Yamanashi.gif
(the metadata sorting doesn't seem to work in userspace, otherwise I would have made a sandbox edit to show you) - Evad37 [talk] 04:17, 29 September 2016 (UTC)

edit WP:BRFA/Monkbot_11

Monkbot 11

Operator: Trappist the monk (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 14:28, Monday, May 16, 2016 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): awb/c#

Source code available: User:Monkbot/task 11: CS1 multiple authors/editors fixes

Function overview: fix cs1|2 author/editor parameters in articles listed in Category:CS1 maint: Multiple names: authors list and Category:CS1 maint: Multiple names: editors list

Links to relevant discussions (where appropriate): no recent discussions

Edit period(s): primarily one-time with additional runs as necessary

Estimated number of pages affected: at this writing there are 107,538 + 8,268 pages in the two categories

Exclusion compliant (Yes/No): yes

Already has a bot flag (Yes/No): yes

Function details: User:Monkbot/task 11: CS1 multiple authors/editors fixes

Discussion

Comment to Trappist: I support this work. Have you considered testing for and skipping the pathological case in which |firstn= is present with no corresponding |lastn=, i.e. articles in Category:CS1 errors: missing author or editor? If not, I suggest trying to do so. "Correcting" author lists in articles with this case present will probably result in malformed citations with no error messages. – Jonesey95 (talk) 20:50, 16 May 2016 (UTC)

Point. Now, any template that has |firstn= after empty parameters have been removed is ignored. I actually haven't seen any of these in the wild (yet) but no doubt, perhaps as one of the artifacts of citation bot, there are |author=name, name, name |first2=first name.
Trappist the monk (talk) 22:08, 16 May 2016 (UTC)

{{BAG assistance needed}}

Yay? Nay? As of this morning, I've made some 2800 edits manually with the bot's script (see Special:Contributions/Trappist the monk).

Trappist the monk (talk) 10:33, 26 May 2016 (UTC)

Approved for trial (250 edits or 10 days). — xaosflux Talk 14:20, 30 May 2016 (UTC)

Trial complete. The first 125 edits were made using articles listed in Category:CS1 maint: Multiple names: authors list; the second 125 edits were made using articles listed in Category:CS1 maint: Multiple names: editors list.

These anomalies are noted:

  1. H. A. Willis: |author1=Curle Smith, H. Nora looks like two authors with a comma separator. Since there is only one comma, this author name is not the reason that the article is a member of Category:CS1 maint: Multiple names: authors list. I reverted this edit; refined the bot code, and ran the bot again over the page where it properly did not make an edit.
  2. Steve Hagen: |author=Brussat, Frederic and Mary Ann omits Mary Ann's last name though the bot cannot know that. This is a case of garbage-in-garbage-out. cs1|2 do not support such naming conventions; complete author names are required.
  3. Ron Holland: gigo; three names marked-up as two authors.
  4. Buddy Holly: I neglected to remove a debug statement; the edit was reverted and the bot retried
  5. to fix the Buddy Holly bug, it was necessary to disable the selective skipping in the code; I neglected to re-enable the selective skipping so edits that would not normally be made were made to:
    Hospital Food
    House of Fraser
    Housefly
    Houston Astros
    Houston College Classic
    Howard Johnson (baseball)
    Howard Lake (Washington)
    HTC HD2
    Huascarán National Park
    Hudson_County, New Jersey
    Hudson Yards, Manhattan
    Hudson's Oldfield mouse
    11th Fighter-Interceptor Squadron
    13th School Group
    14th/32nd_Battalion_(Australia)
    14th_Battalion_(Australia)
    14th Operations Group
  6. Lester S. Willson: gigo: |editor=William H. Powell, Lt Col, U.S. Army should not include rank and affiliation
  7. Lexis diagram: gigo: |editor=Demographic Research, vol. 4, art. 3, pp 97-124 is not the name of an editor

Trappist the monk (talk) 13:45, 1 June 2016 (UTC)

I have modified the bot so that it skips templates with author/editor parameter values containing digits or the word 'army'. Items 2, 3, 6 & 7 above have been corrected manually.
Trappist the monk (talk) 14:16, 1 June 2016 (UTC)
Symbol full support vote.svg Approved for extended trial (250 edits or 10 days). Please make a final run to demonstrate that errors have been cleared. — xaosflux Talk 11:23, 25 June 2016 (UTC)
Trial complete.
Thank you for posting this notification on my talk page. I had forgotten about this brfa. Can I ask why the significant delay between the end of the first trial and the approval for an extended trial? Should I have done something different?
Anomalies noted:
  1. Atlah Worldwide Church: gigo; {{cite court}} is a more appropriate template than {{cite web}} but I have no experience with that template so I reverted with corrections and added 'supreme' and 'court' to the bot's list of banned words;
Trappist the monk (talk) 19:54, 26 June 2016 (UTC)
Wikipedia:BAG/Status is kind of backed up right now, I'm working through as many as possible. — xaosflux Talk 20:37, 26 June 2016 (UTC)
Minor side effect in this bot trial, may be addressable via code: Wikipedia:Articles for deletion/Alain Haché: Vancouver style error introduced. – Jonesey95 (talk) 22:58, 5 July 2016 (UTC)
Yep, know about that. This bot task is not in the business of fixing the content of the parameters. It cannot know if hyphenated initials in your examples are correct for those names or if the hyphen should be removed. Those sorts of decisions require an editor's brain. I have fixed that template.
Trappist the monk (talk) 15:31, 6 July 2016 (UTC)


Approved requests

Bots that have been approved for operations after a successful BRFA will be listed here for informational purposes. No other approval action is required for these bots. Recently approved requests can be found here (edit), while old requests can be found in the archives.



Denied requests

Bots that have been denied for operations will be listed here for informational purposes for at least 7 days before being archived. No other action is required for these bots. Older requests can be found in the Archive.

Expired/withdrawn requests

These requests have either expired, as information required by the operator was not provided, or been withdrawn. These tasks are not authorized to run, but such lack of authorization does not necessarily follow from a finding as to merit. A bot that, having been approved for testing, was not tested by an editor, or one for which the results of testing were not posted, for example, would appear here. Bot requests should not be placed here if there is an active discussion ongoing above. Operators whose requests have expired may reactivate their requests at anytime. The following list shows recent requests (if any) that have expired, listed here for informational purposes for at least 7 days before being archived. Older requests can be found in the respective archives: Expired, Withdrawn.