Wikipedia:Bots/Requests for approval/Addbot 31

Addbot 31

[[User:Addbot|Addbot 31]]

{{Newbot|Addbot|31}}

Operator: {{botop|Addshore}}

Time filed: 19:41, Friday February 1, 2013 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): PHP

Source code available: [https://github.com/addshore/addbot-php-rewrite On GitHub]

Function overview: Bot rewrite, Performing all tasks at once including various minor changes

Edit period(s): Cont

Estimated number of pages affected: Many

Exclusion compliant (Yes/No): Yes

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

Function details:

The bot rewrite consists of two major parts, a listing process and a checking process. The Listing process does not edit, this takes various sources of articles (categories, toolserver reports e.t.c) and lists them for the bot to check 'at some point'. The Checking process then reads this list every (currently 1 min) performing multiple checks as listed below before editing if required. The bot will try and alter its rate of checking pages depending on how many pages it currently has in its queue.

  • For Articles
  • If multiple tags exist that can be put in {{tl|Multiple Issues}} then add them per Wikipedia:Bot_requests#template_bombing
  • Remove duplicate tags on a page leaving the one with the oldest date per Wikipedia:Bot_requests#template_bombing
  • Check if page is double redirect and fix it (already approved here)
  • Check if page has an empty section, if it does add {{tl|empty section}}
  • Check if page is {{tl|Orphan}} (Either tag or untag) (already approved Wikipedia:Bots/Requests_for_approval/Addbot_18)
  • Check if page is {{tl|Uncat}} (Either tag or untag) (already approved here and here) [https://en.wikipedia.org/w/index.php?diff=536331699&oldid=536331000]
  • Check if page is {{tl|Deadend}} (Either tag or untag) (removing is already approved here)
  • If page only has 2 links add {{tl|Underlinked}} in its place
  • Check if page has any ref, remove unrefed tag it it appears (i.e. Unreferenced or BLP unsourced)
  • If page only has 2 refs add {{tl|refimprove}}
  • Change {{tl|Unreferenced}} to {{tl|BLP unsourced}} if in :Category:Living people and vice versa
  • Change {{tl|refimprove}} to {{tl|BLP Sources}} if in :Category:Living people and vice versa
  • Check if {{tl|Sections}} tag can be removed (already approved here)
  • Add {{tl|Sections}} tag if no sections and over 1000 words
  • Check if the page has a {{tl|stub}} tag that can be removed (more than 500 words) (current trial task 30) [https://en.wikipedia.org/w/index.php?diff=536206951&oldid=536041752]
  • Remove outdated templates (currently {{tl|Wikify}}) (already approved) [http://en.wikipedia.org/w/index.php?title=Taharpur,_Jajpur&diff=prev&oldid=536474224]
  • Date any other maint tags that haven't been been dated (Approved for use with AWB here)
  • If any of the above have happened
  • General template fixes (taken from AWB) (Approved for use with AWB here)
  • Combine any maint templates into multipleIssues if there is more than one [http://en.wikipedia.org/w/index.php?title=User:Addbot/Sandbox&oldid=536208836]
  • Fix whitespace (e.g. multiple new lines in a row) (Approved for use with AWB here)
  • For Images
  • If PDF tag as bad format (already approved here)
  • For UserTalk
  • If contains one of templates that needs to be substed do so (already approved here)
  • For Categories
  • Checks and adds or removes {{tl|Underpopulated category}} (removes if more than 50, adds if less than 10)
  • For Sandboxes
  • Check if the header exists at the top, if not put it there (Arrpoved here [http://en.wikipedia.org/w/index.php?title=Wikipedia:Tutorial/Keep_in_mind/sandbox&diff=536493873&oldid=536493859]
  • My Bot Space
  • If the bot comes accross a page that is protected that it was planning on editing it will post it in its user space
  • If the bot finds a broken redirect (it redirects to itself) it will post it in its user space

The main changes to the tasks that I am currently performing is that they will all occur in single edits with increased small uncontroversial fixes.

The bot is configurable from User:Addbot/config although some variables still need to be added.

=Discussion=

Any significant tests I performed in the bot sandbox have been posted below. ·Add§hore· Talk To Me! 21:23, 4 February 2013 (UTC)

*Checking Kikin Inc

  • > Is Article.orph.uncat.dead.unref.sec.stub-.dep.date.gen
  • > POST: Bot: - Removing Stub Tag (Report Errors 2) [https://en.wikipedia.org/w/index.php?diff=536206951&oldid=536041752 output]
  • Checking Mabel Fairbanks
  • > Is Article.orph.uncat+.dead-.unref.sec-.stub.dep.date.gen
  • > POST: Bot: - Adding Dating (Report Errors 2) [https://en.wikipedia.org/w/index.php?title=User:Addbot/Sandbox&diff=536208836&oldid=536206951 output] (Fixed adding edit summary after this){{done}}
  • Checking Macrinus (Bishop of Eleutheropolis)
  • > Is Article.orph.uncat+.dead-.unref-.sec-.stub.dep.date.gen
  • > POST: Bot: - Adding {{tl|Uncategorized}} Dating (Report Errors 2) [https://en.wikipedia.org/w/index.php?title=User:Addbot/Sandbox&diff=536210252&oldid=536208836 output]
  • Checking Magnetic Tower of Hanoi
  • > Is Article.orph.uncat+.dead-.unref-.sec-.stub.dep.date.gen
  • > POST: Bot: - Adding {{tl|Uncategorized}} Dating (Report Errors 2) [https://en.wikipedia.org/w/index.php?title=User:Addbot/Sandbox&diff=next&oldid=536210252 output] (Fixing template links in summaries, spotted error where parser matches [http://en.wikipedia.org/w/index.php?title=Magnetic_Tower_of_Hanoi&action=edit templates in comment]){{done}}
  • Checking PTV World
  • > Is Article.orph.uncat+.dead-.unref-.sec-.stub.dep.date.gen
  • > POST: Bot: - Removing {{tl|Unreferenced}} (Report Errors 2) [https://en.wikipedia.org/w/index.php?diff=536231980&oldid=536231126 output] (Need to alter regex to match refs){{done}}
  • Checking Robert Harvey (Clwyd politician)
  • > Is Article.orph.uncat+.dead-.unref-.sec-.stub.dep.date.gen
  • > POST: Bot: - Adding {{tl|Uncategorized}} Dating (Report Errors 2) [http://en.wikipedia.org/w/index.php?title=User:Addbot/Sandbox&diff=536233893&oldid=536231980 output] (summaries fixed){{done}}
  • Checking Sammy Barr
  • > Is Article.orph.uncat+.dead-.unref-.sec-.stub.dep.date.gen
  • > POST: Bot: - Adding {{tl|Uncategorized}} Dating (Report Errors 2) [https://en.wikipedia.org/w/index.php?title=User:Addbot/Sandbox&diff=536328683&oldid=536233893 output]
  • Checking Szabadkígyós
  • > Is Article.orph.uncat+.dead-.unref.sec-.stub.dep.date.gen
  • > POST: Bot: - Adding {{tl|Uncategorized}} (Report Errors 2)
  • Checking Theatre in Bangladesh
  • > Is Article.orph.uncat+.dead-.unref.sec-.stub.dep.date.gen
  • > POST: Bot: - Adding {{tl|Uncategorized}} (Report Errors 2) [https://en.wikipedia.org/w/index.php?diff=536331699&oldid=536331000 output]

BAD Addshore, bad! Line 28 of run.php is a real no-no.

eval(preg_replace("/(\|\<\/syntaxhighlight\>)/i","",$wiki->getpage("User:Addbot/config")));

Really, you shouldn't eval anything taken from an untrustworthy source, but from any unprotected wikipage? That's just asking for trouble. I've protected the page now, and you must remove that from the code. If you have to have your config on a wikipage, I would suggest using something like [http://www.php.net/manual/en/function.parse-ini-string.php parse_ini_string()].

Seriously, I can't stress enough how dangerous that code is. Not only could it be used to hack your bot, but it could also hack your server as well. (note: I have not reviewed the rest of the code) --Chris 17:14, 2 February 2013 (UTC)

:I know it was a terrible way to do it,I was braindead at the time, I did have the page protected at one stage hence why I was using eval, going to do parse_ini_string() now. ·Add§hore· Talk To Me! 17:22, 2 February 2013 (UTC)

::{{done}} Fixed ·Add§hore· Talk To Me! 19:25, 2 February 2013 (UTC)|2=eval FIXME fixed {{done}}

{{tlx|BAGAssistanceNeeded}} ·Add§hore· Talk To Me! 12:25, 4 February 2013 (UTC)

==Trial==

:{{BotTrial|edits=50}} MBisanz talk 14:15, 4 February 2013 (UTC)

::Currently running each page through one by one although the post is made before I check the contents. First edit prompted me to add more checks when adding an orphan tag, previous to this I only had checks for removing. See [https://github.com/addshore/addbot-php-rewrite/compare/db242d72c366...4897d17abc83 here]. Starting the trial as soon as Labs is fixed. ·Add§hore· Talk To Me! 15:28, 4 February 2013 (UTC)

  • Edit 1 [https://en.wikipedia.org/w/index.php?title=Vibart&diff=prev&oldid=536527495 diff] added orphan tag to an SIA page {{fixed}} by adding more checks which were only included in the removal of orphan tags before. See on [https://github.com/addshore/addbot-php-rewrite/compare/db242d72c366...4897d17abc83 git].
  • Edit 2 [https://en.wikipedia.org/w/index.php?title=Macrophomina_phaseolina&diff=prev&oldid=536536161 diff] formatted and removed one stub tag but for some reason the second tag was not removed. Adding a second pass over the article to see if this fixes [http://git.io/uPhaFA git].
  • Edit 3 [https://en.wikipedia.org/w/index.php?diff=536536938&oldid=536535956 diff] added {{tl|Orphan}} correctly.
  • Edit 4 [https://en.wikipedia.org/w/index.php?diff=536537395&oldid=531410097 diff] added {{tl|Orphan}} correctly.
  • Edit 5 [https://en.wikipedia.org/w/index.php?diff=536537733&oldid=536449486 diff] added {{tl|Uncategorized}} correctly.
  • Edit 6 [https://en.wikipedia.org/w/index.php?diff=536538078&oldid=517291344 diff] correctly added {{tl|reflist}} but again only removed one stub tag. Comparing the two diffs it left stub tags behind with capital letters both times and it turns out I missed this in the regex [http://git.io/cUFuxg git] {{fixed}}.
  • Edit 7 [https://en.wikipedia.org/w/index.php?diff=536538919&oldid=517702952 diff] removed both stub tags correctly.
  • Edit 8 [https://en.wikipedia.org/w/index.php?diff=536539211&oldid=536511917 diff] correctly added {{tl|Orphan}} and {{tl|Uncategorized}} in {{tl|Multiple Issues}}.
  • Checked Greg Brown (businessman) but did not remove {{tl|Deadend}}. It turns out the redirects to this template were not added to the config [http://git.io/pZL_HQ git] {{fixed}}.
  • Edit 9 [https://en.wikipedia.org/w/index.php?diff=536541398&oldid=536540355 diff] correctly removed the {{tl|deadend}} tag.
  • Edit 10 [https://en.wikipedia.org/w/index.php?diff=536541426&oldid=536541168 diff] correctly removed the {{tl|deadend}} tag.
  • Checked Sinocast but did not remove {{tl|Orphan}} even though article had link to David_Marchick. I altered a regex which meant it realised it was not an oprhan [https://github.com/addshore/addbot-php-rewrite/commit/2cea99b873eda6cfaf8d142e9de4173dfdecf285 git]
  • Checked Sinocast but again didnt remove {tl|Orphan}}, I discovered this was because the tag was included in the old style of {{tl|Multiple Issues}}. It turns out my $page->multipleIssues(); function doesn't quite hit all variations of the template yet. When trying to fix made a [https://en.wikipedia.org/w/index.php?title=Sinocast&diff=536544950&oldid=523517513 bad edit] so moved testing to sandbox until fixed. After a bit of testing I [https://en.wikipedia.org/w/index.php?diff=536545852&oldid=536545294 fixed] the mi tag [https://github.com/addshore/addbot-php-rewrite/commit/e189b98203f189e0a1e33597ff5a27b6e0e5e132 git], then to work out where the content was going. I ended getting a [https://en.wikipedia.org/w/index.php?diff=536548948&oldid=536547648 good edit] after changing the way the tags were removed [http://git.io/VLxBug git].
  • Edit 11 [https://en.wikipedia.org/w/index.php?diff=536549362&oldid=536545021 diff] removed the {{tl|Orphan}} tag correctly and succesfully from the page as well as reformating the {{tl|Multiple issues}} tag into the currently used format.
  • Edit 12 [http://en.wikipedia.org/w/index.php?title=Ailum&diff=536549981&oldid=535492036 diff] removed the {{tl|Uncategorized stub}} tag even though the page didnt have any categories and was a stub. Firstly I also fixed the stub matching regex for this check [http://git.io/Gl1Ing git] (I need to add these to the config) and then make the function ignore stub cats [https://github.com/addshore/addbot-php-rewrite/commit/65943d05077f344d4aa4688822c01d7de145d9c9 git] {{fixed}}.
  • Checked Ailum again and no edit was made.
  • Edit 13 [https://en.wikipedia.org/w/index.php?diff=536550276&oldid=536550241 diff] dated the {{tl|notability}} as well ass adding two further tags in {{tl|Multiple Issues}}.
  • Checked Madrast_Al-Mushaghebeen No actions should have occoured and no actions did (was orphan with linking redirect)
  • Edit 14 [https://en.wikipedia.org/w/index.php?diff=536554587&oldid=536479834 diff] removed {{tl|Uncategorized}} correctly.
  • Edit 15 [https://en.wikipedia.org/w/index.php?diff=536555026&oldid=536546937 diff] adding {{tl|Uncategorized}} correctly.
  • Checked DNA_history_of_Egypt and no edit was made.
  • Edit 16 [https://en.wikipedia.org/w/index.php?diff=536555461&oldid=536538514 diff] adding {{tl|Uncategorized}} correctly.
  • Edit 17 [https://en.wikipedia.org/w/index.php?diff=536556031&oldid=536554484 diff] added {{tl|Orphan}} and {{tl|Uncategorized}} although my reason for choosing the page was to see if the bot added the deadend tag correctly which it didnt. So I did some digging...
  • Edit 18 [https://en.wikipedia.org/w/index.php?diff=536556382&oldid=536556031 diff] ran the bot over the same page and my fix worked adding the {{tl|Dead end}} tag [http://git.io/ZrhzjQ git]
  • Checked Truncatella_caribaeensis, Moesziomyces_bullatus, Edwin_Atkins_Merritt, Asarum_caudatum, Balandiz, Jill_Culton, Yukariulucak,_Beypazari, Bottle_scraper, Box_Hill_High_School, The_Cairnwell, Mineral_exploration and no edits were made. Still have to test removing '''wikify tag, removing unref tag, swaping unref and blpunsourced, adding sections tag, removing sections tag.
  • Edit 19 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536558091&oldid=454511517 diff] correctly removed {{tl|orphan}} and fixed {{tl|Multiple Issues}}
  • Edit 20 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536558246&oldid=454511508 diff] correctly removed {{tl|orphan}} and fixed {{tl|Multiple Issues}}
  • Edit 21 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536558418&oldid=527439248 diff] correctly removed {{tl|orphan}} and {{tl|Multiple Issues}} leaving {{tl|primarysources}}
  • Edit 22 [http://en.wikipedia.org/w/index.php?title=Vistarband&diff=536559633&oldid=524274668 diff] did something special with another old style multiple issues template while adding a {{tl|deadend}} tag that it did not already spot on the page. After looking at the page I have a feeling it is because the {{tl|Multiple Issues}} template is half in the new style and half in the old style which I have not accounted for. {{fixed}} [http://git.io/WEEqYg git] although this can be streamlined at a later date
  • Checked Vistarband again and no edit was made.
  • Edit 23 [https://en.wikipedia.org/w/index.php?diff=536565861&oldid=499873984 diff] Removing {{tl|Unreferenced}} Adding {{tl|BLP unsourced}} correctly
  • Note, at this stage the only thing we really have to check is the adding and removal of {{tl|sections}} tag
  • Edit 24 [https://en.wikipedia.org/w/index.php?diff=536567422&oldid=526099947 diff] Removed {{tl|Sections}} but yet again broke {{tl|Multiple Issues}} in another special way.. Caused by newlines in the wrong places {{fixed}} [http://git.io/AlbrFA git]
  • Edit 25 [https://en.wikipedia.org/w/index.php?title=Maize_milling&diff=536573847&oldid=536567729 diff] this time {{tl|Sections}} was removed and MI didnt break.
  • Edit 26 [https://en.wikipedia.org/w/index.php?diff=536574007&oldid=534136614 diff] Removed {{tl|Sections}} and {{tl|Multiple Issues}} leaving one tag.
  • Edit 27 [https://en.wikipedia.org/w/index.php?diff=536574025&oldid=530907338 diff] Removed {{tl|Sections}} and {{tl|Multiple Issues}} leaving one tag.
  • Edit 28 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536574355&oldid=522730581 diff] Removing {{tl|Unreferenced}} Adding {{tl|BLP unsourced}} and adding {{tl|Multiple Issues}} correctly
  • Edit 29 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536574527&oldid=519283483 diff] Removing {{tl|Orphan}}
  • Edit 30 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536574880&oldid=462399015 diff] Removing {{tl|Orphan}}
  • Edit 31 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536574985&oldid=523448380 diff] Got confused when it hit a tag that it didnt recognise {{Orphan|date=January 2008}}. As this is a unique little notice I will create a check before hand removing it [http://git.io/vAqVqA git]. After one more failed edit attempt the bot nolonger edits the page per [http://git.io/D5exFQ git] {{fixed}}
  • Edit 32 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536577303&oldid=500826015 diff] Removing {{tl|Unreferenced}} Adding {{tl|BLP unsourced}} and adding {{tl|Multiple Issues}} correctly
  • Edit 33 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536577590&oldid=517146399 diff] Removing {{tl|Unreferenced}} Adding {{tl|BLP unsourced}} and adding {{tl|Multiple Issues}}
  • Edit 34 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536577631&oldid=503538881 diff] Removing {{tl|Orphan}}
  • Edit 35 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536577648&oldid=518414257 diff] Removing {{tl|Unreferenced}} Adding {{tl|BLP unsourced}} and adding {{tl|Multiple Issues}}
  • Edit 36 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536577771&oldid=397288434 diff] Removing {{tl|Unreferenced}} Adding {{tl|BLP unsourced}} and adding {{tl|Multiple Issues}}
  • Edit 37 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536577798&oldid=486608373 diff] Removing {{tl|Orphan}}
  • Edit 38 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536578007&oldid=457468912] diff] Removing {{tl|Orphan}} fixing {{tl|Multiple Issues}}
  • Edit 39 [https://en.wikipedia.org/w/index.php?diff=536578171&oldid=535318830 diff] Adding {{tl|Dead end}} Removing {{tl|Sections}}
  • Edit 40 [https://en.wikipedia.org/w/index.php?diff=536578436&oldid=516357209 diff] Removing {{tl|Sections}} fixing {{tl|Multiple Issues}}
  • Edit 41 [https://en.wikipedia.org/w/index.php?diff=536578579&oldid=526176318 diff] Removing {{tl|Sections}} fixing {{tl|Multiple Issues}} and other gen fixes
  • Edit 42 [https://en.wikipedia.org/w/index.php?diff=536578594&oldid=535451839 diff] Removing {{tl|Sections}} and {{tl|Multiple Issues}} leaving 1 tag
  • Edit 43 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536578604&oldid=502484823 diff] Removing {{tl|Orphan}} and {{tl|Multiple Issues}} leaving 1 tag
  • Edit 44 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536578714&oldid=523798228 diff] Removing {{tl|Orphan}} and {{tl|Multiple Issues}} leaving 1 tag
  • Edit 45 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536578863&oldid=499048409 diff] Removing {{tl|Orphan}} leaving 2 tags in {{tl|Multiple Issues}}
  • Edit 46 (FromDB) [https://en.wikipedia.org/w/index.php?diff=536579031&oldid=518233460 diff] Removing {{tl|Stub}} incorrectly, turns out my wordcount function did not ignore tables, it now should [http://git.io/5MQLZw git]
  • Checking Arabic exonyms and no edit was made so the above is {{fixed}}
  • Edit 47 [https://en.wikipedia.org/w/index.php?diff=536583487&oldid=515378031 diff] Removing {{tl|Sections}} fixing {{tl|Multiple Issues}}
  • Edit 48 [https://en.wikipedia.org/w/index.php?diff=536583507&oldid=536423899 diff] Removing {{tl|Sections}} and {{tl|Multiple Issues}} leaving 1 tag
  • Edit 49 [https://en.wikipedia.org/w/index.php?diff=536583522&oldid=531600138 diff] Removing {{tl|Sections}} fixing {{tl|Multiple Issues}}
  • Edit 50 [https://en.wikipedia.org/w/index.php?diff=536583783&oldid=535835639 diff] Removing {{tl|Sections}} fixing {{tl|Multiple Issues}}
  • {{BotTrialComplete}} ·Add§hore· Talk To Me! 21:22, 4 February 2013 (UTC)

:As a quick reference: We worked off the list I compiled at [https://github.com/addshore/addbot-php-rewrite/issues/36 GitHub] John F. Lewis (talk) 21:30, 4 February 2013 (UTC)

==Trial 2==

:{{BotTrial|edits=50}} Let's do another trial to be sure. I appreciate the table, but you don't need to go to that effort for the ones it does right, just any errors. MBisanz talk 23:19, 4 February 2013 (UTC)

::Restarting, Once Addshore remembers to set it to edit the mainspace and not sandbox. Posted on behalf of Addshore. John F. Lewis (talk) 23:26, 4 February 2013 (UTC)

:::I wanted to make sure I didn't miss anything :) {{BotTrialComplete}} This was run from the Database and was not checked until after all 50 edits were complete. You can see all of the 50 edits made [http://en.wikipedia.org/w/index.php?title=Special:Contributions&dir=prev&offset=20130204232319&limit=50&tagfilter=&contribs=user&target=Addbot&namespace= here], see below for 3 more bugs that I have found, I think another trial after these bugs are fixed would be good. ·Add§hore· Talk To Me! 23:56, 4 February 2013 (UTC)

  • Edit [http://en.wikipedia.org/w/index.php?title=Charles_Haskell_House&diff=prev&oldid=536603956],[http://en.wikipedia.org/w/index.php?title=Blue_Hills_Bank&diff=prev&oldid=536603884][http://en.wikipedia.org/w/index.php?title=C._E._Matthews&diff=prev&oldid=536603903] [http://en.wikipedia.org/w/index.php?title=C_US_Bank&diff=prev&oldid=536603593]seemed to add deadend when page was not a deadend. I think this is due to some of the characters that were used on the pages in the links. Am looking into this now {{fixed}}
  • Edit [http://en.wikipedia.org/w/index.php?title=Basia,_Pakistan&diff=prev&oldid=536603488] seemed to remove unref tag when i cannot see any references. No idea why this has happened so will look into it. {{fixed}}
  • Edit [http://en.wikipedia.org/w/index.php?title=Thomas_B._Manuel&diff=prev&oldid=536603209] has an error in the edit summary, it looks like the bot added {{tl|Sections}} when infact it removed it. Should be an easy fix. {{fixed}}

==Trial 3==

:{{BotTrial|edits=50}} Let's do another trial because we're finding and fixing stuff still. MBisanz talk 00:37, 5 February 2013 (UTC)

::Perfect, will run a few sandbox tests over the articles that previously hit bugs before starting the trial. ·Add§hore· Talk To Me! 00:39, 5 February 2013 (UTC)

:::All of the bugs above are now fine. Also someone mentioned a vbug on my talkpage where BLP unsourced and Unreferenced were switched for non BLP's, this was due to incorrect regex. I have {{fixed}} the regex and added an extra check to this part of the bot. Just about to run the next 50 edits. ·Add§hore· Talk To Me! 01:00, 5 February 2013 (UTC)

::::{{BotTrialComplete}} 49/50 edits went as expected. The [https://en.wikipedia.org/w/index.php?title=Elahi_Ardabili&action=rollback&from=Addbot&token=5e8aa6a932b6932b402419a4c3a9f5d2%2B%5C last edit] with discussion here seems to still have a problem switching Unreferenced and BLP unsourced tags. Looking into it now, would be good to have another trial after this is fixed, i will also try and find some of the less common changes for the bot to hit, i.e. stubs, deadend, wikify, dating, double redirects. ·Add§hore· Talk To Me! 01:37, 5 February 2013 (UTC)

::::{{fixed}} the bug per [http://git.io/wKCBvw this commit]. Would love another trial to try and gain some more variety of types of changes. ·Add§hore· Talk To Me! 01:48, 5 February 2013 (UTC)

==Trial 4==

:{{botTrial|edits=100}} Sure thing. MBisanz talk 03:07, 5 February 2013 (UTC)

::Just about to start the trial, some changes have happened to the bot this morning so I will try and test these features in particular. ·Add§hore· Talk To Me! 10:42, 5 February 2013 (UTC)

:::{{BotTrialComplete}}, I have a few more small checks regarding the {{tl|Empty section}} template to add. Throughout the run I made lots of other small tweaks and toward the end of the run the but seemed to be getting everything right. I think 1 more trial would be good to stand as a final test. ·Add§hore· Talk To Me! 18:33, 8 February 2013 (UTC)

::::I have made the slight changes to the Bot making one change to when {{tl|Empty section}} is added and also adding the below.

::::*If multiple tags exist that can be put in {{tl|Multiple Issues}} then add them per Wikipedia:Bot_requests#template_bombing

::::*Remove duplicate tags on a page leaving the one with the oldest date per Wikipedia:Bot_requests#template_bombing

::::I am now ready for another trial. ·Add§hore· Talk To Me! 20:34, 8 February 2013 (UTC)

==Trial 5==

:{{botTrial|edits=100}} Sure thing. MBisanz talk 03:10, 9 February 2013 (UTC)

::{{BotTrialComplete}}{{BAGAssistanceNeeded}}. I made a few more changes to the identification of BLP articles which seems to be working now. I also fixed a bug where templates were being added above HAT notes, and also then the bot was dragging up hat noes from sections to the top (also fixed). Just spotted one final issue with an [https://en.wikipedia.org/w/index.php?diff=537427380&oldid=537364376 edit summary at the end] but other than that I think we are there. ·Add§hore· Talk To Me! 19:51, 9 February 2013 (UTC)

:{{BotApproved}} MBisanz talk 15:43, 11 February 2013 (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.