Commons:Bots/Requests/AVSBot 3

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

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

Bot's tasks for which permission is being sought:

Submissions from Commons mobile App may reference to Wikidata entity but never automatically fill in template for cultural heritage {{Cultural Heritage Russia}}. In order to keep the database of cultural heritage monuments in consistent state it is important to provide heritage template for each image of cultural heritage monument. This is also important for WLM contests. Proposed script performs the following actions:

  1. The script iterates over category for mobile uploads and detects images with Wikidata reference {{On Wikidata}} but without heritage template.
  2. The script looks for P1483 statement in Wikidata entity.
  3. The script adds {{Cultural Heritage Russia}} template with the corresponding number.

Automatic or manually assisted: Automatic.

Edit type (e.g. Continuous, daily, one time run): Runs on demand.

Maximum edit rate (e.g. edits per minute): up to 12 edits per minute.

Bot flag requested: (Y/N): N

Programming language(s): PHP

Avsolov (talk) 16:59, 5 September 2022 (UTC)[reply]

Discussion
Example run: [1] Avsolov (talk) 17:01, 5 September 2022 (UTC)[reply]
Looks OK for me, but please use ID and Wikidata in edit summaries. It may be good idea to add there link to Wikidata item and extracted identifier. --EugeneZelenko (talk) 14:24, 6 September 2022 (UTC)[reply]
Like this: [2]? Avsolov (talk) 18:15, 6 September 2022 (UTC)[reply]
Yes, but see my comment about ID and Wikidata above. --EugeneZelenko (talk) 14:04, 7 September 2022 (UTC)[reply]
You wrote: "please use ID and Wikidata in edit summaries. It may be good idea to add there link to Wikidata item and extracted identifier".
Edit summaries now look like this: "heritage id 7733631000 from wikidata entity d:Q29111253".
Isn't this what you mean? Avsolov (talk) 15:27, 7 September 2022 (UTC)[reply]
I meant heritage ID 7733631000 from Wikidata item d:Q29111253. Please note that Wikidata contains items. --EugeneZelenko (talk) 13:51, 8 September 2022 (UTC)[reply]
@EugeneZelenko, I changed "entity" to "item" in edit summaries of recent contibs: [3] Avsolov (talk) 14:13, 8 September 2022 (UTC)[reply]
Could you please also change id to ID or identifier and wikidata to Wikidata? --EugeneZelenko (talk) 14:17, 8 September 2022 (UTC)[reply]
@EugeneZelenko, see 10 recent contribs: [4] Avsolov (talk) 15:39, 8 September 2022 (UTC)[reply]
Looks OK for me. --EugeneZelenko (talk) 17:36, 8 September 2022 (UTC)[reply]

If there are no objections, I think task should be approved. --EugeneZelenko (talk) 14:36, 15 September 2022 (UTC)[reply]