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 POTD - Interwiki transclusion 8 3 Tacsipacsi 2023-11-14 22:39 Schlurcher 2023-11-05 16:57
2 Remove Template:WikiProject Aviation from file talk pages 4 2 Jeff G. 2023-11-27 11:00 Jeff G. 2023-11-27 11:00
3 Move files to another category 3 3 Jeff G. 2023-11-25 12:31 Jeff G. 2023-11-25 12:31
4 Change an image with another of the same thing, but better 4 2 Jeff G. 2023-12-08 20:44 Jeff G. 2023-12-08 20:44
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.


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]
Ok, that's more involved than I thought. Maybe someone else has the time to get this working. --Schlurcher (talk) 16:57, 5 November 2023 (UTC)Reply[reply]
I’ve created a Pywikibot script at https://gitlab.wikimedia.org/tacsipacsi/pywiki/-/blob/main/potd_tabular.py. Unfortunately it turned out that localized columns cannot be longer than 400 characters per language, and some captions are longer than that (some language(s) on November 15, November 27 and November 29 in this month – the error message doesn’t include any details other than the row and column numbers, which translate to days and the fact that captions are affected), which make the saving fail. I don’t know why the limit is 400, maybe it could be increased if not entirely removed. —Tacsipacsi (talk) 21:34, 7 November 2023 (UTC)Reply[reply]
Tacsipacsi, maybe a temporary ugly workaround would be to just have the minimal necessary tabular data that make interwiki transclusion possible while meanwhile asking for that limit to be changed? Or is that part unavoidable? — Klein Muçi (talk) 03:16, 8 November 2023 (UTC)Reply[reply]
@Klein Muçi: It depends on what you consider “making interwiki transclusion possible”. I could just not include any captions, which would technically make it work, but I don’t consider a picture of the day without caption useful. While I could also make the script only drop (or truncate) captions longer than 400 characters, I don’t want to do that because it would result in unpleasant surprises: since most captions in most languages would work, people would assume that everything’s okay, and then one day readers would be presented an English caption despite having a translated one, or a truncated caption. —Tacsipacsi (talk) 22:39, 14 November 2023 (UTC)Reply[reply]

Remove Template:WikiProject Aviation from file talk pages[edit]

See also: Commons:Deletion requests/Template:WikiProject Aviation. The template was a somewhat foolish attempt at adding an en-wiki style WikiProject banner template to the talk page of each and every aviation-related file. Luckily, that never took off, but there are still about 200 file talk pages that have that banner. If someone could remove them so we can move on with deleting the template, that would be great. Thanks, El Grafo (talk) 16:06, 24 November 2023 (UTC)Reply[reply]

@El Grafo: ✓ Done.   — 🇺🇦Jeff G. please ping or talk to me🇺🇦 12:23, 25 November 2023 (UTC)Reply[reply]
Thanks! El Grafo (talk) 08:44, 27 November 2023 (UTC)Reply[reply]
@El Grafo: You're welome!   — 🇺🇦Jeff G. please ping or talk to me🇺🇦 11:00, 27 November 2023 (UTC)Reply[reply]

Move files to another category[edit]

Hello. I need to move files from Category:Photographs by Petro Hruhko to Category:Photographs by Petro Hrushko. Thanks! Maks (talk) 07:51, 25 November 2023 (UTC)Reply[reply]

Help:Gadget-Cat-a-lot --Krd 08:17, 25 November 2023 (UTC)Reply[reply]
@Максим Огородник: ✓ Done, I finished this for you.   — 🇺🇦Jeff G. please ping or talk to me🇺🇦 12:31, 25 November 2023 (UTC)Reply[reply]

Change an image with another of the same thing, but better[edit]

Eyo! Please change File:VAM Nisaba Lagasch.jpg with File:Vessel fragment depicting the goddess Nisaba (?) and an inscription from Entemena, ruler of Lagash, circa 2430 BC, chlorite, Pergamon Museum, Berlin.jpg Neoclassicism Enthusiast (talk) 20:00, 8 December 2023 (UTC)Reply[reply]

@Neoclassicism Enthusiast: Do you want to swap filenames between File:VAM Nisaba Lagasch.jpg and File:Vessel fragment depicting the goddess Nisaba (?) and an inscription from Entemena, ruler of Lagash, circa 2430 BC, chlorite, Pergamon Museum, Berlin.jpg, or do you want to just modify the 21 uses on 17 projects? Please use internal links.   — 🇺🇦Jeff G. please ping or talk to me🇺🇦 20:16, 8 December 2023 (UTC)Reply[reply]
Just modify the uses Neoclassicism Enthusiast (talk) 20:30, 8 December 2023 (UTC)Reply[reply]
@Neoclassicism Enthusiast: ✓ Done in mainspace.   — 🇺🇦Jeff G. please ping or talk to me🇺🇦 20:44, 8 December 2023 (UTC)Reply[reply]