Jump to content

Wikipedia:Bots/Requests for approval/ProgrammingBot 2

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by ProgrammingGeek (talk | contribs) at 00:38, 23 January 2019 (Discussion: Replying to SQL (reply-link)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

Time filed: 00:41, Wednesday, November 14, 2018 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): JavaScript (nodejs)

Source code available: GitHub

Function overview: Adds {{WikiProject Protected areas}} to talk pages in categories:

That do not already have the template.

Links to relevant discussions (where appropriate): WP:Bot requests#Add a wikiproject template to New York City parks articles

Edit period(s): Daily

Estimated number of pages affected: ~650

Exclusion compliant (Yes/No): Yes

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

Function details: Adds the template to talk pages of articles in the categories above, provided they do not already have the template. Will fill in the class= field if there is another template with it filled out.

Discussion

  • Seems uncontroversial. Approved for trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. SQLQuery me! 09:23, 20 November 2018 (UTC)[reply]
  • This bot should put the WikiProject template inside {{WikiProjectBannerShell}} if it exists on the talk page. In situations where the banner shell does not exist, the bot should respect WP:TALKORDER as best as possible (putting the banner at the end of the existing templates is probably better than putting it at the top). --AntiCompositeNumber (talk) 17:54, 21 November 2018 (UTC)[reply]
  • A few notes from some things that have already happened
    • The bot started editing before it logged in. Whoops. The edits have been oversighted and the call to begin editing is now in the callback for the login function. Although I spotted the error and contacted the oversight team almost immediately, thank you to Natureium for bringing it to the bot noticeboard. I've already thanked Xaosflux for showing me the assert functionality of the API (link).
    • Thank you to AntiCompositeNumber for your input, I'm working on implementing that and will do so before continuing with the trial
    • Due to some admittedly lazy programming on my part, the bot did not properly detect templates on pages, meaning that many times the bot tagged the page with multiple templates. I'm working on fixing that issue as well, and the erroneous edits have been rollbacked (see here).
  • Thank you for your continued patience, it's been fun learning to program the bot and my skills are improving. Kind regards, ProgrammingGeek talktome 19:24, 22 November 2018 (UTC)[reply]
  • Work has now resumed (I took last week off to recover from a grueling few weeks at school). Thanks, ProgrammingGeek talktome 15:59, 26 November 2018 (UTC)[reply]
    ProgrammingGeek, No problem, thanks for keeping us updated. Take all the time you need. SQLQuery me! 20:52, 27 November 2018 (UTC)[reply]
    ProgrammingGeek, It's been a couple months, I just wanted to check in and make sure that this is still being worked on. SQLQuery me! 23:46, 22 January 2019 (UTC)[reply]
    Sorry, school's been difficult recently. Fortunately, the paper I've been plugging away at is due on Saturday, so after that it should be quick finishing up. Thanks for your continued patience. programmingGeek(contribs) { this.timestamp = 00:38, 23 January 2019 (UTC)[reply]