Commons:Bots/Requests/JeffGBot 5

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

JeffGBot (talk · contribs) 5

Operator: Jeff G. (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought:

  • Use COM:AWB, COM:JWB, or COM:VFC to do mundane non-controversial maintenance things at higher speeds than humans are expected to perform, while not clogging up recent changes. Specifically, substitute templates that must be substituted in the intended namespaces. There are 212 such templates which transclude {{Must be substituted}} in their descriptions and are therefore listed here per this count, but some of the templates may not be transcluded at present. Of course, VFC can only be used in filespace. I have already made 309 such edits (listed here) to subst Template:PD-Trademark-Text-Logo using JWB and my main account, without enhanced speed and edit summary, but the process would be more efficient if I were allowed to go faster using my bot account and flag.

Automatic or manually assisted: Manually assisted for AWB and JWB, automatic for VFC

Edit type (e.g. Continuous, daily, one time run): One time runs at the discretion of the operator, one template at a time

Maximum edit rate (e.g. edits per minute): 60 edits per minute for semiautomatic AWB and JWB or as fast as VFC can go

Bot flag requested: (Y/N): N (already have it)

Programming language(s): AWB, JWB, or VFC (Compiled C++, JavaScript)

  — Jeff G. ツ please ping or talk to me 13:31, 30 March 2018 (UTC)[reply]

Discussion

OK with me as long as detailed edit summaries are used. --EugeneZelenko (talk) 14:00, 30 March 2018 (UTC)[reply]
@EugeneZelenko: My initial summary is "Bot: Substing Template:TEMPLATENAMEHERE. (Task 5)", but I am open to suggestions.   — Jeff G. ツ please ping or talk to me 14:04, 30 March 2018 (UTC)[reply]
Please perform some test edits on the bot account. --Schlurcher (talk) 22:29, 1 April 2018 (UTC)[reply]
@Schlurcher: Here are 21 test edits substing Template:Flickr author with JWB. I need help in telling VFC how to select such files, if that is even possible.   — Jeff G. ツ please ping or talk to me 23:10, 1 April 2018 (UTC)[reply]
Try mw:Help:CirrusSearch#Hastemplate --Zhuyifei1999 (talk) 23:34, 1 April 2018 (UTC)[reply]
@Zhuyifei1999: Thanks, I will.   — Jeff G. ツ please ping or talk to me 23:48, 1 April 2018 (UTC)[reply]
I'm generally very supportive of this task. There are some comments I have regarding the test edits and the task in general.
  • To some extent this task should also be educational to the user adding the template in the first place. It would be good to have subst: somewhere in the edit summary. Something like: Bot: Applying subst: to Template:TEMPLATENAMEHERE. (Task 5)"
  • For {{Flickr author}} a recursive subst is necessary: {{subst:Flickr author|nsid=XXXX|name=John Doe|subst=subst:}}. Otherwise, the #if are not resolved leading to ugly code. See: [1] for an example and [2] for an explanation.
  • I'm not sure if templates should be substed outside of their intended namespace. Discussion-worthy example from the test edits is: [3]. Another examples might be the template {{Npd}}. This template is intended to be used in the file namespace. I'm not sure if it should be, for example, substed in the user namespace. Users may place it there just as a template for further use.
--Schlurcher (talk) 21:13, 4 April 2018 (UTC)[reply]
Recursive subst is now done automatically on the template code side without needing |subst=subst, using a documented workaround --Zhuyifei1999 (talk) 01:21, 5 April 2018 (UTC)[reply]
@Schlurcher and Zhuyifei1999: Thank you for your comments. I can certainly use that summary and check for the need to recursively subst. An enabled template like {{Npd}} could lead to deletion in seven days if the enabler is not careful, no matter what I do.   — Jeff G. ツ please ping or talk to me 02:05, 5 April 2018 (UTC)[reply]
Thanks, no further comments. --Schlurcher (talk) 16:48, 6 April 2018 (UTC)[reply]
@Schlurcher: You're welcome.   — Jeff G. ツ please ping or talk to me 07:08, 7 April 2018 (UTC)[reply]
Great. You are looking for this page: Commons:AutoWikiBrowser/CheckPage. The closing buerocrat might be so kind to add you directly. --Schlurcher (talk) 05:02, 11 May 2018 (UTC) (Both you and your bot are listed already)[reply]
@Schlurcher: Apologies, this is the first time I am using AWB with a bot flag, and I misinterpreted the reason for the greying-out of some of the boxes on the "Bots" tab (the reason now is that "Auto save" wasn't checked; before it was because I didn't have the bot flag). I contemplate setting "Delay" to 1 "seconds between edits" and checking 'Suppress "using AWB" in edit summary'. With those settings, I just did 37 edits substing {{Please link images}} at a rate of 29 edits/min. Commons:Message templates and its children don't subst, I think changing that would need consensus and might be a bad idea because they document the current state of affairs dynamically by design.   — Jeff G. ツ please ping or talk to me 02:20, 12 May 2018 (UTC)[reply]

Approved. --Krd 05:32, 13 May 2018 (UTC)[reply]