Wikipedia:Bots/Requests for approval/Legobot 14

Legobot 14

[[User:Legobot|Legobot 14]]

{{Newbot|Legobot|14}}

Operator: {{botop|Legoktm}}

Time filed: 01:27, Wednesday July 25, 2012 (UTC)

Automatic, Supervised, or Manual: Automatic supervised

Programming language(s): Python

Source code available: [https://github.com/legoktm/pywikipedia-scripts/blob/master/digraph.py][https://github.com/legoktm/pywikipedia-scripts/blob/master/trigraph.py]

Function overview: Creates/modifies redirects related to digraphs & trigraphs.

Links to relevant discussions (where appropriate): botreq

Edit period(s): one time run

Estimated number of pages affected: Few hundred?

Exclusion compliant (Yes/No): Yes

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

Function details:

  • For each digraph here, if it doesn't exist already, create a redirect to the proper section link; if it exists and is a redirect to that page, add the sectional link; if it points to another page or isn't a redirect, skip it.
  • For each trigraph, use the list from here, and edit all the redirects so they point to List of Latin-script trigraphs with the proper sectional link.

=Discussion=

Simple task and the code looks tight. {{BotTrial|edits=50}} (Split between digraph and trigraph if possible.) Thanks, — madman 03:45, 26 July 2012 (UTC)

:{{BotTrialComplete}} I accidentally ran it for 52 edits (because I can't count), 26 on both digraph and trigraph. There was [https://en.wikipedia.org/w/index.php?title=Eu_%28digraph%29&diff=prev&oldid=504225743 one error], but that was because I made [https://en.wikipedia.org/w/index.php?title=User%3ALegoktm%2Flist&diff=504226648&oldid=503403286 an error] in creating the list. I also noticed that one redirect had a category which the bot overwrote ([https://en.wikipedia.org/w/index.php?title=Bh_%28digraph%29&diff=prev&oldid=504225823]), but seeing as the redirect shouldn't be in that category in the first place, I don't see a problem with it being overwritten. LegoKontribsTalkM 05:56, 26 July 2012 (UTC)

::There are 13 other articles that may be affected in that category; you may want to ask the bot requester (or someone in their project, if the requester is now inactive) if they really do want to essentially clear out and delete the category. — madman 11:19, 26 July 2012 (UTC)

:::Actually only Kh (digraph) will be overwritten, the other ones are articles (not redirects) so the bot won't touch those. I've dropped the requester a note regardless. LegoKontribsTalkM 20:38, 26 July 2012 (UTC)

:::Kwami [https://en.wikipedia.org/w/index.php?title=User_talk%3AKwamikagami&diff=504325073&oldid=504322608 said] it was ok to remove the category from the redirects. LegoKontribsTalkM 22:44, 26 July 2012 (UTC)

{{BAGAssistanceNeeded}} Can I go ahead with this now? Thanks, LegoKontribsTalkM 20:09, 30 July 2012 (UTC)

{{BotApproved}} Sure; everything looks good. — Earwig talk 22:26, 30 July 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.