Commons:Bots/Requests/BMacZeroBot 5

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

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

Bot's tasks for which permission is being sought: Replace templates like {{PD-old-50}}, {{PD-old-50-1923}}, and {{PD-old-50-1996}} with {{PD-old-auto}}, {{PD-old-auto-1923}}, and {{PD-old-auto-1996}} respectively (including 'deathyear' parameter) where the page with the license also has a Creator template acting as an author with a readable death year.

This will usually be run at the same time as the task from Commons:Bots/Requests/BMacZeroBot 4. BMacZero (talk) 18:25, 12 March 2016 (UTC)[reply]

Automatic or manually assisted: Automatic

Edit type (e.g. Continuous, daily, one time run): One big run for now

Maximum edit rate (e.g. edits per minute): 6

Bot flag requested: (Y/N): N (already has)

Programming language(s): C#

BMacZero (talk) 18:25, 12 March 2016 (UTC)[reply]

Discussion

I did a test run of 30 - see bot contribs. BMacZero (talk) 18:25, 12 March 2016 (UTC)[reply]

Looks good to me. --Krd 05:40, 13 March 2016 (UTC)[reply]
I think will be good idea to use link to templates in edit summaries. --EugeneZelenko (talk) 15:36, 13 March 2016 (UTC)[reply]
I refined the edit summaries (after a few small snafus), and ran more tests. I also fixed a problem with handling licenses inside {{PD-Art}}. BMacZero (talk) 06:43, 14 March 2016 (UTC)[reply]
Looks OK for me, but it's seems logical to use Wikidata as source of death date (if creator template is available). --EugeneZelenko (talk) 14:17, 14 March 2016 (UTC)[reply]
Added and tested a few. BMacZero (talk) 04:51, 15 March 2016 (UTC)[reply]
But could be date of death queried without copying it to file description? --EugeneZelenko (talk) 14:13, 15 March 2016 (UTC)[reply]
Oh I see what you mean. I hadn't considered that. I suppose it could be done with Arbitrary Access (eventually), though I don't think it can be done completely automatically - a bot would probably still have to go through and add the Creator's Wikidata ID as a parameter. Unless Scribunto can pull info from the Creator template on the page that transcludes the module? Maybe someone knows more. BMacZero (talk) 16:01, 15 March 2016 (UTC)[reply]
@BMacZero: Please advise what this is going to mean. Is this request obsolete per above comment? --Krd 09:18, 28 March 2016 (UTC)[reply]
@Krd: I started a discussion at Commons:Village_pump#Proper_implementation_of_PD-old-auto_with_Arbitrary_Access. BMacZero (talk) 16:57, 28 March 2016 (UTC)[reply]
Both User:Jarekt and I (so far) feel that the current implementation of PD-old-auto is still the best one. That would mean that we should go ahead with this request (can give the VP thread more time if you like, though). BMacZero (talk) 20:46, 4 April 2016 (UTC)[reply]
The deathyear seems the simpler and most clear. It is also a system we have been using for a while. I am OK with creating new mechanisms of passing information around by "quering without copying it to file description" but at the moment I can not think of a way to do it (we could copy Wikidata Q-codes instead and add an expensive function to look up the deathyear). So I would stick to the old ways of doing businesses. --Jarekt (talk) 01:59, 5 April 2016 (UTC)[reply]
By the way Some comments about edits:
  • I would not do {{PD-old-100}} -> {{PD-old-auto}} conversions. {{PD-old-auto}} will do a lot of non-trivial calculations before calling {{PD-old-100}}. I think we should verify and even add unused deathyear for clarity. But {{PD-old-100}} is so much simpler.
  • Edits like this are not the best option. If there is PD-Art or PD-Scan than PD-old-uto should be combined with it. Multiple PD-old templates should be merged.
  • Could you test on tricky cases with multiple Creator templates. PD-1923 (or {{PD-1996}}) and PD-old templates, which should be combined, etc.
--Jarekt (talk) 02:17, 5 April 2016 (UTC)[reply]
All sounds good - will do it when I get a chance. BMacZero (talk) 21:01, 6 April 2016 (UTC)[reply]
We may need to put this request on hold. I'm not sure when the next chance I'll get to work on it will be. BMacZero (talk) 17:20, 16 April 2016 (UTC)[reply]
@BMacZero: Shall this still be kept on hold, or should it be closed for now and be reopened later when ready? --Krd 18:08, 10 June 2016 (UTC)[reply]
@Krd: Yes, let's do that. Thanks. BMacZero (talk) 00:16, 13 June 2016 (UTC)[reply]
("that" being close and reopen later). BMacZero (talk) 00:17, 13 June 2016 (UTC)[reply]