Wikipedia:Bots/Requests for approval/Addbot 18


Addbot 18

[[User:Addbot|Addbot Task 18]]

{{Newbot|Addbot|18}}

Operator: ·Add§hore· Talk To Me!

Automatic or Manually Assisted: Automatic

Programming Language(s): PHP

Function Overview: Removing orphan tags from articles that now have incoming links.

Edit period(s): Continuous (run 3 times a day)

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

Function Details:

  • Gets a list of pages that include an orphan tag but now have incoming links
  • Find "\{\{ *orphan *(\| *(date|att) *= *(January|February|March|April|May|June|July|August|September|October|November|December) 200[0-9] *){0,2} *\}\}" and replace with nothing
  • Save page and be done

= Discussion =

  • I remember reading somewhere that an orphan constituted an article with one or less incoming links. How will the bot operate upon finding these? Also, will the bot distinguish between the namespaces - ie if it is only made unorphaned by a link from within userspace or projectspace, will the bot leave the orphan tag alone? neuro(talk) 12:01, 19 February 2009 (UTC)

::Oppsy forgot to add the link. The bot will read from [http://toolserver.org/~jason/data/adopted_orphans_list.txt this page] The page will show any article that has 3 or more incoming links from the article space (not disambiguations). This may change over time. ·Add§hore· Talk To Me! 12:02, 19 February 2009 (UTC)

::*That's just peaches. Cheers. neuro(talk) 12:05, 19 February 2009 (UTC)

:{{BotTrial|edits=20}} Looks simple enough. Richard0612 13:41, 19 February 2009 (UTC)

::All edits went well, Diffs include [http://en.wikipedia.org/w/index.php?title=Carnets_de_G%C3%A9ologie&diff=prev&oldid=271827437] [http://en.wikipedia.org/w/index.php?title=Carnets_de_G%C3%A9ologie&diff=prev&oldid=271827437] [http://en.wikipedia.org/w/index.php?title=Camp_(surname)&diff=prev&oldid=271827429] [http://en.wikipedia.org/w/index.php?title=CASY_cell_counting_technology&diff=prev&oldid=271827419] all of which had incommign links [http://en.wikipedia.org/wiki/Special:WhatLinksHere/CAPN10] ·Add§hore· Talk To Me! 13:54, 19 February 2009 (UTC)

:::{{BotApproved}} Everything looks OK, and this task will certainly be useful. One tiny thing: the edit summary is (Bot: Removing Orphan Tag (Nolonger an Orphan) (Report Errors)). You might want to fix that spacing! Richard0612 14:06, 19 February 2009 (UTC)

:The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.