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
Gnome-system-run.svg


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 replace.py 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 replace.py 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
PAGE
) 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)

For images that appear in both categories add a third category[edit]

Yes check.svg Resolved

Would some please be able to do the following: for images that appear in both the following categories (including all subcategories) please could you add Category:Images from Wiki Loves Earth Biosphere Reserves 2016‎

Thanks very much indeed

--John Cummings (talk) 12:11, 25 July 2016 (UTC)


  • Category:Images from Wiki Loves Earth 2016 in Bulgaria

and any of the following:

  • Category:Pirin National Park
  • Category:Strandzha Nature Park
  • Category:Rila National Park


  • Category:Images from Wiki Loves Earth 2016 in France

and any of the following:

  • Category:Cévennes_National_Park
  • Category:Parc naturel régional du Luberon


  • Category:Images from Wiki Loves Earth 2016 in Germany

and any of the following:

  • Category:Nationalpark Berchtesgaden
  • Category:Nationalpark Schleswig-Holsteinisches Wattenmeer
  • Category:Nationalpark Niedersächsisches Wattenmeer
  • Category:Parc naturel régional des Vosges du Nord
  • Category:Naturpark Pfälzerwald


  • Category:Images from Wiki Loves Earth 2016 in Greece

and any of the following:

  • Category:Samaria Gorge
  • Category:Mount Olympus


  • Category:Images from Wiki Loves Earth 2016 in India

and any of the following:

  • Category:Sundarbans National Park
  • Category:Nanda Devi National Park
  • Category:Valley of Flowers National Park
  • Category:Satpura_National_Park
  • Category:Pachmarhi


  • Category:Images from Wiki Loves Earth 2016 in Spain

and any of the following:

  • Category:Parque Nacional de Ordesa y Monte Perdido
  • Category:Montseny
  • Category:Doñana National Park
  • Category:Parque Natural de Cabo de Gata-Níjar


  • Category:Images from Wiki Loves Earth 2016 in Ukraine

and any of the following:

  • Category:Carpathian_Biosphere_Reserve
  • Category:Biosphere_reserves_in_Ukraine


I can do it. -- Magioladitis (talk) 12:43, 25 July 2016 (UTC)

  • Bulgaria: 457.
  • France: 54
  • Germany: 123
  • Greece: 122
  • India: 119
  • Spain: 159
  • Ukraine: 182

-- Magioladitis (talk) 13:07, 25 July 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)