Commons:Village pump/Technical/Archive/2023/09
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
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)
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!
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
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- EditInSequence, a feature that allows users to edit pages faster on Wikisource has been moved to a Beta Feature based on community feedback. To enable it, you can navigate to the beta features tab in Preferences. [1]
- As part of the changes for the Generate Audio for IPA and Audio links that play on click wishlist proposals, the inline audio player mode of Phonos has been deployed to all projects. [2]
- There is a new option for Administrators when they are changing the usergroups for a user, to add the user’s user page to their watchlist. This works both via Special:UserRights and via the API. [3]
- One new wiki has been created:
Problems
- The LoginNotify extension was not sending notifications since January. It has now been fixed, so going forward, you may see notifications for failed login attempts, and successful login attempts from a new device. [5]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 5 September. It will be on non-Wikipedia wikis and some Wikipedias from 6 September. It will be on all wikis from 7 September (calendar).
- Starting on Wednesday, a new set of Wikipedias will get "Add a link" (Eastern Mari Wikipedia, Maori Wikipedia, Minangkabau Wikipedia, Macedonian Wikipedia, Malayalam Wikipedia, Mongolian Wikipedia, Marathi Wikipedia, Western Mari Wikipedia, Malay Wikipedia, Maltese Wikipedia, Mirandese Wikipedia, Erzya Wikipedia, Mazanderani Wikipedia, Nāhuatl Wikipedia, Neapolitan Wikipedia, Low German Wikipedia, Low Saxon Wikipedia, Nepali Wikipedia, Newari Wikipedia, Norwegian Nynorsk Wikipedia, Novial Wikipedia, N'Ko Wikipedia, Nouormand Wikipedia, Northern Sotho Wikipedia, Navajo Wikipedia, Nyanja Wikipedia, Occitan Wikipedia, Livvi-Karelian Wikipedia, Oromo Wikipedia, Oriya Wikipedia, Ossetic Wikipedia, Punjabi Wikipedia, Pangasinan Wikipedia, Pampanga Wikipedia, Papiamento Wikipedia, Picard Wikipedia, Pennsylvania German Wikipedia, Palatine German Wikipedia, Norfuk / Pitkern Wikipedia, Piedmontese Wikipedia, Western Punjabi Wikipedia, Pontic Wikipedia, Pashto Wikipedia). This is part of the progressive deployment of this tool to more Wikipedias. The communities can configure how this feature works locally. [6][7]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
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:
- try to ascertain the subjects in photos as accurately as possible. like for your example, it's ofc best to pinpoint the exact species.
- when the exact name cannot be determined, just go with the most accurate one.
- 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.
- 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
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- ORES, the revision evaluation service, is now using a new open-source infrastructure on all wikis except for English Wikipedia and Wikidata. These two will follow this week. If you notice any unusual results from the Recent Changes filters that are related to ORES (for example, "Contribution quality predictions" and "User intent predictions"), please report them. [8]
- When you are logged in on one Wikimedia wiki and visit a different Wikimedia wiki, the system tries to log you in there automatically. This has been unreliable for a long time. You can now visit the login page to make the system try extra hard. If you feel that made logging in better or worse than it used to be, your feedback is appreciated. [9]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 12 September. It will be on non-Wikipedia wikis and some Wikipedias from 13 September. It will be on all wikis from 14 September (calendar).
- The Technical Decision-Making Forum Retrospective team invites anyone involved in the technical field of Wikimedia projects to signup to and join one of their listening sessions on 13 September. Another date will be scheduled later. The goal is to improve the technical decision-making processes.
- As part of the changes for the Better diff handling of paragraph splits wishlist proposal, the inline switch widget in diff pages is being rolled out this week to all wikis. The inline switch will allow viewers to toggle between a unified inline or two-column diff wikitext format. [10]
Future changes
- All wikis will be read-only for a few minutes on 20 September. This is planned at 14:00 UTC. More information will be published in Tech News and will also be posted on individual wikis in the coming weeks. [11]
- The Enterprise API is launching a new feature called "breaking news". Currently in BETA, this attempts to identify likely "newsworthy" topics as they are currently being written about in any Wikipedia. Your help is requested to improve the accuracy of its detection model, especially on smaller language editions, by recommending templates or identifiable editing patterns. See more information at the documentation page on MediaWiki or the FAQ on Meta.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
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 theexcludedProjects
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
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- MediaWiki now has a stable interface policy for frontend code that more clearly defines how we deprecate MediaWiki code and wiki-based code (e.g. gadgets and user scripts). Thank you to everyone who contributed to the content and discussions. [12][13]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 19 September. It will be on non-Wikipedia wikis and some Wikipedias from 20 September. It will be on all wikis from 21 September (calendar).
- All wikis will be read-only for a few minutes on September 20. This is planned at 14:00 UTC. [14]
- All wikis will have a link in the sidebar that provides a short URL of that page, using the Wikimedia URL Shortener. [15]
Future changes
- The team investigating the Graph Extension posted a proposal for reenabling it and they need your input.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
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
Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Recent changes
- The Vector 2022 skin will now remember the pinned/unpinned status for the Table of Contents for all logged-out users. [16]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 26 September. It will be on non-Wikipedia wikis and some Wikipedias from 27 September. It will be on all wikis from 28 September (calendar).
- The ResourceLoader
mediawiki.ui
modules are now deprecated as part of the move to Vue.js and Codex. There is a guide for migrating from MediaWiki UI to Codex for any tools that use it. More details are available in the task and your questions are welcome there. - Gadget definitions will have a new "namespaces" option. The option takes a list of namespace IDs. Gadgets that use this option will only load on pages in the given namespaces.
Future changes
- New variables will be added to AbuseFilter:
global_account_groups
andglobal_account_editcount
. They are available only when an account is being created. You can use them to prevent blocking automatic creation of accounts when users with many edits elsewhere visit your wiki for the first time. [17][18]
Meetings
- You can join the next meeting with the Wikipedia mobile apps teams. During the meeting, we will discuss the current features and future roadmap. The meeting will be on 27 October at 17:00 (UTC). See details and how to join.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
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/T346591 –Vuccala (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)
- I find I now have to block all of
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)
- 1. At https://warper.wmflabs.org/maps/6194#Rectify_tab clicking "warp image!" doesn't do the usual save at File:Lac_de_Morat,_1860_(from_Swisstopo_Dufourkarte_BLATT_XII,_LT_TK_012_1860).tiff . It did work for another, similar map yesterday.
- 2. Also, the defaults for the background map tend to not work. (one has to click the + sign to change the "base layer" to "OSM Mapnik".
Enhancing999 (talk) 05:07, 27 September 2023 (UTC)
Temporary accounts for unregistered editors
Read this in your language • Please help translate to your language • Please tell other users about these changes
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.