Commons:Village pump/Technical/Archive/2023/09

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

Best way to fetch wikidata P625 to feed #coordinates or GeoData?

i'm making Template:File request. i need to fetch the coords from coordinate location (P625) and feed them to {{#coordinates:}} (mw:Extension:GeoData). what is the best way to do that? i intend to fetch p625 and split it into latitude and longitude which can be fed into #coord like {{#coordinates:12.3|4.56}}, but still i dont know what's the easiest way (using what existing templates/modules) according to my approach. RZuo (talk) 22:51, 15 September 2023 (UTC)

i think i found the answer: {{Data}} {{Data|item={{{q}}}|property=P625|displayformat=latitude}}.--RZuo (talk) 05:24, 18 September 2023 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. --RZuo (talk) 05:24, 18 September 2023 (UTC)

How to mark a change for translation in Commons:Categories for discussion?

I added a line on Commons:Categories for discussion, but now the message is "Changes have been made to this page that are not marked for translation." And when I go to the Dutch page, I cannot add/translate this line. What did I forget, how can I mark the line for translation? JopkeB (talk) 03:22, 24 September 2023 (UTC)

User:Tacsipacsi made the adjustments, thanks!
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. --JopkeB (talk) 02:47, 25 September 2023 (UTC)

Color issues with certain .jpg files

As I'm sorting Category:DOCUMERICA photographs by Ernst Halberstadt, I've been trying to upload larger versions of some files from the original source. However, when I download the larger .jpg from the source file on Digital Commonwealth, it's substantially darker than the version shown there. The issue doesn't appear when viewing the .jpg on the source site, nor if I download the .tiff version. That makes me think it might be some issue with the RGB profile or other settings within the file.

For an example, see File:Related to Kennedy Library site - car barn proposed site for Library at Harvard Square - DPLA - ce077e82f52703890e0826b2eff36b1b.jpg. The 21:43, November 2, 2022 version is the original bot upload, the 06:32, September 2, 2023 version is the .jpg from Digital Commonwealth, and the 06:38, September 2, 2023 version is a .jpg export from the .tiff file. Thanks, Pi.1415926535 (talk) 04:42, 3 September 2023 (UTC)

Watermark on hundreds of images

Can someone put a watermark template on images by user:AfroBrazilian from 2020-2023. There are a few hundred of them. I'm sure a bot can do it but I don't know how. There seem to be no images with watermarks pre-2020. Thank you. Steinninn ♨ 13:30, 3 September 2023 (UTC)

✓ Done for the 232 most recent uploads. VFC seems to be working in a less than optimal manner right now. -- Tuválkin 22:16, 3 September 2023 (UTC)

Tech News: 2023-36

MediaWiki message delivery 23:31, 4 September 2023 (UTC)

Initial setup has been completed for Adiutor

Hello, I am pleased to announce that I have successfully completed the initial setup of the Adiutor gadget on Wikimedia Commons. Adiutor is a gadget designed to enhance the maintenance and administrative tasks on Wikimedia projects, making them more efficient and user-friendly.

Adiutor offers a wide range of features to assist Wikipedia editors and administrators, including the ability to create speedy deletion requests, nominate files for deletion, request page protections, issue warnings to users, and much more. Administrators also have access to advanced functions such as user blocking and speedy page deletion.

Your feedback is highly valuable in the ongoing improvement of Adiutor. If you encounter any bugs or have feature requests, please don't hesitate to report them on the discussion page. Your active participation and support are essential in making Adiutor an even more functional and user-friendly tool for the Wikimedia community.

Additionally, we have created a Telegram group where you can join the discussion, ask questions, and connect with other users interested in Adiutor: Join Adiutor Telegram Group.

Thank you for your attention, and I look forward to working together to enhance our Wikimedia Commons experience with the help of Adiutor.

Best regards, 𝗩𝗶𝗸𝗶𝗽𝗼𝗹𝗶𝗺𝗲𝗿 00:50, 5 September 2023 (UTC)

Workflow for images showing misidentified organisms

Hello, I am an entomologist and i very, very often spot images showing misidentified specimen. For example this one here: File:Pissodes pini a1.jpg

It's clearly not a member of the genus Pissodes, but Hylobius. However, i cannot identify the specimen with certainty, as it does not specify the locality where the image was taken. I do not know every weevil on the world, so i would assume it is Hylobius abietis if i assume the image was taken in Central Europe.

So, what would be the workflow to deal with this image? Should i rename it? Should i add a note to the description? Should i remove it from category Pissodes pini? Should i put it into the right category without renaming? Should i remove it from all Wikipedia articles where it has been used erroneously? That seems like a lot of work for a single image. Is there some tool to quicken the process?

All the Best, Bagous Bagous (talk) 11:34, 10 September 2023 (UTC)

thx a lot for helping. commons need professionals like you to identify and correct images.
i dont know of a standard workflow for dealing with such scenarios. here's what i would do:
  1. try to ascertain the subjects in photos as accurately as possible. like for your example, it's ofc best to pinpoint the exact species.
  2. when the exact name cannot be determined, just go with the most accurate one.
  3. modify descriptions and categories accordingly. please make sure you include the reasoning behind your edits if the change is not obviously evident. not everyone is a professional in the specific field of interest. you can write those down within file description or on its file talk page if long passages or discussions are expected.
  4. request com:file rename.
RZuo (talk) 13:54, 10 September 2023 (UTC)
@Bagous: RZuo's answer is correct, but incomplete. You should (or at least could; it would be helpful): change the category; check any pages on sister projects that are using the image and update them or replace/ remove the image accordingly. in the case where you can only identify to genus, family or other level, you can use a category like Category:Unidentified Curculionidae. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:24, 10 September 2023 (UTC)

Tech News: 2023-37

MediaWiki message delivery 21:05, 11 September 2023 (UTC)

Mirror image

File:Angels Flight is seen from south as buildings are razed in Los Angeles, Calif., 1962.jpg text in image appears mirrored

..... 0mtwb9gd5wx (talk) 17:42, 13 September 2023 (UTC)
@0mtwb9gd5wx: Sorry, what text you're referring to? Anon126 ( ) 04:39, 14 September 2023 (UTC)
You might have to zoom in to see it, but the funicular car at the center of the photo has a sign on top of it, and there's a liquor store sign in the background above that. Both were visually mirrored, probably because the photographic negative was scanned backwards.
I've uploaded a new version of the image which reads properly. Omphalographer (talk) 20:27, 14 September 2023 (UTC)

Strange link appearing on page for Category:Test images

Category:Test images shows a link to the Foundation Wiki sandbox page: foundation:Wikimedia:Sandbox. It seems to originate from {{Wikidata Infobox}}, since it goes away when I remove it (in the preview, not actually applying the edit). But I can't tell where exactly it's coming from, and it doesn't show up when I place it in Commons:Sandbox (which is linked to the same Wikidata item). This is probably a minor issue but I'm wondering where it's coming from and if it's a possible bug in the template. Anon126 ( ) 05:43, 16 September 2023 (UTC)

@Anon126: It is. The problem is that in Module:Wikidata Infobox, foundationwiki needs to be added to the excludedProjects table to indicate that even though its name ends with "wiki", it's not a language edition of Wikipedia. --bjh21 (talk) 08:33, 16 September 2023 (UTC)

Tech News: 2023-38

MediaWiki message delivery 19:17, 18 September 2023 (UTC)

GLAMorous documentation

Is there a documentation for GLAMorous? Juandev (talk) 20:17, 20 September 2023 (UTC)

Image note not working in a specific image

For other images, image notes work fine, but in File:SR Technics hangar at Zurich International Airport.jpg, the note is not displayed and the "Add a note" button is missing. I thought it may have to do with the placement of the categories (before/after the note), but changing this doesn't repair it, so what might be the issue? Gestumblindi (talk) 20:34, 22 September 2023 (UTC)

@Gestumblindi: works for me, I see both "Add a note" button and one image note (Lockheed Super Constellation). Firefox 117.0.1, Monobook skin. MKFI (talk) 06:42, 25 September 2023 (UTC)
Confirm that it's broken for me too. Firefox 117.0.1 with most recent Vector skin. I think this issue may have come up before. El Grafo (talk) 08:22, 25 September 2023 (UTC)
Indeed: phab:T318486 was reported about a year ago. --El Grafo (talk) 08:30, 25 September 2023 (UTC)
Im using Firefox 117.01.1 (the most recent version) as well, but "Vector legacy (2010)" skin. Gestumblindi (talk) 18:09, 25 September 2023 (UTC)

Tech News: 2023-39

MediaWiki message delivery 16:49, 26 September 2023 (UTC)

Page scrolls upwards after refresh

I'm experiencing a UI problem: every time I refresh an image page, after it loads, it slowly scrolls upwards for a while. Here is a screen recording demonstrating the issue: https://archive.org/download/c9sm2/wiki.webm

I'm on Linux Firefox with all addons disabled while troubleshooting. The issue happens in the skins Vector(2022/2010) and Timeless; but not MinervaNeue nor Monobook. When I disable javascript it no longer happens, and by process of elimination I've found that adding this line to uBlock stops it from happening:

commons.wikimedia.org/w/load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cwikibase.mediainfo.statements&skin=vector-2022&version=yvqja

Does anyone know what's going on? –Vuccala (talk) 23:44, 11 September 2023 (UTC)

I also experience this every now and then, but not consistently (also Firefox on Linux). I’ve only ever experienced it on Commons file pages, so I think it’s caused by Wikibase MediaInfo (which is the wikibase.mediainfo.statements part in your URL). —Tacsipacsi (talk) 14:39, 12 September 2023 (UTC)
I find I now have to block all of commons.wikimedia.org/w/load.php to prevent it from happened. I have now opened a bug report on Phabricator for the issue: https://phabricator.wikimedia.org/T346591Vuccala (talk) 02:46, 18 September 2023 (UTC)
Update: it is caused by Gadget-Stockphoto.js and I've reported the issue there. –Vuccala (talk) 14:08, 27 September 2023 (UTC)

The image displayed in file description is different from the only image stored in history (and displayed through File: code). Purge - no change. What's wrong? Retired electrician (talk) 13:55, 21 September 2023 (UTC)

I'm not sure which image you're referring to. The image I see in the file description is in the "Other versions" section, which links to File:Kobryń, Babrujskaja. Кобрынь, Бабруйская (1930-39) (2).jpg. That image seems to display correctly for me. Anon126 ( ) 05:09, 27 September 2023 (UTC)

Are bots still uploading Flickr images?

I just saw this upload from a bot in 2019 and I strongly believe that one is not in the Public Domain, so I wonder if this is still happening. Paradise Chronicle (talk) 22:47, 22 September 2023 (UTC)

Problematic Flickr uploads with the Flickr2Commons tool are too common here on Commons, with junk or unfree files between uncategorised/mislabeled treasures. I have not seen any files be uploaded by bot-accounts lately though. Anders (talk) 18:08, 27 September 2023 (UTC)

Tool "PetScan" not working

In the last 24 hours I have not had access to the "PetScan" tool. Is it just me (in Portugal) or is it global? Thanks JotaCartas (talk) 11:07, 26 September 2023 (UTC)

Not responding for me either. This is far from unusual for PetScan. It's a tool used by editors, so they always have a super-low priority to WMF. Andy Dingley (talk) 11:52, 26 September 2023 (UTC)
PetScan just started working aganin, good work JotaCartas (talk) 07:35, 27 September 2023 (UTC)

Wikimaps Warper (can't save, defaults)

Enhancing999 (talk) 05:07, 27 September 2023 (UTC)

Temporary accounts for unregistered editors

Read this in your languagePlease help translate to your language • Please tell other users about these changes

Mock up of history page showing old and new username styles. The IP address 172.0.0.1 changes to the temporary account ~2024-23126-086, with an icon for revealing the underlying IP address
Next year, unregistered editors will start using temporary accounts.

In 2024, editors who have not registered an account will automatically begin using temporary accounts. These editors are sometimes called "IP editors" because the IP address is displayed in the page history.

The Trust and Safety Product team gave a presentation at Wikimania about this change. You can watch it on YouTube.

There is more information at m:IP Editing: Privacy Enhancement and Abuse Mitigation.

SGrabarczuk (WMF) (talk) 02:05, 30 September 2023 (UTC)

Pywikibot file upload API ConnectionError bug

Half the time, whenever I try to upload files in pywikibot, it gives me a continuous "ConnectionError" immediately after trying to upload it. Every time it retries, the same thing immediately happens. The problem has been happening for me all night, ever since I changed my (physical) location for a brief period. Does anyone know what the cause for this might be?

To be clear, at the same time this happens, pywikibot can do any other kind of API call, including to edit regular pages or to edit Wikidata items, but uploading files is apparently the specific problem...

My Python code is just doing the following:

file_page.upload(source=file_path, comment=edit_summary(summary, transcription_page_title), report_success=False, ignore_warnings=True)

And I know the file is definitely less than 3 MB. Here's the error it throws me immediately upon firing the upload script (and it will keep "retrying" forever):

ERROR: An error occurred for uri https://commons.wikimedia.org/w/api.php
ERROR: Traceback (most recent call last):
  File "/Users/bobbybumps/Downloads/code_folder/core_stable_2/pywikibot/pywikibot/data/api/_requests.py", line 688, in _http_request
    response = http.request(self.site, uri=uri,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bobbybumps/Downloads/code_folder/core_stable_2/pywikibot/pywikibot/comms/http.py", line 283, in request
    r = fetch(baseuri, headers=headers, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bobbybumps/Downloads/code_folder/core_stable_2/pywikibot/pywikibot/comms/http.py", line 457, in fetch
    callback(response)
  File "/Users/bobbybumps/Downloads/code_folder/core_stable_2/pywikibot/pywikibot/comms/http.py", line 343, in error_handling_callback
    raise response from None
  File "/Users/bobbybumps/Downloads/code_folder/core_stable_2/pywikibot/pywikibot/comms/http.py", line 448, in fetch
    response = session.request(method, uri,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/requests/adapters.py", line 502, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', TimeoutError('The write operation timed out'))

WARNING: Waiting 5.0 seconds before retrying.

PseudoSkull (talk) 10:16, 30 September 2023 (UTC)