Commons:Village pump/Technical
Village pump/Technical |
Bug reports |
Code review |
Tools |
Tools/Directory |
Idea Lab |
This page is used for technical questions relating to the tools, gadgets, or other technical issues about Commons; it is distinguished from the main Village pump, which handles community-wide discussion of all kinds. The page may also be used to advertise significant discussions taking place elsewhere, such as on the talk page of a Commons policy. Recent sections with no replies for 30 days and sections tagged with {{Section resolved|1=--~~~~}} may be archived; for old discussions, see the archives; recent archives: /Archive/2024/06 /Archive/2024/07.
- Feature or bug reports should be filed on Phabricator (see how to report a bug). Bugs with security implications should be reported differently (see how to report security bugs).
- Have you read the FAQ?
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 1 day and sections whose most recent comment is older than 30 days. | |
Can someone perhaps remove all the deleted and renamed files from User:Dispenser/Double extension so that only the ones that still need to be fixed are left? Jonteemil (talk) 20:46, 28 May 2024 (UTC)
- Anyone can do so by forking the Quarry query mentioned in the SQL snippet (look for Fork in the upper right corner of the Quarry page), but I’m not comfortable editing a random other user’s subpage without seeing an explicit permission for doing so. —Tacsipacsi (talk) 17:37, 9 June 2024 (UTC)
- I tried forking it, see quarry:query/83409, but it just keeps running. It has run for a week now, yet still running. Jonteemil (talk) 17:21, 11 June 2024 (UTC)
- You could try to do just jpg ones or recent uploads.
- At File:BSicon_numN327.svg.svg, I noticed the gui at Wikipedia lets you enter an extension and then adds it as well.
- Before fixing individual files, I'd try to identify as many tools that create them and fix these first. Otherwise, more files will just be created. Enhancing999 (talk) 12:06, 1 July 2024 (UTC)
- I tried forking it, see quarry:query/83409, but it just keeps running. It has run for a week now, yet still running. Jonteemil (talk) 17:21, 11 June 2024 (UTC)
Cat-a-lot still doesn't work well
[edit]Though this section was archived because the problem would supposedly have been resolved, Cat-a-lot still doesn't work for subcategories with at least one subcategory. So can this problem get a high priority and really be solved? It is now almost half a year that it arose. JopkeB (talk) 17:04, 6 June 2024 (UTC)
- Also, could it be made to work on Special:MediaSearch? Or fix Special:Search to display the full images? Enhancing999 (talk) 09:12, 7 June 2024 (UTC)
- Per MediaWiki_talk:Gadget-Cat-a-lot.js#Editing_"Expand"_on_English_Wikipedia: It seems to try to edit the local version of Expand, which hangs if that page does not exist and edits Expand if it does. This led to en:Expand getting fully protected, so Cat-a-lot skips categories with subcategories. –LaundryPizza03 (dc̄) 00:50, 23 June 2024 (UTC)
- @LaundryPizza03: Is that forever or can it be fixed? Until the beginning of this year it worked well. JopkeB (talk) 03:56, 23 June 2024 (UTC)
- What are you talking about? –LaundryPizza03 (dc̄) 05:31, 23 June 2024 (UTC)
- Is the problem (which is getting worse, today I cannot even work with Cat-a-Lot on the Special:Search anymore, only within categories) due to last forever or can it be fixed? This is becoming more and more an unworkable situation. JopkeB (talk) 07:09, 23 June 2024 (UTC)
- What are you talking about? –LaundryPizza03 (dc̄) 05:31, 23 June 2024 (UTC)
- @LaundryPizza03: Is that forever or can it be fixed? Until the beginning of this year it worked well. JopkeB (talk) 03:56, 23 June 2024 (UTC)
- Per MediaWiki_talk:Gadget-Cat-a-lot.js#Editing_"Expand"_on_English_Wikipedia: It seems to try to edit the local version of Expand, which hangs if that page does not exist and edits Expand if it does. This led to en:Expand getting fully protected, so Cat-a-lot skips categories with subcategories. –LaundryPizza03 (dc̄) 00:50, 23 June 2024 (UTC)
Protection level
[edit]File:Kalocsaizsuzsa.jpg is autopatrol protected so why is there (protectedpagetext: editprotected, edit)
system message on it? Is the Wikibase part of the page indeed under full (sysop) protection? --Geohakkeri (talk) 21:40, 12 June 2024 (UTC)
- That is weird. The text This page is currently protected, and can be edited only by administrators. comes from Template:Protectedpagetext/PageProtected, but the expected text is at Template:Protectedpagetext/PageAutopatrolProtected. Both of these are transcluded by MediaWiki:Protectedpagetext depending on its first parameter
$1
. Here's the wikitext:{{#switch: {{{1|$1}}} | editprotected = {{Protectedpagetext/PageProtected}} <!-- Fully protected --> | templateeditor = {{Protectedpagetext/PageTemplateProtected}} <!-- Template protected --> | editautopatrolprotected = {{Protectedpagetext/PageAutopatrolProtected}} <!-- editautopatrolprotected --> | #default = {{Protectedpagetext/PageSemiProtected}} <!-- Semi-protected --> }}
- Per mw:Manual:Interface/Protectedpagetext: $1 - the raw name of the right which is needed to edit the page. Special:ExpandTemplates for page File:Kalocsaizsuzsa.jpg and wikitext
{{PROTECTIONLEVEL:edit}}
giveseditautopatrolprotected
, as expected, but "protection level" and "name of the right" might not be the same. —andrybak (talk) 20:08, 15 June 2024 (UTC)editautopatrolprotected
was added to MediaWiki:Protectedpagetext in Special:Diff/853065284 by User:GPSLeo, who is also the author of Template:Protectedpagetext/PageAutopatrolProtected. Perhaps they can check what went wrong. —andrybak (talk) 20:15, 15 June 2024 (UTC)- This is the relevant code, I guess. There are
editprotected
andeditsemiprotected
hardcoded as the only options there. --Geohakkeri (talk) 20:51, 15 June 2024 (UTC) - So, if MediaWiki:Protectedpagetext depended on
{{PROTECTIONLEVEL:edit}}
rather than the proper parametre, it would be a quick fix at least. --Geohakkeri (talk) 21:11, 15 June 2024 (UTC)- Hmm. For reference, English Wikipedia's en:MediaWiki:Protectedpagetext has a similar #switch, with
protect
,editprotected
,templateeditor
, andextendedconfirmed
. - Searching the code of MediaWiki,[1] I also found mentions of Protectedpagetext in PermissionManager.php,[2] which passes as the first parameter
$1
either the stringprotect
or a variable$right
, which comes from functiongetRestrictions
ofRestrictionStore
. My knowledge of PHP is limited, but I'd guess that possible values for restrictions come from $wgRestrictionLevels, hencetemplateeditor
andeditautopatrolprotected
in Commons' version andtemplateeditor
andextendedconfirmed
in enwiki's version. —andrybak (talk) 22:15, 15 June 2024 (UTC)- {{MediaWiki:Protectedpagetext|{{PROTECTIONLEVEL:edit}}}} on File:Kalocsaizsuzsa.jpg would display Template:Protectedpagetext/PageAutopatrolProtected.
- Wonder if it works correctly on enwiki, w:Special:WhatLinksHere/Template:Protected_page_text/extendedconfirmed has no uses.
- https://commons.wikimedia.org/wiki/File:Kalocsaizsuzsa.jpg?uselang=qqx shows
(protectedpagetext: editprotected, edit)
- Not sure what {{CASCADINGSOURCES}} is meant to do.
- Maybe we could insert a switch based on Protectionlevel after "|editprotected =". Enhancing999 (talk) 15:15, 30 June 2024 (UTC)
- I tried to look into this at test.wikipedia.org, but the settings there are different.
- Here what is displayed on a file description page comes from javascript var "wbmiProtectionMsg". This might be filled with the actual protection level of the javascript source. Enhancing999 (talk) 12:16, 1 July 2024 (UTC)
- Hmm. For reference, English Wikipedia's en:MediaWiki:Protectedpagetext has a similar #switch, with
- This is the relevant code, I guess. There are
Footnotes
Interface administrator requests at MediaWiki talk:Gadget-Cat-a-lot.js
[edit]There are several edit requests for interface administrators at MediaWiki talk:Gadget-Cat-a-lot.js. The following edit requests have diffs with proposals. In order of importance:
Bug fix: MediaWiki talk:Gadget-Cat-a-lot.js/Archive 3#Minor edit unmarking feature not working(Special thanks to User:Miraclepine for reporting the bug.)Localization fix: MediaWiki talk:Gadget-Cat-a-lot.js/Archive 3#Mobile-frontend-return-to-pageUI tweak: MediaWiki talk:Gadget-Cat-a-lot.js/Archive 3#Please add link to Help:Gadget-Cat-a-lot in the box
The page MediaWiki talk:Gadget-Cat-a-lot.js already has instances of {{Edit request}}. Because of it, these new requests won't show up in watchlists of those watching Category:Commons protected edit requests for interface administrators. Hence this additional message at Village pump. —andrybak (talk) 16:31, 15 June 2024 (UTC)
- Lucas Werkmeister, as the most recently active interface administrator with recent edits in Gadgets, could you please take a look? —andrybak (talk) 19:46, 16 June 2024 (UTC)
- Did two of them, leaving the third one open for feedback for a moment. And yeah, the watchlist issue is a general problem with the current edit request system – MediaWiki talk:Copyupload-allowed-domains also suffers from it from time to time. Lucas Werkmeister (talk) 21:03, 16 June 2024 (UTC)
- Thank you! I've struck out the completed requests above. —andrybak (talk) 21:20, 16 June 2024 (UTC)
- Third one also done, and I’ll see if I can deal with Valerio’s edit request too, to get this out of the category. Lucas Werkmeister (talk) 20:03, 19 June 2024 (UTC)
- I've disabled Valerio's request. Nardog proposed a bugfix two days ago in MediaWiki talk:Gadget-Cat-a-lot.js § Random unexpected failures at enwiki. —andrybak (talk) 00:01, 25 June 2024 (UTC)
- Updated the links to the archived sections. Struck out the third request, which was implemented in Special:Diff/885487790. —andrybak (talk) 19:24, 27 June 2024 (UTC)
- Section MediaWiki talk:Gadget-Cat-a-lot.js#Random unexpected failures at enwiki has a patch, which is already tested. Could an interface administrator please take a look? —andrybak (talk) 20:24, 8 July 2024 (UTC)
- User:AntiCompositeNumber or User:Mike Peel, could you please take a look at the edit request by Nardog: MediaWiki talk:Gadget-Cat-a-lot.js#Random unexpected failures at enwiki? —andrybak (talk) 13:28, 13 July 2024 (UTC)
- Section MediaWiki talk:Gadget-Cat-a-lot.js#Random unexpected failures at enwiki has a patch, which is already tested. Could an interface administrator please take a look? —andrybak (talk) 20:24, 8 July 2024 (UTC)
- Third one also done, and I’ll see if I can deal with Valerio’s edit request too, to get this out of the category. Lucas Werkmeister (talk) 20:03, 19 June 2024 (UTC)
- Thank you! I've struck out the completed requests above. —andrybak (talk) 21:20, 16 June 2024 (UTC)
- Did two of them, leaving the third one open for feedback for a moment. And yeah, the watchlist issue is a general problem with the current edit request system – MediaWiki talk:Copyupload-allowed-domains also suffers from it from time to time. Lucas Werkmeister (talk) 21:03, 16 June 2024 (UTC)
Adding mediainfo to many files
[edit]How to apply this edit to another 60 files? I have used Upload Master, but on last step it tagged only one file instead of all files from batch upload. MBH 12:39, 18 June 2024 (UTC)
- You can use Petscan and Quickstatemnts for that like this
- Open Quickstatements https://quickstatements.toolforge.org
- Login to quickstatements from top right corner login link (you need to do OAUTH authorization before the Petscan->Quckstatement integration works)
- Open Petscan https://petscan.wmflabs.org
- In tab "Categories" click link "commons"
- In tab "Categories" add value "Interior of B-396" to the categories box
- In tab "Page properties" check the value "File"
- Click
Do it!
-button- There should be 104 results
- In top of the result list is text box with text: "Command list; "P31:Q5" to add, or "-P31"/"-P31:Q5" to remove statements". Change the value to "P180:Q4073829"
- Click
check all
- Click
start QS
- In quickstatements click
Run
- In quickstatements click
- Open Quickstatements https://quickstatements.toolforge.org
- --Zache (talk) 13:11, 18 June 2024 (UTC)
- *Zache Thank you, all done. MBH 11:43, 19 June 2024 (UTC)
- User:Magnus Manske/sdc tool.js is way easier.
- also, when you were using uploadwizard to batch upload, at the last step you can "copy statement to all files", which would have done exactly what you want to do. RZuo (talk) 15:45, 18 June 2024 (UTC)
- RZuo Thank you too, but for me Zache's detailed instruction is way easier then link to some tool I don't know how to use. Is there a manual for your tool? MBH 11:43, 19 June 2024 (UTC)
- if you had read the page.
- This tool lets you quickly add statements for Structured Data on Commons (SDC) to (selected) files on galleries, category pages, and serach results.
- Demo video: https://www.youtube.com/watch?v=RIjXRJNcbL0
- Demo video 2 (item creation/Wikidata Infobox): https://www.youtube.com/watch?v=vvSimZSD_IU RZuo (talk) 11:55, 19 June 2024 (UTC)
- @RZuo what is worth, i didn't know about sdc_tool before this and i was grateful to find it. Afaik it would be good idea to add it to the Commons:Gadgets so editors could toggel it on via user settings. --Zache (talk) 13:00, 19 June 2024 (UTC)
- RZuo Thank you too, but for me Zache's detailed instruction is way easier then link to some tool I don't know how to use. Is there a manual for your tool? MBH 11:43, 19 June 2024 (UTC)
- @RZuo @Zache another question: I tagged English description of files as Russian [1] [2] , how to fix this? MBH 21:07, 20 June 2024 (UTC)
- I would just use deepl, google translate, chatgpt etc to translate it to russian. Immediatly one could also just revert the edit, but in this case it doesn't work as system says that there is an edit conflict. --Zache (talk) 04:05, 21 June 2024 (UTC)
- @MBH https://commons.wikimedia.org/w/index.php?title=File:View_from_Moscow_Sun_Ferris_wheel_19.jpg&diff=886167097&oldid=885974896
- open the file page. a few lines below the file you can see two tabs "File information" and "Structured data". you can edit "Captions" in the "File information" tab. click the bin icon to delete a caption. click "publish changes" to save your edits. RZuo (talk) 07:31, 21 June 2024 (UTC)
New changes to the "Depicts" step in UploadWizard available on Beta Commons
[edit]Hi all! I wanted to announce that on Beta Commons a new version of the "depicts" step of UploadWizard is available for testing. This new version will be available until Monday afternoon. We're waiting for your feedback on it at the general Village Pump. Sannita (WMF) (talk) 10:30, 19 June 2024 (UTC)
Upload functions used by various tools
[edit]Just wondering, is there a technical difference in the backend between the following ways:
- 1. Special:Upload
- 2. https://commons.wikimedia.org/w/index.php?title=Special:Upload&wpDestFile=
- 3. Special:UploadWizard (the actual upload step, not the steps before and afterwards)
- 4. Cross-wiki media upload tool
- 5. pybot upload function
Some observations:
- I'd expect #1 and #2 to be the same, but somehow uploads are less likely to fail if one creates the file description page first and then uses the "upload" link there (#2).
- The documentation for #4 mentions the api. Presumably this is the same being used by #5. The test I did with #4 seemed to work better than #3 usually does.
If ask for ranking the reliability of these tools, I'd say #5/#4, #2, #1, #3. Enhancing999 (talk) 15:29, 24 June 2024 (UTC)
Tech News: 2024-26
[edit]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
- Editors will notice that there have been some changes to the background color of text in the diff view, and the color of the byte-change numbers, last week. These changes are intended to make text more readable in both light mode and dark mode, and are part of a larger effort to increase accessibility. You can share your comments or questions on the project talkpage. [3]
- The text colors that are used for visited-links, hovered-links, and active-links, were also slightly changed last week to improve their accessibility in both light mode and dark mode. [4]
Problems
- You can copy permanent links to talk page comments by clicking on a comment's timestamp. This feature did not always work when the topic title was very long and the link was used as a wikitext link. This has been fixed. Thanks to Lofhi for submitting the bug. [5]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 25 June. It will be on non-Wikipedia wikis and some Wikipedias from 26 June. It will be on all wikis from 27 June (calendar). [6][7]
- Starting 26 June, all talk pages messages' timestamps will become a link at English Wikipedia, making this feature available for you to use at all wikis. This link is a permanent link to the comment. It allows users to find the comment they were linked to, even if this comment has since been moved elsewhere. You can read more about this feature on Diff or on Mediawiki.org. [8]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 22:29, 24 June 2024 (UTC)
Tech News: 2024-27
[edit]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
- Over the next three weeks, dark mode will become available for all users, both logged-in and logged-out, starting with the mobile web version. This fulfils one of the top-requested community wishes, and improves low-contrast reading and usage in low-light settings. As part of these changes, dark mode will also work on User-pages and Portals. There is more information in the latest Web team update. [9]
- Logged-in users can now set global preferences for the text-size and dark-mode, thanks to a combined effort across Foundation teams. This allows Wikimedians using multiple wikis to set up a consistent reading experience easily, for example by switching between light and dark mode only once for all wikis. [10]
- If you use a very old web browser some features might not work on the Wikimedia wikis. This affects Internet Explorer 11 and versions of Chrome, Firefox and Safari older than 2016. This change makes it possible to use new CSS features and to send less code to all readers. [11][12]
- Wikipedia Admins can customize local wiki configuration options easily using Community Configuration. Community Configuration was created to allow communities to customize how some features work, because each language wiki has unique needs. At the moment, admins can configure Growth features on their home wikis, in order to better recruit and retain new editors. More options will be provided in the coming months. [13]
- Editors interested in language issues that are related to Unicode standards, can now discuss those topics at a new conversation space in MediaWiki.org. The Wikimedia Foundation is now a member of the Unicode Consortium, and the coordination group can collaboratively review the issues discussed and, where appropriate, bring them to the attention of the Unicode Consortium.
- One new wiki has been created: a Wikipedia in Mandailing (
w:btm:
) [14]
Problems
- Editors can once again click on links within the visual editor's citation-preview, thanks to a bug fix by the Editing Team. [15]
Future changes
- Please help us to improve Tech News by taking this short survey. The goal is to better meet the needs of the various types of people who read Tech News. The survey will be open for 2 weeks. The survey is covered by this privacy statement. Some translations are available.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 23:56, 1 July 2024 (UTC)
Cleaning up list of followed pages / How to limit an extended watchlist?
[edit]Hi, is there a way to do a mass cleanup of the list followed pages? My list is so long that it frequently refuses to load (it times out). I want to keep a much smaller collection of files on the list. How can I mass remove selections of files, like the complete contents of some categories and their subcategories. What's the best practice to do this? Or even only follow what happens to my personal uploads. Peli (talk) 12:20, 2 July 2024 (UTC)
- have you reviewed Special:Preferences#mw-prefsection-watchlist? so that you dont keep adding much more to your list. RZuo (talk) 13:59, 2 July 2024 (UTC)
- @Pelikana: You can get the raw contents of your watchlist from Special:EditWatchlist/raw, and you can then edit it either in your browser or in the text editor of your choice. I can't immediately think of a way to winnow it by category, but it looks like it's sorted by when items were added so it might be that the items you want to remove are conveniently close together. --bjh21 (talk) 23:17, 2 July 2024 (UTC)
- Thanks both, Now I have limited the new additions to my list by following the first suggestion. But for suggestion #2: any time I try to edit my watchlist I receive some kind of fatal error like this "Wikimedia\Rdbms\DBQueryDisconnectedError". So I never was able to actually edit something of it. Peli (talk) 13:58, 7 July 2024 (UTC)
- I got the raw list now and worked on it and want to know some details. Can it ignore lines with typos or does that give an error? And how to get the cleaned up list back in place, since the old list is so long that it times out in the replacing process with cut and paste. Peli (talk) 22:43, 9 July 2024 (UTC)
- SOLVED. By clearing the list by the red button, and pasting the limited one, it seemed to have worked out well. The manual clearing was very tedious and time consuming tho even in notepad++. But I found the options to add and remove to watchlist by buttons on the watchlist now, great. Thanks. Peli (talk) 16:41, 14 July 2024 (UTC)
It appears that the most recent version of this file (which, according to the talk page is a 4K restored version of the film) was not uploaded properly and cannot be played: "No compatible source was found for this media." Can someone please fix this? Johnj1995 (talk) 03:16, 4 July 2024 (UTC)
- @Johnj1995: Hmm, the raw webm file seems to work fine, but it won't play in the Media player. I would suggest filing a Phabricator ticket about it. You may need to revert it to the previous version for now. Nosferattus (talk) 22:32, 7 July 2024 (UTC)
- @Nosferattus: Per the uploader's comment on a featured media nomination for another film that cannot be played, the error is related to this Phabricator ticket: https://phabricator.wikimedia.org/T357215 Johnj1995 (talk) 03:27, 8 July 2024 (UTC)
SVG rendering on election maps
[edit]I just uploaded a series of new maps for Icelandic parliamentary elections. I am seeing that despite the files being very similar, there are some inconsistencies with rendering of certain text elements. The circles should have abbreviations of the district names, these only appear in the 2021 map. In front of the party names there are boxes with the letters used to identify the parties, these sometimes don't show up. I have no idea why this happens. The font used is DejaVu sans which should work fine with Wikimedia. Bjarki S (talk) 09:41, 4 July 2024 (UTC)
- I have identified the problem. For what ever reason, Inkscape decided to leave the coordinates (Y and X) of the missing elements as 0 in the tag tspan id. I'm fixing this manually in the XML editor. Bjarki S (talk) 10:16, 4 July 2024 (UTC)
Occupation "greek-catholic priest" instead of "politician" in Wikidata Infobox
[edit]Is it just me or is the Wikidata Infobox at Category:Iriana saying that Iriana's occupation is "greek-catholic priest" instead of "politician"? I checked the Wikidata entry on her and on "politician" and it says correctly "politician". Where is the "greek-catholic priest" coming from? (note: I'm accessing the page via mobile browser. I've checked mobile view and desktop view on mobile browser but the infobox display is the same.) Nakonana (talk) 20:12, 4 July 2024 (UTC)
- Just checked infoboxes of other politicians on Commons and they all list "greek-catholic priest" as occupation instead of "politician". Nakonana (talk) 20:14, 4 July 2024 (UTC)
- Maybe mention it at Template talk:Wikidata Infobox. Seems to come from [16]. Enhancing999 (talk) 08:12, 5 July 2024 (UTC)
- As this is already reverted purging the page to clean the cache should solve this. GPSLeo (talk) 08:32, 5 July 2024 (UTC)
- Would you kindly do so? Enhancing999 (talk) 08:33, 5 July 2024 (UTC)
- Up to 147559 category pages are concerned: [17], but it seems to be better now. Enhancing999 (talk) 05:58, 6 July 2024 (UTC)
- Looks like it got fixed now. Nakonana (talk) 11:42, 6 July 2024 (UTC)
- Up to 147559 category pages are concerned: [17], but it seems to be better now. Enhancing999 (talk) 05:58, 6 July 2024 (UTC)
- A manual purge of Category:Iriana does not seem to do the trick. Nakonana (talk) 15:56, 5 July 2024 (UTC)
- Would you kindly do so? Enhancing999 (talk) 08:33, 5 July 2024 (UTC)
- As this is already reverted purging the page to clean the cache should solve this. GPSLeo (talk) 08:32, 5 July 2024 (UTC)
- Maybe mention it at Template talk:Wikidata Infobox. Seems to come from [16]. Enhancing999 (talk) 08:12, 5 July 2024 (UTC)
Harvest coord from metadata
[edit]somehow coord of File:Ccmhj.jpg from an iphone 14 pro was not detected by commons. a bot to check metadata and fill the coords into sdc would be nice. RZuo (talk) 08:57, 6 July 2024 (UTC)
Annotations not showing
[edit]It seems I was able to add image notes in the past here but now I am unable to see them or the add note button - File:Coleman_Bangalore_entomologists.jpg - any way to turn on the annotation button which shows up on other images? Shyamal L. 11:10, 6 July 2024 (UTC)
- Hi Shyamal, I am not sure if your problem is related but Fix the Image Annotator may be relevant. Commander Keane (talk) 05:59, 8 July 2024 (UTC)
- @Commander Keane: Added my support. Jeez, never knew we could be that helpless in the open source world. Shyamal L. 06:02, 8 July 2024 (UTC)
- @Shyamal: I think voting has closed for that RfC. I support a techical needs survey that is always open to suggestions and voting on Commons though. Commander Keane (talk) 06:09, 8 July 2024 (UTC)
- @Commander Keane: Added my support. Jeez, never knew we could be that helpless in the open source world. Shyamal L. 06:02, 8 July 2024 (UTC)
Automatic categorization of subtitles needs to be renamed
[edit]If a video (e.g. File:1952. Аленький цветочек.webm) has Slovene subtitles (e.g. TimedText:1952._Аленький_цветочек.webm.sl.srt), then it is categorized in Category:Files with closed captioning in Slovenian, but the main category (and English Wikipedia article, for what it's worth) are called "Slovene", not "Slovenian", cf. Category:Slovene language. —Justin (koavf)❤T☮C☺M☯ 05:50, 8 July 2024 (UTC)
- Done Special:Diff/894319705 --Geohakkeri (talk) 06:21, 8 July 2024 (UTC)
- hvala. —Justin (koavf)❤T☮C☺M☯ 16:22, 8 July 2024 (UTC)
Tech News: 2024-28
[edit]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
- At the Wikimedia Foundation a new task force was formed to replace the disabled Graph with more secure, easy to use, and extensible Chart. You can subscribe to the newsletter to get notified about new project updates and other news about Chart.
- The CampaignEvents extension is now available on Meta-wiki, Igbo Wikipedia, and Swahili Wikipedia, and can be requested on your wiki. This extension helps in managing and making events more visible, giving Event organizers the ability to use tools like the Event registration tool. To learn more about the deployment status and how to request this extension for your wiki, visit the CampaignEvents page on Meta-wiki.
- Editors using the iOS Wikipedia app who have more than 50 edits can now use the Add an Image feature. This feature presents opportunities for small but useful contributions to Wikipedia.
- Thank you to all of the authors who have contributed to MediaWiki Core. As a result of these contributions, the percentage of authors contributing more than 5 patches has increased by 25% since last year, which helps ensure the sustainability of the platform for the Wikimedia projects.
Problems
- A problem with the color of the talkpage tabs always showing as blue, even for non-existent pages which should have been red, affecting the Vector 2022 skin, has been fixed.
Future changes
- The Trust and Safety Product team wants to introduce temporary accounts with as little disruption to tools and workflows as possible. Volunteer developers, including gadget and user-script maintainers, are kindly asked to update the code of their tools and features to handle temporary accounts. The team has created documentation explaining how to do the update. Learn more.
Tech News survey
- Please help us to improve Tech News by taking this short survey. The goal is to better meet the needs of the various types of people who read Tech News. The survey will be open for 1 more week. The survey is covered by this privacy statement. Some translations are available.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 21:28, 8 July 2024 (UTC)
Help needed from admins speaking javascript
[edit]I am working on a backlog of {{Edit request}}s. I can handle most file, template and Lua requests but I do not speak javascript. Can an admin help with requests at Category:Commons_protected_edit_requests_for_interface_administrators? Jarekt (talk) 17:23, 9 July 2024 (UTC)
A gadget to mute audio of a video with one click
[edit]Is there any gadget/tool/proposal for such a button on pages for videos that have audio?
I think many files in Category:Videos featuring unidentified music need their audio muted and one example case of a video that (as far as I can see) needs to be muted is File:Beijing to Shanghai by train timelapse.webm.
It would be very cumbersome if one first needs to download a large video, modify it somehow (which most users can't readily, don't bother doing, or would take them long), and then reupload as a new version before tagging the page with {{Overwritten revdel}} which probably even most active users don't know about (and adding Category:Videos without audio).
Instead, it should be just a click that makes the server run some ffmpeg command to remove the audio or similar. I don't know if this has been proposed somewhere if it doesn't yet exist. Prototyperspective (talk) 22:14, 12 July 2024 (UTC)
- you imported the example video.
- if you were not sure that the music is free, then you should have imported only the video using v2c! RZuo (talk) 05:43, 13 July 2024 (UTC)
- Yes, I noticed it only afterwards and this made me wonder about such a button; your comment is not helpful. Prototyperspective (talk) 10:22, 13 July 2024 (UTC)
- But why do you trust that the copyright statement at the source is correct for the video but not for the audio? GPSLeo (talk) 12:26, 13 July 2024 (UTC)
- Because it was self-recorded by the youtuber who set this license? Also not helpful and offtopic. Prototyperspective (talk) 12:28, 13 July 2024 (UTC)
- But why do you trust that the copyright statement at the source is correct for the video but not for the audio? GPSLeo (talk) 12:26, 13 July 2024 (UTC)
- Yes, I noticed it only afterwards and this made me wonder about such a button; your comment is not helpful. Prototyperspective (talk) 10:22, 13 July 2024 (UTC)
DelReqHandler broken for April requests?
[edit]It seems that something broke the DelReqHandler tool on Commons:Deletion requests/2024/04, the usual links for closing requests don't appear there, any idea how to fix? Gestumblindi (talk) 11:18, 14 July 2024 (UTC)
- DelReqHandler links appear for requests from April 18 and newer, but not for older April requests. I suppose something around April 18 went wrong? Gestumblindi (talk) 18:59, 15 July 2024 (UTC)
New technical problem with generation of SVG preview images
[edit]The preview images of File:MitigationOptions costs potentials IPCCAR6WGIII rotated-de.svg are broken. They used to be rendered and shown correctly. Since the graphic hasn't changed sind March 2023, it appears something with the SVG renderer ist broken. Does anyone know what happened? --DeWikiMan (talk) 14:56, 14 July 2024 (UTC)
- Possibly the use of
fill:currentColor
andstroke:currentColor
. WMF supports SVG 1.1. File claims to be SVG 1.1 (which uses a subset of CSS 2), butcurrentColor
is from CSS 3. The value is supposed to select the current value of thecolor
property. GNUPlot is not emitting SVG 1.1. The WMF renderer was changed (April 2024?) to a version that is a few years behind the latest release. Maybe a more recent version oflibrsvg
(the WMF renderer) supports the property. Glrx (talk) 01:40, 15 July 2024 (UTC)- Thank you Glrx for the suggestion.
- I substituted all occurences of "currentColor" with "black". The SVG 1.1 validator basically says that it is correct now (except for the RDF metadata and inkscape elements, see |validator.nu. I also tried to save it as "plain svg" from Inkscape. Uploaded both to Commons. Neither did help.
- I ran rsvg-convert (version 2.52.5) on it and it gave a "rendering error: InvalidMatrix", whatever that means...
- Do you have any further suggestions? I'd really appreciate it.
- --DeWikiMan (talk) 17:58, 15 July 2024 (UTC)
- Creating "optimized SVG" from Inkscape did the trick. I don't know exactly why. I believe, the problem could be related to this librsvg problem [18]. Probably, one of the transform matrices was not invertible. In such a case, the librsvg version which is now used on Commons, possibly does no longer ignore the transform, but fails and stops rendering.
- --DeWikiMan (talk) 19:16, 15 July 2024 (UTC)
- @DeWikiMan: Looks like you found the answer 30 minutes later. Glrx (talk) 19:21, 15 July 2024 (UTC)
MediaWiki internal error
[edit]Accidentally set the license tag to {{|cc-by-sa-4.0-sikander}}
instead of {{cc-by-sa-4.0-sikander}}
on File:LCBO strike - Market street - 20240713C.jpg and got this error:
MediaWiki internal error.
Original exception: [a752adf9-f969-4f5e-b251-829dc2d1186e] 2024-07-14 20:57:43: Fatal exception of type "Wikimedia\Rdbms\DBUnexpectedError"
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
Should I report this somewhere other than here? Regards // sikander { talk } 🦖 21:03, 14 July 2024 (UTC)
- @Sikander: Is this error still occuring? I had this issue, too --PantheraLeo1359531 😺 (talk) 16:35, 15 July 2024 (UTC)
- @PantheraLeo1359531: No, not happening now. Got that error a few times when updating the files but after a few minutes it started working fine. // sikander { talk } 🦖 16:54, 15 July 2024 (UTC)
- Good, I assume it was only a shorter temporarily error ;) --PantheraLeo1359531 😺 (talk) 18:18, 15 July 2024 (UTC)
- @PantheraLeo1359531: No, not happening now. Got that error a few times when updating the files but after a few minutes it started working fine. // sikander { talk } 🦖 16:54, 15 July 2024 (UTC)
Tech News: 2024-29
[edit]Latest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Tech News survey
- Please help us to improve Tech News by taking this short survey. The goal is to better meet the needs of the various types of people who read Tech News. The survey will be open for 3 more days. The survey is covered by this privacy statement. Some translations are available.
Recent changes
- Wikimedia developers can now officially continue to use both Gerrit and GitLab, due to a June 24 decision by the Wikimedia Foundation to support software development on both platforms. Gerrit and GitLab are both code repositories used by developers to write, review, and deploy the software code that supports the MediaWiki software that the wiki projects are built on, as well as the tools used by editors to create and improve content. This decision will safeguard the productivity of our developers and prevent problems in code review from affecting our users. More details are available in the Migration status page.
- The Wikimedia Foundation seeks applicants for the Product and Technology Advisory Council (PTAC). This group will bring technical contributors and Wikimedia Foundation together to co-define a more resilient, future-proof technological platform. Council members will evaluate and consult on the movement's product and technical activities, so that we develop multi-generational projects. We are looking for a range of technical contributors across the globe, from a variety of Wikimedia projects. Please apply here by August 10.
- Editors with rollback user-rights who use the Wikipedia App for Android can use the new Edit Patrol features. These features include a new feed of Recent Changes, related links such as Undo and Rollback, and the ability to create and save a personal library of user talk messages to use while patrolling. If your wiki wants to make these features available to users who do not have rollback rights but have reached a certain edit threshold, you can contact the team. You can read more about this project on Diff blog.
- Editors who have access to The Wikipedia Library can once again use non-open access content in SpringerLinks, after the Foundation contacted them to restore access. You can read more about this and 21 other community-submitted tasks that were completed last week.
Changes later this week
- This week, dark mode will be available on a number of Wikipedias, both desktop and mobile, for logged-in and logged-out users. Interface admins and user script maintainers are encouraged to check gadgets and user scripts in the dark mode, to find any hard-coded colors and fix them. There are some recommendations for dark mode compatibility to help.
Future changes
- Next week, functionaries, volunteers maintaining tools, and software development teams are invited to test the temporary accounts feature on testwiki. Temporary accounts is a feature that will help improve privacy on the wikis. No further temporary account deployments are scheduled yet. Please share your opinions and questions on the project talk page. [19]
- Editors who upload files cross-wiki, or teach other people how to do so, may wish to join a Wikimedia Commons discussion. The Commons community is discussing limiting who can upload files through the cross-wiki upload/Upload dialog feature to users auto-confirmed on Wikimedia Commons. This is due to the large amount of copyright violations uploaded this way. There is a short summary at Commons:Cross-wiki upload and discussion at Commons:Village Pump.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe. You can also get other news from the Wikimedia Foundation Bulletin.
MediaWiki message delivery 01:28, 16 July 2024 (UTC)
Query to find dates of DR items
[edit]Hi, the first list of files in the DR Commons:Deletion requests/Professional wrestling magazines has copyright issues depending on the date; if published after ~23 October 1987 then they are likely to be deleted. Many of the files only have year in the filename (and some are missing year in the filename), but most seem to have a specific date on the file itself - e.g. File:Ric Flair, circa Spring 1987 (cropped).jpg has 1987 in filename but a date of 1 March 1987 on the file. Is it possible for someone to run a query or join to bring the date from each file into the DR, so that the closer can identify which fall before 23 October 1987 and are eligible for deletion (depending on the DR decision)? Consigned (talk) 13:06, 17 July 2024 (UTC)
- Done, thank you Geohakkeri! Consigned (talk) 16:52, 17 July 2024 (UTC)
Problems with PDF Preview
[edit]Hello, I noticed since a few hours ago the pdf preview function is bugging. I've been uploading slides for sometimes today and noticed that I neither could see the thumbnail nor see the preview in file pages. I did check with my friends, one who used same network as I used, and other who worked in other location, and also using my phone with different networks. All of them reported the same problem. Is this known bug? Or its the problem with my files? Thank you Hisyam Athaya (WMID) (talk) 09:25, 18 July 2024 (UTC)
Hosting of free fonts in Commons
[edit]As technical aspects of the following RfC, I thought it can be a good idea to crosspost link of this RfC Commons:Requests for comment/Hosting of free fonts in Commons in technical village pump. Pardon me if you see unsuitable or already visible enough. Thanks 😊 −Ebrahimtalk 12:48, 18 July 2024 (UTC)
- Good idea, thank you for bringing this up :) --PantheraLeo1359531 😺 (talk) 07:25, 19 July 2024 (UTC)
SVG abruptly not displaying
[edit]At some point within the last month File:LGBTCannabis_white.svg stopped displaying, and it's unclear to me why as this file was uploaded in 2020 and hasn't recently been changed other than being added to an additional category. Clicking 'Original file' gives a 'XML Parsing Error: prefix not bound to a namespace' error, while clicking any of the resolution PNG previews gives a 429 error. This error doesn't seem to be something on my end as I asked someone else on a different computer from a different internet connection to take a look and they confirmed that it's broken for them as well. Apologies if this is a known issue that's being worked on or something a-la graphs extension - I don't frequent Commons. Waxworker (talk) 05:08, 19 July 2024 (UTC)
- @Waxworker: File:LGBTCannabis_white.svg is not a valid XML file. The Commons SVG renderer librsvg was recently upgraded from 2.44 to 2.50, which uses a stricter XML parser, resulting in this error. The fix here is to add a xmlns:sodipodi namespace declaration or just remove the sodipodi:nodetypes attribute. Other files affected by this:
- Dexxor (talk) 09:49, 19 July 2024 (UTC)
The link on this template showing the copyright notice does not function, perhaps it is outdated. I mean the link in the sentence "The text of permission is available here." The current link on "here" is https://mosreg.ru/about/, which is not accesible. The correct link would be https://mk.mosreg.ru/o-sayte . Please can some template expert correct the link, I am not aware of all template technicallities. Regards, Ellywa (talk) 08:44, 19 July 2024 (UTC)
OCR to auto-categorize maps / charts by year shown
[edit]Is there any gadget/tool for optical character recognition (OCR) of files on Wikimedia Commons?
If there is no such thing it would be really great if somebody could give it a try, it could be very useful.
I'd like to categorize Our World in Data maps by the year of the data into Category:Maps of the world by year as well as OWID charts by the latest data point into Category:Charts by year of latest data.
This is useful for many reasons such as making things in the image explicit as metadata, making things queryable (for example combining cats using petscan), statistics, search (see the search box), better enabling people to find the latest version for some data, better WMC search engine results, and (probably most importantly) updating outdated/old datagraphics that are in use (GLAMorgan can be used for that).
The issue there is that there are really many OWID files (which should now all be in the OWID category) and there may be even far more once people upload "image stacks" for the OWID Gadget if that is the way used to display more interactive OWID data (which I oppose as suboptimal).
- Here is the petscan query for OWID maps with unspecified year (552 items)
- Here is the petscan query for OWID charts with unspecified year of latest data (2704 items)
One could go through the former manually which also has the advantage that many of these are missing one or a few other categories but the second one really has too many items to do that manually and again more OWID datagraphics keep getting uploaded and this isn't only about OWID datagraphics (there's also other cats one could scan).
See also my related comment here that is about machine vision on WMC more generally or automated species identification: …open letter…#Image recognition software for categorisers.
In my example usecase, an OCR Commons tool could for example OCR read all numbers in a file (files of the petscan results) and then (if it found one or a plausible one) set the category for the latest year that is ≤ current year
. Prototyperspective (talk) 11:43, 19 July 2024 (UTC)
- For Category:Images by text that could be helpful too. Ideally one could choose
- a word, group of words, or category tree
- define a maximum number of words or characters that should be on an image (sample: less than 5 words). This to avoid doing OCR on lengthy texts.
- Then confirm suggestions made by OCR. Enhancing999 (talk) 12:21, 19 July 2024 (UTC)
- I do not know about gadgets.
- There is an OCR tool.
- See https://ocr.wmcloud.org/ for direct interface and API documentation.
- It will work with PNG files but not SVG files (which can be converted to PNG and then OCR'd).
- One can get the URL for a PNG rendering of an SVG file. Here's a conversion that is 887 pixels wide
- {{filepath:Tulejki zaciskowe.svg|887}} →
- https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Tulejki_zaciskowe.svg/887px-Tulejki_zaciskowe.svg.png
- Here's a Polish OCR run on that PNG:
- [https://tools.wmflabs.org/ws-google-ocr/api.php?image={{filepath:Tulejki zaciskowe.svg|887}}&lang=pl Tulejki zaciskowe.svg] →
- Tulejki zaciskowe.svg →
- https://ocr.wmcloud.org/api.php?engine=google&image=https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Tulejki_zaciskowe.svg/887px-Tulejki_zaciskowe.svg.png&lang=pl →
{"engine":"google","langs":["pl"],"psm":3,"crop":[],"image_hosts":["upload.wikimedia.org","upload.wikimedia.beta.wmflabs.org"],"text":"Typ \u015bci\u0105gaj\u0105cy\nTyp naciskaj\u0105cy\nTyp obustronny"}
- So the Polish text is (converting Unicode code points to Unicode)
- Typ ściągający
- Typ naciskający
- Typ obustronny
- But why OCR an SVG file? The PetScan query shows SVG files that have
text
elements. - With JavaScript, read the SVG file with the Fetch API, grab the
text
elements withgetElementsByTagNS(nsSVG, "text")
, ask for the.textContent
of eachtext
element, and then search that string for the years or terms you want. - I do not know about the rest of the task.
- Glrx (talk) 14:57, 19 July 2024 (UTC)
- But why OCR an SVG file? The PetScan query shows SVG files that have