Commons:Bots/Work requests

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

Shortcuts: COM:BR· COM:BWR

Bot help and list · Requests to operate a bot · Requests for work to be done by a bot  · Requests for batch uploads

SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 7 days.

# Title Status Replies Participants Last editor Date/Time (UTC) Last botop editor Date/Time (UTC)
1 Batch crop and overwrite 4 3 BevinKacon 2020-05-02 19:56 AntiCompositeNumber 2020-04-11 16:39
2 Replace US state templates with national template ✓ Done 14 5 Waz8 2020-05-23 01:49 Kanashimi 2020-05-19 23:19
3 Files without licenses 4 2 AntiCompositeNumber 2020-05-20 02:55 AntiCompositeNumber 2020-05-20 02:55
  • In the last hour
  • In the last day
  • In the last week
  • In the last month
  • More than one month
Manual settings
When exceptions occur,
please check the setting first.

Replace US state templates with national template[edit]

We have tons of built-in-state-in-year categories, and they're populated by a convenient set of templates, e.g. the code for Category:Built in Ohio in 1900 is {{OhioArc|190|0}}. However, there's no fundamental need for specific state templates; we could do a single national template with a state parameter, e.g. {{USStateArc|Ohio|190|0}}. If I created a series of national templates, could someone run a bot to replace the old templates with the new? Here are the templates I was envisioning:

Of course, this isn't just Ohio; I'm envisioning doing the same with the categories for 47 states. (The exceptions are Georgia, New York, and Washington, whose categories use disambiguators that are beyond my very basic template-coding ability.) I'm sure we have some categories that consist of more than just a template like I'm describing; in order to avoid false positives, let's skip everything that has anything more than the template. Of course, I've not yet created the national templates, but if someone offers to help, I'll be happy to create the templates and do everything other than replacing old with new. If you'd like to see how it would work, look at Category:Churches in Ohio built in 1893, which uses {{USStateChurchArc}}, which I recently created; we've never had a churches-in-state-by-year tree until this month.

Thanks! Nyttend backup (talk) 12:48, 8 May 2020 (UTC)

@Nyttend backup:The replacement task itself is not a problem. --Kanashimi (talk) 01:23, 16 May 2020 (UTC)
So if I create the appropriate templates and give you details of what to do, would you be ready to start programming? Nyttend backup (talk) 10:50, 16 May 2020 (UTC)
Sure. :) Please ping me when you are ready. --Kanashimi (talk) 00:30, 17 May 2020 (UTC)
Hi, Kanashimi, and thank you. All the categories appear in this revision of the sandbox — for each of the 47 states in question, it's the five categories I mentioned above, plus {{OhioBridgesArcDecade}}. There should be 282 templates to replace (6 per state, 47 states) but there are really 278, because four templates don't exist: HawaiiBridgesArcDecade, NebraskaHousesArcDecade, NorthCarolinaBridgesArcDecade, and OklahomaBridgesArcDecade. I've made a sample edit for each of the six templates, again using Ohio:
(Note that OhioHousesArcDecade requires two edits; that's because I messed up on #1, not because the bot needs to make two edits.) Please let me know if you have any questions. Thanks! Nyttend (talk) 14:53, 17 May 2020 (UTC)
  •  Doing… --Cewbot (talk) 11:44, 18 May 2020 (UTC)
@Nyttend backup: The edits for each of the six templates of Ohio is all finished. Please check and tell me if it is OK. And looking for the code kanasimi/wikibot/blob/master/replace/20200518.Replace%20US%20state%20templates%20with%20national%20template.js#L15 on GitHub, please tell me the states_list, thank you. --Kanashimi (talk) 12:31, 18 May 2020 (UTC)
Kanashimi, I checked a number of Ohio pages, and they all look fine. Thanks! I don't understand your final sentence. All the templates that need replacement appear in this revision of the sandbox — is that not sufficient? If it's not, I can dump a list of templates into this page, but of course they'll be collapsed to save space. Nyttend backup (talk) 14:35, 18 May 2020 (UTC)
@Nyttend backup: It seems NG for Category:Houses built in New Jersey in 1790... --Kanashimi (talk) 13:43, 19 May 2020 (UTC)
All changed categories for states with names containing spaces have this same problem. Since the state-specific template did not contain a space, but the state name in its respective categories does, the string substitution generated non-existent category names. Waz8 (talk) 17:49, 19 May 2020 (UTC)
Face-smile.svg Thank you. I will fix the mistake. --Kanashimi (talk) 21:36, 19 May 2020 (UTC)
I've spot-checked at least one category from each state that uses the new template, and they all look fine. Thanks to you for writing the code to do the replacement and to Nyttend backup for suggesting and compiling the list of state templates. Waz8 (talk) 01:49, 23 May 2020 (UTC)
@Nyttend backup: ✓ Done Please check and tell me if there are anything wrong. --Kanashimi (talk) 23:19, 19 May 2020 (UTC)
Thanks! I've checked WhatLinksHere for all the templates, and they're all good. I've spot-checked a number of individual categories, and while I found a few errors, they were all things like this that predated the bot run. Aside from errors like NewJersey that you've fixed already, I've found zero errors by your bot, and zero pages where it should have run but didn't. Nyttend backup (talk) 14:15, 20 May 2020 (UTC)

Files without licenses[edit]

Based on my experience with User:OgreBot/Notable uploads, I see a lot of files without license tag(s) even a month after upload. We definitely had bot that performed this task in past, so will be great if new owner will take over this task. --EugeneZelenko (talk) 15:13, 16 May 2020 (UTC)

I put together, looking for files in Category:Files_with_no_machine-readable_license uploaded in the last 2 months and not already tagged for deletion. This is a fairly simple task, so I'll start coding it. --AntiCompositeNumber (talk) 21:01, 16 May 2020 (UTC)
Thank you for looking into task! It makes sense to dig deeper into history. --EugeneZelenko (talk) 17:24, 17 May 2020 (UTC)
I've just noticed that MifterBot is already approved and running on this task. I don't know what the operation details are for that bot, perhaps Mifter could provide more information. I'm just about ready to move toward testing and a request for approval if no issues are raised. --AntiCompositeNumber (talk) 02:55, 20 May 2020 (UTC)
@EugeneZelenko: Bot request filed: Commons:Bots/Requests/AntiCompositeBot 4 --AntiCompositeNumber (talk) 05:09, 2 June 2020 (UTC)

Syntax errors in Category:Pages using Artwork template with incorrect parameter[edit]

There is a high number of files in that category. I assume that many errors are caused by pipes in the text. Could someone please have their bot fix such errors (example)? --Leyo 13:08, 2 June 2020 (UTC)

Yes that is a lot of errors and 96k files with errors have DPLA in the file name. User:Dominic can you adjust your bot so it does not add any descriptions with the "|" character? I can try to see if I can fix those. --Jarekt (talk) 02:25, 3 June 2020 (UTC)
Working on it. See here. --Jarekt (talk) 02:55, 3 June 2020 (UTC)