Wikipedia:Bots/Requests for approval/Theo's Little Bot 7
[[User:Theo's Little Bot|Theo's Little Bot 7]]
{{Newbot|Theo's Little Bot|7}}
Operator: {{botop|Theopolisme}}
Time filed: 00:19, Wednesday April 17, 2013 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python + mwclient
Source code available: [https://github.com/theopolisme/theobot/blob/master/tafi_tagger.py on github]
Function overview: Automatically adds and removes {{tl|TAFI}} from articles selected as one of Today's articles for improvement; additionally adds {{tl|Former TAFI}} to talk pages of former TAFIs.
Links to relevant discussions (where appropriate): Wikipedia_talk:Today%27s_articles_for_improvement#Improvement_tracking
Edit period(s): Weekly
Estimated number of pages affected: 30 per week (10 articles with template added, 10 articles with template removed, 10 talk pages updated with {{tl|Former TAFI}})
Exclusion compliant (Yes/No): No, unneeded
Already has a bot flag (Yes/No): Yes
Function details: Automatically adds and removes {{tl|TAFI}} from articles selected as one of Today's articles for improvement. See full source code in link above (tl;dr - uses pages like Wikipedia:Today%27s_articles_for_improvement/2013/16/1 that are filled in manually based on predetermined structure to determine which pages to edit based on ISO calendar). Additionally, tags the talk pages of all articles that it removes {{tl|TAFI}} from with {{tlg|Former TAFI|date{{=}}date_that_article_was_originally_tagged}}. Requesting speedy-ish approval so this can run on Monday morning at 00:00 UTC for next batch of TAFIs—I'll of course supervise this first run, but in a trial/don't-actually-save-the-revision test I just completely, everything worked perfectly well.
=Discussion=
Seems like a reasonable task/bot/operator for speedy-ish approval. -68.107.137.178 (talk) 02:17, 17 April 2013 (UTC)
{{BotTrial|days=7}} but you can keep running it at the end while waiting for review/final approval. MBisanz talk 11:42, 17 April 2013 (UTC)
- The bot will run every Monday at 00:01 UTC when TAFI is updated, so "please hold" until then. :) —Theopolisme (talk) 01:21, 18 April 2013 (UTC)
- {{BotTrialComplete}} [http://en.wikipedia.org/w/index.php?title=Special:Contributions/Theo%27s_Little_Bot&dir=prev&offset=20130422000206&limit=20&target=Theo%27s+Little+Bot][http://en.wikipedia.org/w/index.php?title=Special:Contributions/Theo%27s_Little_Bot&offset=20130422000216&limit=20&target=Theo%27s+Little+Bot] Cheers, —Theopolisme (talk) 01:11, 22 April 2013 (UTC)
::Should you be removing the template from the article and replacing it with a blank line, or just removing it completely? For the Listeria article, probably, but for the others will it be an AWB edit invitation? Also, should that talk page template go at the top above the existing templates? It seems they should just be added in order, but I don't know. Appears to have ran well; I only checked half a dozen. -68.107.137.178 (talk) 10:07, 22 April 2013 (UTC)
::Your first concern is [https://github.com/theopolisme/theobot/commit/d8e516cf9a0cf4bf94987f5a6aacf636215240e2 resolved] and the bot will now remove the template completely. Per WP:TPL, it looks like this template should theoretically go in at position #6 in the "Lead (bannerspace)" list. —Theopolisme (talk) 11:15, 22 April 2013 (UTC)
:::Thanks. Looks good. -166.137.210.32 (talk) 22:24, 22 April 2013 (UTC)
:{{BotApproved}} MBisanz talk 02:16, 23 April 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.