Wikidata:Requests for permissions/Bot/JoRobot 7
The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved --Lymantria (talk) 10:04, 23 January 2021 (UTC)[reply]
JoRobot 7 edit
JoRobot 7 (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Joutbis (talk • contribs • logs)
Task/s: Removing media legend (P2096) in Catalan if there is a depicts (P180) with the same text.
Code: https://github.com/WikimediaCAT/wikidata-catabot/tree/master/llegendaImatges
Function details: the templates in the Catalan Wikipedia prefer media legend (P2096) to depicts (P180) when building the caption for an image. This is good, because the caption may have a nice description of the image. However, sometimes the text is exactly the same for both properties, with the difference that depicts (P180) includes a link. In that case, we would prefer to have depicts (P180). You may see an example in Pyrrharctia (Q1944198) or Peridea (Q3008050). So, I have written a script that checks if the item that depicts (P180) points to has the same label as what's on media legend (P2096). In a case like that, it will delete the Catalan (and only the Catalan) media legend (P2096). I have done some preliminary checks, and there are 1497 items where this deletion is needed, although the final number may vary slightly.
I have tested the script successfully in the Sandbox, and I can do some more test runs if needed.
--Joutbis (talk) 14:28, 9 January 2021 (UTC)[reply]
- Seems good to me BrokenSegue (talk) 15:16, 22 January 2021 (UTC)[reply]