Commons:Bots/Work requests

Une page de Wikimedia Commons, la médiathèque libre.
Aller à : navigation, rechercher

Raccourci : COM:BR · COM:BWR

Règles d’utilisation et liste des bots · Demande d’autorisation · Requête aux bots · Changements pour permettre la localisation  · Requêtes de versement en masse
Gnome-system-run.svg


Filing cabinet icon.svg
SpBot archive toutes les sections marquées avec {{Section resolved|1=~~~~}} depuis 1 jour.

Moving infos from category to description[modifier]

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) (discussion) 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) (discussion) 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) (discussion) 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) (discussion) 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) (discussion) 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) (discussion) 13:16, 2 August 2016 (UTC)

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

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 (discussion) 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 (discussion) 12:43, 25 July 2016 (UTC)

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

-- Magioladitis (discussion) 13:07, 25 July 2016 (UTC)

Checkmark Cette discussion est résolue et peut être archivée. Si vous divergez d'opinion, remplacez ce modèle par votre commentaire. BMacZero (discussion) 01:20, 23 August 2016 (UTC)

Removing stray subst:[modifier]

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[modifier]

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 (discussion) 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 (discussion) 18:06, 12 August 2016 (UTC)

Error-checking for templates[modifier]

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 (discussion) 12:43, 22 August 2016 (UTC)