Commons:Bots/Work requests

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

Shortcuts: COM:BR • COM:BWR

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


# Bot request Status 💬 👥 🙋 Last editor 🕒 (UTC) 🤖 Last botop editor 🕒 (UTC)
1 Delete inaccurate coordinates from sets of photos from the Brno Exhibition Centre
Resolved
6 3 Schlurcher 2023-10-31 10:10 Schlurcher 2023-10-31 10:10
2 POTD - Interwiki transclusion 4 3 Tacsipacsi 2023-11-01 11:32 Schlurcher 2023-10-30 11:25
3 Delete unnecessary licensing information from files 7 2 Adamant1 2023-10-31 12:44 Schlurcher 2023-10-31 09:29
Legend
  • 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.


Delete inaccurate coordinates from sets of photos from the Brno Exhibition Centre[edit]

Please remove all {{Location}} templates and Structured Data coordinates from file sets by Sevela.p.

Ca 654 files affected. The coordinates are very imprecise, scattered at a kilometer distance from the exhibition center. It can be assumed that even for those photos that have a defined position inside the exhibition center with coordinates, the coordinates are inaccurate and do not correspond to the actual location. The number of mislocated photos in a wide area around the fairgrounds makes it impossible to find correctly located photos in this area. (I pointed this out to the uploader on his talk page, he didn't comment. This year, his activity on Wikimedia projects is minimal.) ŠJů (talk) 11:42, 2 October 2023 (UTC)Reply[reply]

@ŠJů: I've done some of this. I've used VisualFileChange to remove some of the {{Location}} templates, but VFC can't remove structured data so that's still present. For Category:Autosalon Brno 2011 it looked to me like some of the co-ordinates were clustered around three distinct buildings on the map, so I've preserved those ones and deleted the rest. Maybe someone knows some tools to apply my removals to structured data as well. --bjh21 (talk) 13:32, 23 October 2023 (UTC)Reply[reply]
I would have assumed that Help:Gadget-ACDC is capable of this. As far as I see though, it is not, so I raised this on the discussion page. If there is no quick response, I can do this with my bot, but this would require at least some coding, so I'll wait first for a response. --Schlurcher (talk) 11:23, 30 October 2023 (UTC)Reply[reply]
It has been confirmed that this is not doable within AC/DC. --Schlurcher (talk) 09:32, 31 October 2023 (UTC)Reply[reply]
Removed the SDC information with my bot. Please remember that by bot will eventually add that information back if the coordinate information remains in the file descriptions. --Schlurcher (talk) 10:10, 31 October 2023 (UTC)Reply[reply]
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Schlurcher (talk) 10:10, 31 October 2023 (UTC)Reply[reply]

POTD - Interwiki transclusion[edit]

Hello! Is there any bot operator willing to help in achieving this idea here? - Klein Muçi (talk) 00:06, 23 October 2023 (UTC)Reply[reply]

Sounds reasonably easy. Could you show the steps manually that you expect to do the bot on a daily basis? --Schlurcher (talk) 11:25, 30 October 2023 (UTC)Reply[reply]
Schlurcher, thank you for your interest!
Just so I don't accidentally lead you astray, I believe @Tacsipacsi can explain better the exact steps needed to be done.
I'm assuming the bot daily checks the photo of the day and converts the template for it into tabular data which then can be interwiki transcluded? — Klein Muçi (talk) 23:03, 31 October 2023 (UTC)Reply[reply]
I have no exact steps, it’s up to the bot owner how exactly to do it. It needs to contain two things for each day:
  • the file name from Template:Potd/YYYY-MM-DD (e.g. Template:Potd/2023-11-01: Muelle Monroe, Chicago, Illinois, Estados Unidos, 2012-10-20, DD 10.jpg; can be got by expanding the wikitext {{Potd/YYYY-MM-DD}} in the context of API),
  • all captions from Template:Potd/YYYY-MM-DD (xx) (e.g. Template:Potd/2023-11-01 (en): View of quiet Monroe Harbor in fall at dawn, [[:en:Chicago|Chicago]], Illinois, USA., Template:Potd/2023-11-01 (fr): Soleil couchant sur le ''Monroe Harbor'', un port de [[:fr:Chicago|Chicago]] (États-Unis).; can be got by expanding the wikitext {{Potd/YYYY-MM-DD (xx)}} in the context of API).
It should be stored on .tab pages in the Data namespace, with periodically (e.g. monthly or yearly) new pages to prevent the page to be loaded getting too large, and have licensed CC BY-SA 4.0 because of the captions originating from CC BY-SA 4.0 template pages. That’s the requirements.
An implementation idea is to use the following schema:
{
    "license": "CC-BY-SA-4.0",
    "description": {
        "en": "Picture of the day data for November 2023"
    },
    "sources": "[[Template:Potd/2023-11]]",
    "schema": {
        "fields": [
            { "name": "date", "type": "string", "title": { "en": "Date" }},
            { "name": "filename", "type": "string", "title": { "en": "File name" }},
            { "name": "caption", "type": "localized", "title": { "en": "Caption" }}
        ]
    },
    "data": [
        [
            "2023-11-01",
            "Muelle Monroe, Chicago, Illinois, Estados Unidos, 2012-10-20, DD 10.jpg",
            {
                "en": "View of quiet Monroe Harbor in fall at dawn, [[:en:Chicago|Chicago]], Illinois, USA.",
                "fr": "Soleil couchant sur le ''Monroe Harbor'', un port de [[:fr:Chicago|Chicago]] (États-Unis).",
                
            }
        ],
        
    ]
}
Tacsipacsi (talk) 11:32, 1 November 2023 (UTC)Reply[reply]

Delete unnecessary licensing information from files[edit]

Hi. Would it possible to have a bot remove some pointless licensing information from a bunch of files related to Allentown, PA? I think there's like 65,000 files that all have the same information. It's not really necessary though and just screws with searches for anything semi-related to things that are mentioned in the details. One example is the licensing information in File:1929 - Allentown - Bethlehem Gas Company - 31 Mar MC - Allentown PA.jpg and Category:Newspaper advertising in Allentown, Pennsylvania, which the file is in, would probably be a good place to start. Thanks. Adamant1 (talk) 01:39, 30 October 2023 (UTC)Reply[reply]

Hi, could you please show a manual diff of the expected change that should be repeated over the category proposed? --Schlurcher (talk) 11:26, 30 October 2023 (UTC)Reply[reply]
@Schlurcher: Yeah sure. Here's one. I want essentially everything in the yellow block of text to be removed. --Adamant1 (talk) 11:32, 30 October 2023 (UTC)Reply[reply]
@Adamant1: There not that many in the category you mentioned. So you would need a larger net. Maybe you want to give it a try, I've used Commons:AWB for this. --Schlurcher (talk) 16:20, 30 October 2023 (UTC)Reply[reply]
@Schlurcher: I'll look into that. If you check out this search it gives 67,248 results, most of which are caused by the paragraph that I'm trying to get rid. I don't really have the time or knowledge to deal with that many instances even if I'm allowed access to the tool. So I'd still prefer it they were just fixed with a bot as opposed to me doing it myself and potentially screwing something up because I'll be in a hurry and not know what I'm doing. --Adamant1 (talk) 18:03, 30 October 2023 (UTC)Reply[reply]
@Adamant1: I've now removed these statements from 4'500 files with my bot. --Schlurcher (talk) 09:29, 31 October 2023 (UTC)Reply[reply]
Thanks. That's at least an improvement. I'll see what I can do on my end when I have the time. --Adamant1 (talk) 12:44, 31 October 2023 (UTC)Reply[reply]