Commons:Bots/Work requests

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

Shortcut: COM:BR · COM:BWR

Bot policy and list · Requests to operate a bot · Requests for work to be done by a bot · Changes to allow localization  · Requests for batch uploads

Filing cabinet icon.svg
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 1 day.

Moving infos from category to description[edit]

We uploaded about 17,000 images from Paolo Monti Archive. We wanted to reuse as much infos as possible from the original catalogue, so we have a lot of categories to fix. We need in particular to tranfer a string from a category to the description. Most of images from Monti's Archive have an unexisting, long category. That category has those characteristics:

  1. not existing (red)
  2. shared only by an image (or few)
  3. formed by words separated by periods (".") (not by "-" as the other original categories).

We need to trasfer that string (deleting the category) to the beginning of the description field.
Example: File:Paolo Monti - Serie fotografica (Anzola d'Ossola, 1966) - BEIC 6329139.jpg has a category called "Anzola d'Ossola. Riale. Alberi." (note the commas). The text "Anzola d'Ossola. Riale. Alberi." must be transferred at the very beginning of the description (deleting that category and leaving intact the other categories and the previous description).
A query made by Federico Leva shows we have about 7,000 categories of more than 75 chars that are used in less than 3 images (and 1,000 used in 2). I suggest to consider every red category with 20 chars or more and with commas between words. Thank you for your help. --Marco Chemello (BEIC) (talk) 20:59, 23 May 2016 (UTC)

In other words, what's needed here is simply a run where each string in the list is removed from categories and moved immediately after "description =". --Federico Leva (BEIC) (talk) 13:20, 25 May 2016 (UTC)
This is still needed. Let us know if we can make the job easier in some way. Federico Leva (BEIC) (talk) 09:07, 29 July 2016 (UTC)
@Marco Chemello (BEIC), Federico Leva (BEIC): It's not that straightforward, since really isn't made for moving text from one place to another. I put together a list of the commands that would need to be run at toollabs:ahechtbot/Paolo_Monti.txt (6+ megabyte file), but I don't really have the time or resources right now to put together a bot approval request or run the bot. --Ahecht (TALK
) 14:59, 30 July 2016 (UTC)
Should be easy enough since Ahecht did most of the work. I'll file a BRFA for AvicBot to handle this. sısɐuuǝɔıʌ∀ (diskuto) 18:38, 30 July 2016 (UTC)
Filed at Commons:Bots/Requests/AvicBot 3. sısɐuuǝɔıʌ∀ (diskuto) 18:43, 30 July 2016 (UTC)
Thank you @Avicennasis:. Unfortunately your bot is not targeting the right categories: the categories that must be moved to description contains periods (".") to separate words (not "-"). Sorry if I wasn't clear enough. Thank you again. --Marco Chemello (BEIC) (talk) 22:31, 31 July 2016 (UTC)
@Marco Chemello (BEIC): Are you able to edit a file or two manually to provide a diff? sısɐuuǝɔıʌ∀ (diskuto) 04:27, 1 August 2016 (UTC)
@Avicennasis: Of course! example 1, 2, 3, 4, 5. Thank you again. --Marco Chemello (BEIC) (talk) 12:57, 1 August 2016 (UTC)
@Marco Chemello (BEIC): Ok, so are we excluding categories with -hyphens? Or is it specifically only categories with periods in the name? here is a dump of the next 100 categories to process. Which is the better option, removing categories with hyphens, or only keeping categories with periods? sısɐuuǝɔıʌ∀ (diskuto) 06:26, 2 August 2016 (UTC)
@Avicennasis: Yes I think we can exclude categories with -hyphens and include only categories with periods. Seeing the dump, the lines 1 to 4 must be excluded, and all the others are ok to be worked. Better to leave untouched all the categories with hyphens, as they must be converted manually into working Commons categories (we already fixed most of them). --Marco Chemello (BEIC) (talk) 13:16, 2 August 2016 (UTC)

Unfortunately I do not have the time needed to finish this task. I am sorry. I have withdrawn my bot request for this task. sısɐuuǝɔıʌ∀ (diskuto) 17:35, 26 August 2016 (UTC)

Removing stray subst:[edit]

insource:/\{\{subst\:/ finds many remnants of incorrectly substituted templates. The non-false-positives, i.e. outside of nowiki tags, might be removed by a bot (example). --Leyo 13:21, 5 August 2016 (UTC)

Moving from en.wp[edit]

There is currently 115 000+ files in Category:Move to Commons Priority Candidates on en.wp: is there any bot working on transferring them? Huldra (talk) 23:53, 7 August 2016 (UTC)

Human review before performing a transfer and some cleanup thereafter is required. --Leyo 14:29, 12 August 2016 (UTC)
I also think this would be a great thing to do to move some of those files to Commons. Unfortunately right now it is easier to move files from Flickr than from Wikipedia. --Jarekt (talk) 18:06, 12 August 2016 (UTC)
I have reviewed ( and marked them as such) many files there….but then nothing happens … This is rather frustrating Huldra (talk) 20:30, 26 August 2016 (UTC)

Error-checking for templates[edit]

I'm one of many people who write file descriptions with {{w}} links to integrate text with the English Wikipedia. One unfortunate problem with this is that occasionally I forget to type w| in the description, so we end up with links to nonexistent templates; see [1], in which I observed that the file transcluded {{Knox County, Ohio|Knox County}} instead of providing a link to {{w|Knox County, Ohio|Knox County}}, i.e. it displayed as Template:Knox County, Ohio instead of providing a link to Knox County.

Would it be possible for someone to have a bot go through a big database dump looking for possible errors of this sort? I'm envisioning the bot examining each file with the following algorithm:

  1. Does the file use {{Information}}? If not, go to the next file
  2. If the file uses {{Information}}, does it have text in the |Description= parameter? If not, go to the next file
  3. If the file has text in the |Description= parameter, is the {{w}} template used in that section? If not, go to the next file
  4. If {{w}} is used there, check all uses of other templates in the same section. Do all of those templates exist? If so, go to the next file
  5. If the bot finds a page using a nonexistent template in the |Description= parameter, check to see if that template previously existed. Did it previously exist, i.e. has it been deleted and the page just hasn't been updated? If so, go to the next file

If the nonexistent template has never existed, this is clearly a mistake of some sort; perhaps it's a failure to use {{w}}, or perhaps someone made a typo in another way. Either the file needs to be tagged (probably a maintenance category), or it needs to be logged in the bot's userspace. Nyttend (talk) 12:43, 22 August 2016 (UTC)


41 files from Category:Bahnhof Falkenstein (Vogtl) are requested to correct Flakenstein to Falkenstein in file names. --ŠJů (talk) 17:25, 29 August 2016 (UTC)

@ŠJů: Done. --Steinsplitter (talk) 17:59, 29 August 2016 (UTC)
@Steinsplitter: Thank You! --ŠJů (talk) 18:02, 29 August 2016 (UTC)