Commons:BR
This is a page for requesting work to be done by a bot. This is an appropriate place to simply put ideas for bots. However be aware of various tools available to all users which can be used to accomplish the work without the need for a bot:
|
| SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 7 days. | |
|
|
| Legend |
|---|
|
|
|
|
|
| Manual settings |
| When exceptions occur, please check the setting first. |
Categorize photos from Polish Wiki Loves Monuments by administrative unit
Hello! In Polish WLM there are special prizes for photos from certain administrative units. Therefore, we categorize the photos by voivodeship (i.e. top-level administrative unit). I have prepared a list of files to be added to respective categories at User:Msz2001/WLM2025_categories.
The page has 16 sections, files in each section should be added to the category in the section header. Thanks in advance, Msz2001 (talk) 18:41, 1 October 2025 (UTC)
- @Msz2001: Can you give an example of exactly what category you'd want added to a specific file?
- Also, that page is pretty big and is hard to load. -- Auntof6 (talk) 19:38, 1 October 2025 (UTC)
- @Auntof6 For example, add File:2023-05-13_090837_00535_Wrocław,_archikatedra_św._Jana_Chrzciciela_we_Wrocławiu.jpg to category Category:Images from Wiki Loves Monuments in Poland – dolnośląskie voivodeship (which is specified in the section header).
- If the page takes much time to load, it might be easier to take the data from the edit view. It loads quickly, especially with syntax highlighting turned off. The structure of the source code of this page is very predictable (either file link preceded by # or category link in header). Msz2001 (talk) 19:54, 1 October 2025 (UTC)
- User:Cryptic-waveform did something similar before: see Commons:Bots/Work requests/Archive 17#Mass categorization of Wiki Loves Monuments Poland photos. Wikiwerner (talk) 14:57, 25 December 2025 (UTC)
- I have started work on this. The first step was to expand {{Wiki Loves Monuments 2025}} to allow specifying the voivodeship (Revision #1144865823). Note that I'm using the English names of the voivodeships per COM:LANG. I have started to move images from Wiki Loves Monuments 2025 in Kraków by modifying the template. Images that don't have a voivodeship are now added to Images from Wiki Loves Monuments 2025 in Poland missing voivodeship categorization. This follows the pattern used for US images. Cryptic-waveform (talk) 15:25, 9 January 2026 (UTC)
- Please don't mess with 10+ year old templates like {{Wiki Loves Monuments 2012}}. These templates are per country. If you want to add more categorization, that's fine, just don't edit these templates. Multichill (talk) 20:18, 11 January 2026 (UTC)
- @Multichill Hi. Sorry about that. I think given there are US states in the template it was an honest mistake on the @Cryptic-waveform side. I'll try to prepare our template for the next event and include it in the campaign. If you have suggestions on naming conventions (for tpl and cats) please let me known (here or on my talk page). Nux (talk··dyskusja) 21:38, 11 March 2026 (UTC)
Adding noinclude to deletion request page categories
Could some bot please wrap categories into <noinclude> and </noinclude> for deletion request categories?
If categories aren't inside noinclude tags, the page for the DRs of the respective day will be in categories like Category:Copyright deletion requests/deleted.
In this example, pages Commons:Deletion requests/Archive/2023/10/10, Commons:Deletion requests/Archive/2025/02/16, Commons:Deletion requests/Archive/2025/06/11, and Commons:Deletion requests/Archive/2025/09/10 are included there. Probably some users fix these things manually – I did it too for a few cases – but it's incomplete, slow and – maybe most importantly – costing valuable scarce volunteer time. Prototyperspective (talk) 16:48, 2 December 2025 (UTC)
- @Prototyperspective:
Done. Krdbot already does this periodically, see Special:Diff/1135055185. — 🇺🇦Jeff G. ツ please ping or talk to me🇺🇦 17:31, 24 December 2025 (UTC)
- Thanks for the info and happy new year to you two. But it is
not fully done as can be seen from the linked example(s). @Krd: So this request is changed to be about an upgrade of Krdbot so it fixes all the pages. Maybe it only checks pages once the DR is closed but not afterwards even if categories got added without noinclude afterwards. - Krd, could you change the bot so it checks deletion sorting categories for DR-day-pages in the category or does something else depending on why there are still DR pages with categories not wrapped in noinclude tags? Prototyperspective (talk) 21:30, 1 January 2026 (UTC)
- I can find a lot more examples by searching with
intitle:"Deletion requests/Archive/". Then I use a Python script to find the pages having categories with 'deletion requests' in the title (excluding Category:Commons deletion requests archives). Next it searches which transcluded pages have got categories that are not between noinclude tags. I fixed some of them manually. I have detected no false positives. Should we update Krdbot to find these? Wikiwerner (talk) 13:14, 19 April 2026 (UTC)- I have expanded my script to add the tags too, after searching which deletion request contains cats without noinclude tags: see User:Wikiwernerbot/Noinclude tags in categories. @Krd: could you use parts of it to update your bot? Otherwise I will file a BRFA myself. Wikiwerner (talk) 11:44, 26 April 2026 (UTC)
- I can find a lot more examples by searching with
- Thanks for the info and happy new year to you two. But it is
Categorization of Category:Photographs by Anil Öztas/Lens focal length
For each category in Category:Photographs by Anil Öztas/Lens focal length, add appropriate lens focal length category. Example: Category:Photographs by Anil Öztas/Lens focal length 84 mm would have [[Category:Lens focal length 84 mm|Anil Öztas]] added. Thanks. OmegaFallon (talk) 06:28, 5 December 2025 (UTC)
- @A. Öztas: Have you seen this? Maybe this request could be handled by Bienchen? Just asking, best, – Aristeas (talk) 17:26, 2 March 2026 (UTC)
- Or should it be |Öztas, Anil ? Wikiwerner (talk) 10:42, 2 May 2026 (UTC)
- We absolutely do not need separate categories for every single lens focal length a photographer has used. Pi.1415926535 (talk) 21:31, 2 May 2026 (UTC)
Changing values in the date field based on categorization
A bot that either puts files on a list of files to check or even directly fixes the date for files that have a false date set would be useful.
For example, this file has Category:1912 in art and Category:Science fiction in the 1910s set but had 2013 in the date field because probably that was the date uploaded at some source site the file was imported from. Corrected in Special:Diff/1127271170.
Doing this manually won't yield much, it needs an approach that works at scale. Another complementary idea would be to add a note to the UploadWizard to ask users to enter the date taken or first released in there. Prototyperspective (talk) 23:11, 8 December 2025 (UTC)
- This request is valid for faithful representation, but there are other types of images – e.g. photos that show statues or murals at angle, or even paintings of statues. In these cases, the date the picture was created is also relevant and shouldn’t be blindly removed. So if a bot solution is created, it should somehow differentiate between the two cases (or really just create a list, from where humans can differentiate). —Tacsipacsi (talk) 15:15, 24 December 2025 (UTC)
- I'm not proposing the date is removed so I don't fully understand your comment. Maybe the best solution would be to have a bot just create a list of files with the value in the date field not matching the date in the file's categories with a column(s) for the date-category and a way to fix (ie replace [not remove]) the date for selected categories complemented with a way to exclude files if they're in certain categories and to exclude categories from 'date categories'. This way one could fix the mismatches at scale if this works for category branches (ie also the selected category's subcategories) but leave out categories where the date-category is not necessarily the date of what the media shows / when the media was taken. An example for the latter would be a category about an event being in Category:1912 in politics containing a photo of a memorial taken in 2023. The maybe easiest solution there would be to simply not consider Category:Politics by year subcategories as date categories that are used by the bot.
- Basically, I think this could be started by creating a bot that just lists files to check and their respective date category/ies which could then be refined over time by users checking this list to exclude certain categories (and their subcategories) from counting as 'date categories' which then could be extended with ways to fix files in batches (the list will likely contain many thousands of files with sth like 80% having wrong date). Prototyperspective (talk) 10:38, 4 January 2026 (UTC)
I'm not proposing the date is removed so I don't fully understand your comment.
You propose replacing the dates. A replacement is basically the removal of one value and the addition of another one. So yes, you’re proposing that one date is removed, even if you also propose that another one is added.- As I wrote, a mere listing is perfectly okay, since that implies human judgement during the actual replacement. —Tacsipacsi (talk) 23:46, 4 January 2026 (UTC)
- It's often if not usually not clear what that date is when it's not the date taken – the day the person uploaded it to Commons? The date the file was first published? The date the file was published at the source site?
- Listing multiple dates there means it can't be parsed / read in structured ways, so one can't use it for sorting, or to display a date in some app (like the Commons app), for ranking search results, for values in API returns etc etc
- As said, in cases like your example the date shouldn't be removed or replaced.
- In other cases, one could move the date to a separate field if it's found to be not the date taken.
- Prototyperspective (talk) 19:54, 5 January 2026 (UTC)
- So first we should generate a report with the mentioned mismatches. If we crawl all categories for such mismatches, the report will become very large. Who is going to fix all these mismatches by hand? Wikiwerner (talk) 10:59, 29 March 2026 (UTC)
- Nobody or at least barely anybody and not enough. So it needs the dates to be corrected via some script. The script could exempt certain (types of) files. It could also add the changed files to a report or the report you described could be used to spot files where the new date is inaccurate and the old mismatching date was the correct one or both are wrong. An idea would also be for the script to run batchwise:
- 1. create a report for 2000 files 2. wait 5/x days for people to go through it and spot files where the bot should not correct the date (eg by adding a cat to these files) 3. run the script to correct all unmarked files 4. update the report to show the next 2000 files. Prototyperspective (talk) 16:21, 29 March 2026 (UTC)
- So first we should generate a report with the mentioned mismatches. If we crawl all categories for such mismatches, the report will become very large. Who is going to fix all these mismatches by hand? Wikiwerner (talk) 10:59, 29 March 2026 (UTC)
Replace "actresses" by "female actors" in Category:Female actors by country
Following the discussion at Commons:Categories for discussion/2024/12/Category:Actresses, a consensus was reached to rename categories from "actresses" to "female actors".
Most subcategories of Category:Female actors have been renamed, but the large Category:Female actors by country tree hasn't been tackled yet. I suggest using a bot to handle this massive branch, as it is too large for manual renaming. Deltaspace42 (talk) 15:45, 15 January 2026 (UTC)
- @Deltaspace42 Can you request it at User talk:CommonsDelinker/commands/Category moves of which the @SteinsplitterBot would take care? -- DaxServer (talk) 20:03, 16 January 2026 (UTC)
- @Deltaspace42: Please be careful working on these because some of the category names are assigned by templates. It might be best to break it into subsets. I can help work on it if you want. -- Auntof6 (talk) 21:08, 16 January 2026 (UTC)
Syntax fixing
I found often IMHO errors in the syntax.
[{Category:(over 2400 results → Search link )[[Category:Category:(many results, but timeout → only images of the year 2026: Search link)|[[Category:(over 2900 results → Search link )[[Categori:(2 results → Search link )[[Categories:(over 300 results → Search link )[[Catagory:(1 results → I fix this.)[[Cathegory:(2 results → I fix this.)[[Categori:(2 results → I fix this.)[[Categor:(2 results, but timeout → I fix 4 errors, but maybe exits more.))[[Category :(over 70 results → should be fixed Search link )[[Category?(no ":" after → over 80 results, but timeout → Search link))
I think we need a bot, who permanently check and fix this typing errors. At number 3: often I found code like "#ifexist". I think this should not in the description page at commons. IMHO This is something that have to be inside a template. sk (talk) 15:41, 9 February 2026 (UTC)
- I will file a request to do this using my bot. --Ameisenigel (talk) 14:00, 1 March 2026 (UTC)
- @Ameisenigel: Many thanks for your help! --sk (talk) 13:46, 5 March 2026 (UTC)
- @Ameisenigel. Found today many "Category:[[Category:". --sk (talk) 09:48, 13 March 2026 (UTC)
- #1 is now running --Ameisenigel (talk) 16:54, 14 March 2026 (UTC)
- Done, except File:WP20Symbols WIKIDATA.svg (requires templateeditor or administrator rights). --Ameisenigel (talk) 12:43, 15 March 2026 (UTC)
- #5 is now done --Ameisenigel (talk) 12:09, 3 April 2026 (UTC)
- @Ameisenigel: Many thanks for your help! --sk (talk) 13:46, 5 March 2026 (UTC)
Upload ZIP contents through OpenRefine
From COM:VPT: I would like to upload a batch of orthophotos of Thuringia. Each tile comes as ZIP file with TIF, meta and tfw file. Is there a way to let the Wikimedia servers extract only the TIF to be uploaded? Having them down- and reuploaded on and from my PC probably takes some time. Thanks! --PantheraLeo1359531 😺 (talk) 19:59, 12 February 2026 (UTC)
Bot runs for Our World in Data categories
Hi, I have a request for a bot run that solves several recategorizations, as per a current thread in the village pump. The task I imagine would recategorize ca. 6x70k files in Our World in Data maps by continent and then also the 1x70k files in Our World in Data maps of the world, totalling about 500k files. I have thougt about a rough algorithm,
- for all files in
[[Category:Our World in Data maps of Asia]]- if "
{{Map showing old data|year=YYYY}}" occurs in the file:- take the YYYY as a variable to insert "
[[Category:Our World in Data maps of Asia showing YYYY data]]" //** a single category for the location and year of the map, compare Our World in Data maps of Asia showing 1948 data **//- if that inserted category does not yet exist: create it with "
{{Category description/Our World in Data maps by continent and year}}" //** (template helpfully provided by User:Reinhard Müller)**//
- if that inserted category does not yet exist: create it with "
- take the file name as the variable
topicnameand stripFile:and, Asia, YYYY.svg(or,Asia,YYYY.svg) from that variable - insert "
[[Category:Our World in Data maps showing ||topicname]]" //** for example Category:Our World in Data maps showing Absolute change co2, neatly collecting ~1800 files like this one or ~200 files like this one: a single category for the topic of the map, to have them all easily assembled **//- if that inserted category does not yet exist: create it with "
[[Category:Our World in Data maps by topic]]" //** in most cases, better names should be found, but that cleanup can be handled afterwards manually, where needed **//
- if that inserted category does not yet exist: create it with "
- remove all occurences of "
{{Map showing old data|year=YYYY}}", ""[[Category:YYYY maps of Asia]]" and "[[Category:Our World in Data maps of Asia]]"
- take the YYYY as a variable to insert "
- (else leave the file alone)
- if "
- repeat the same with "Africa", "Europe", ["North America"+"NorthAmerica" mapped onto "North America"], ["South America"+"SouthAmerica" mapped onto "South America"], "Oceania", and "the world".
- for all files in
The files in question are created by a bot already so they are already highly standardized. But I may have overlooked something, so please check my work. Yet, this should work for a majority of the files I have seen, Is that job something that can be done; or would you rather break it up into smaller tasks? --Enyavar (talk) 19:51, 8 March 2026 (UTC)
- User:Mr. Ibrahem can you take care of this and adjust the categorization going forwards to match the above? Let us know if you need any clarifications. Doc James (talk · contribs · email) 16:22, 12 March 2026 (UTC)
Automate Featured Media candidates
Hi everyone.
The bot FeaturedMediaBot operated by Eatcha (blocked) that used to handle parking and closing nominations in the Featured Media Candidates project, is inactive for years. Closing these nominations manually is extremely tedious. I'm also notifying W.carter, who is more familiar with these procedures
I would like to request a new bot (or someone to adopt the old script) to automate the FMC closure and archiving process. Here is the exact logical workflow the bot needs to execute based on our manual procedures:
Trigger:
The bot should run on a schedule to check Commons:Featured media candidates/candidate list for nominations that have reached the end of their voting period and have a clear consensus, or process them when a reviewer adds a specific closing tag.
Step 1: Update the nomination page
- Add the result of the voting at the bottom of the nomination page using this syntax:
{{FMC-results-reviewed|support=x|oppose=x|neutral=x|featured=("yes" or "no")|gallery=xxx|sig=~~~~}}(gallery left blank if featured=no). - Modify the title header of the candidate media template by appending
, featuredor, not featured. (Example:=== [[:File:example.ext]] ===becomes=== [[:File:example.ext]], featured ===)
Step 2: If the media is promoted (Featured = Yes)
- Main page update: Add the media to the list of the four most recently featured media at Commons:Featured media. Insert it at the top and delete the oldest (4th) one so the count remains exactly four.
- Gallery update: Add the media to the top of the corresponding Featured media gallery section.
- File page update: Add
{{FM_promoted|featured=1}}to the media's file description page. (If an alternative media was promoted, use|com-nom=OriginalName.ext). - User notifications:
- Add
== FM promotion == {{subst:FMpromotion|File:example.ext}}to the Nominator's talk page. - Add
{{subst:FMpromotedUploader|File:example.ext}}to the Uploader's talk page. (If nominator = uploader, just use the Uploader template).
- Add
Step 3: Archiving (for all closures: Promoted, not Promoted, Withdrawn, FMX, FMD)
- Open Commons:Featured media candidates/candidate list and locate the transclusion (e.g.,
{{Commons:Featured media candidates/File:example.ext}}). - Remove the transclusion from the active candidate list.
- Move/append that transclusion to the bottom of the current month's log page (e.g., Commons:Featured media candidates/Log/March 2026).
Handling Withdrawn Nominations:
- Ensure the bot marks withdrawn nominations with
|featured=noin the results template and appends, not featuredto the header, so they don't get stuck in the[[:Category:Featured media candidates awaiting closure review]]category, then archive them as described in Step 3.
Since the project is active with the new videos, having an automated bot to handle this heavy lifting is helpful. RiadS99 (talk) 22:10, 26 March 2026 (UTC)
Boston Evening Transcript
Category:Boston Evening Transcript has over 246k pages that should be sorted. (1) If a bot could move them into each Category:Boston Evening Transcript by year category, that's a basic start. (2) If possible, add the category for the specific date. (3) It would also help if the bot also adds and creates a month in Massachusetts by month if it's needed because they will flood the United States category. Ricky81682 (talk) 19:11, 28 March 2026 (UTC)
- I will file a request to do this using my bot. --Ameisenigel (talk) 15:26, 31 March 2026 (UTC)
- @Ameisenigel Can you run a check for red links? I'm checking and adding in the by year categories and I didn't realize a bunch were missing but the daily ones would take forever to check and create. Ricky81682 (talk) 02:58, 1 April 2026 (UTC)
- It should not be a problem to create the missing categories after the categorization has been adjusted. --Ameisenigel (talk) 08:40, 1 April 2026 (UTC)
- @Ameisenigel I spoke too soon. There are a number of files starting with Boston Evening Transcript that don't have any categories. That may be another task. Ricky81682 (talk) 02:23, 2 April 2026 (UTC)
- Do they have the same naming scheme? That would make it easy to add the categories. --Ameisenigel (talk) 03:10, 2 April 2026 (UTC)
- @Ameisenigel: Yes, you can basically look for anything starting with Boston Evening Transcript in the title. Ricky81682 (talk) 07:31, 2 April 2026 (UTC)
- Do they have the same naming scheme? That would make it easy to add the categories. --Ameisenigel (talk) 03:10, 2 April 2026 (UTC)
- @Ameisenigel I spoke too soon. There are a number of files starting with Boston Evening Transcript that don't have any categories. That may be another task. Ricky81682 (talk) 02:23, 2 April 2026 (UTC)
- It should not be a problem to create the missing categories after the categorization has been adjusted. --Ameisenigel (talk) 08:40, 1 April 2026 (UTC)
- @Ameisenigel Can you run a check for red links? I'm checking and adding in the by year categories and I didn't realize a bunch were missing but the daily ones would take forever to check and create. Ricky81682 (talk) 02:58, 1 April 2026 (UTC)
- My two cents on this issue is that it is nonsense to upload multi-page items like newspapers, books, etc as countless individual .jpg files, they should be in PDF. One PDF per newspaper issue instead of 20 or 200 individual .jpeg's. The Commons software is so utterly not designed to work with those individual page uploads, it is a LOT easier to categorize/maintain/work/transcribe and view(!!!) PDF files. ~TheImaCow (talk) 21:08, 31 March 2026 (UTC)
- You're proposing a change to probably a million files but they seem fine as .jpg files organized into folders that allow for people to identify specific pages (such as events or pictures or just the cartoon pages or specific advertisements). They get horrendous as single PDFs for one hundred page editions. Ricky81682 (talk) 02:50, 1 April 2026 (UTC)
- I'm proposing a change to more like tens of millions of such files. probably 99% of those are currently not curated whatsoever, because if you need to create bots for basic maintenance, something is clearly wrong.
- Hundred page PDF is horrendous? You can easily CRTL+F an OCR'd PDF or use Special:Search and find what you need; while when hundred pages are in seperate files, the categories do not even show them in the right order. (sorting like page 1...page 10... page 11 [....] page 19... page 2...page 21) I don't see how it wouldn't be an absolute pain to work with files like that as an regular user. ~TheImaCow (talk) 11:00, 1 April 2026 (UTC)
- @TheImaCow: If you know that there are n pages or parts, you can zero pad the numbers in the filenames to the number of digits in n before upload, then they will display in the proper order. In the case of 200 jpgs, the numbers would then start with 001 and 002. — 🇺🇦Jeff G. ツ please ping or talk to me🇺🇦 15:23, 1 April 2026 (UTC)
- @TheImaCow: Category:The New Orleans Bee and Category:National Anti-Slavery Standard sorted into PDFs but you can see how difficult they are to navigate. Just sorting the categories is a task enough. Again this is one newspaper with over 240k pages to be sorted. San Antonio Express still needs another 60k pages sorted. The Galveston Daily News another 50k. El Paso Daily Times another 23k. Ricky81682 (talk) 02:12, 2 April 2026 (UTC)
- @TheImaCow: If you know that there are n pages or parts, you can zero pad the numbers in the filenames to the number of digits in n before upload, then they will display in the proper order. In the case of 200 jpgs, the numbers would then start with 001 and 002. — 🇺🇦Jeff G. ツ please ping or talk to me🇺🇦 15:23, 1 April 2026 (UTC)
- You're proposing a change to probably a million files but they seem fine as .jpg files organized into folders that allow for people to identify specific pages (such as events or pictures or just the cartoon pages or specific advertisements). They get horrendous as single PDFs for one hundred page editions. Ricky81682 (talk) 02:50, 1 April 2026 (UTC)
Missing maps by day shown
Special:WantedCategories has a few hundred redlinked missing categories like Category:Maps showing Jan 30, 2022 which are incorrectly named. Each one has subcategories like Category:Jan 30, 2022 maps of North America that should be created first to reduce the movement. Could a bot do the following?
1. Make this type of edit that removes each category and revises the template to hardcode the template with the correct formatting.
2. Create each continent category with template:Maps by continent by day.
3. Go back to the parent and a category redirect to, for example here, Category:Maps showing 2022-01-30 here for each one. Alternatively, revise the template:Map showing old data in each page to the correct format and avoid the non-empty redirects work.
4. Insert template:Maps by day at the correct page.
Thanks! Ricky81682 (talk) 08:08, 24 April 2026 (UTC)
Unsupported parameters in Template:Information
There is a bunch of files with unsupported parameters in {{Information}}:
- insource:/Location *=/i incategory:Pages_using_Information_template_with_incorrect_parameter
- insource:/additional.information *=/i incategory:Pages_using_Information_template_with_incorrect_parameter
- insource:/Anmerkungen *=/ incategory:Pages_using_Information_template_with_incorrect_parameter
Is anybody able to convert them, e.g. by using Other fields, so make the information visible and to get rid of the error messages? --Leyo 19:41, 2 May 2026 (UTC)
