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/09 /Archive/2024/10.
- 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. | |
Could translated pages be hidden from categories?
editFor example see Category:Commons video resources – all those translated pages in that category make it cluttered, hard to go through the pages, and bury pages on the next page.
Would it be possible to hide translated pages so that only one is shown?
- One could have the links to the translated pages at the top of that page
- One could automatically open the respective translated page when opening the page depending on one's language settings
- (and there are more alternatives)
Prototyperspective (talk) 22:00, 16 August 2024 (UTC)
- Much less useful but still useful would be if the translated pages were also hidden or hidable in the File uses on commons section of file pages because it makes it cluttered and hard to see where a file is used; example. Prototyperspective (talk) 10:08, 19 August 2024 (UTC)
- It's possible to place them in a subcategory, but I don't think status quo is necessarily an issue. They should be categorized in any case. Enhancing999 (talk) 12:17, 22 August 2024 (UTC)
- It's currently not a big problem but it makes things far less overseeable and buries things on other pages or beneath the cluttered page. Imagine if there were 300 translated versions of a page which is just roughly the number of languages with a Wikipedia and not even all notable languages, it would make the category barely usable to find and organize things. Manually subcategorizing wouldn't be a good solution because it requires people to spend time manually doing so and new translations will be directly in the category again. Maybe there could be some multilingual redirect page that redirects to whatever language the user has configured if that language version exists and English otherwise? Prototyperspective (talk) 12:35, 22 August 2024 (UTC)
- Another example: Category:Digitisation help. Prototyperspective (talk) 10:52, 18 September 2024 (UTC)
- It's currently not a big problem but it makes things far less overseeable and buries things on other pages or beneath the cluttered page. Imagine if there were 300 translated versions of a page which is just roughly the number of languages with a Wikipedia and not even all notable languages, it would make the category barely usable to find and organize things. Manually subcategorizing wouldn't be a good solution because it requires people to spend time manually doing so and new translations will be directly in the category again. Maybe there could be some multilingual redirect page that redirects to whatever language the user has configured if that language version exists and English otherwise? Prototyperspective (talk) 12:35, 22 August 2024 (UTC)
- It's possible to place them in a subcategory, but I don't think status quo is necessarily an issue. They should be categorized in any case. Enhancing999 (talk) 12:17, 22 August 2024 (UTC)
Vandals often move captions to other languages – detection needed
editWhat's going on with people somewhat apparently systematically moving captions from one language to a false one? This is happening frequently and often, if not usually, not detected & reverted by editors.
Could a detection of this please be developed? Compared to other vandalism that is well-detected automatically on Wikipedia by for example ClueBot NG (acc) I think it would be easy to detect if a caption got moved from the original language to another one, if possible with language detection so it also checks if the language it was moved indeed does not match the caption text language. Maybe a better place to ask about this would be the Bot requests or the ClueBot NG talk page / code repo.
- Examples
Previously I was wondering how to search my contributions (edit summaries). I was trying to use standardized phrases or terms in edit summaries so I can easily look them up later, for example to replace texts I previously added with templates. I found the following useful tool and because I try to always use term "rvv" when reverting edits that are or seem to most likely be vandalism many examples of such edits can be found here. These are the most recent ones: 1 2 3 4 5 6 7. By the way, I think captions are more a problem or redundant than anything else since there already is the machine-translatable description field (it's useful sometimes when descriptions are long but these could also instead have a short version at the top or be shortened). Another problem is that when undoing changes to captions there is no prefilled edit summary so one has to tediously copy the contributions link of the user and write the edit summary anew. Prototyperspective (talk) 13:04, 17 August 2024 (UTC)
- Given how often this happens (I was able to find a couple of recent instances in a few minutes of looking through RecentChanges) and how weirdly specific of an action it is (it only changes the language of the caption, never its content), I suspect this is a UI/UX issue, not deliberate vandalism, and I suspect it can be addressed by making some changes, like inserting a confirmation dialog when changing the language of an existing caption.
- Does anyone know how/where the caption editing interface is implemented, and who's responsible for it? (I also have a couple of gripes about the language picker used in the caption interface - especially its appearance on mobile.) Omphalographer (talk) 05:16, 18 August 2024 (UTC)
- you're right. try File:JPG Test.jpg.
- given existing captions, users can change the language and then click publish. that results in the aforementioned problematic edits. RZuo (talk) 05:30, 18 August 2024 (UTC)
- There is the new feature to require captchas for action defined in an abuse filter. I thought about requiring captchas for all IP edits on captions. This might reduce these king of accidental edits. GPSLeo (talk) 05:36, 18 August 2024 (UTC)
- Could be but sometimes they do change the text or change multiple languages at once and it seems like it's always only done by new or unregistered users who sometimes did some other different problematic changes.
- Another thing that could be done is automatic detection of the language and displaying at least a warning or adding the file to a maintenance cat if it doesn't match the specified language – this would also be useful since often people specify the wrong language even at upload.
- @RZuo: What do you mean? Why would Omphalographer be right in that this is a UI/UX issue? What you described is exactly the expected behavior: changing the language and then clicking publish, how does this suggest it's not vandalism and a UI issue? I don't see why you and GPSLeo think it would be accidental / an UI issue if one has to deliberately click "publish".
- Even if both captchas are added and they indeed reduce these changes, I still think there should be automatic detection of these changes as well as other likely vandalism. Why is ClueBot_NG not active on WMC? Does ORES work with WMC? There's lots of vandalism here (not just in the captions and the relatively hidden structured data) and I've come across multiple cases where it stayed on a relatively large page for a year or so. Bots/tools could build a queue of edits to check as well as automatically revert edits that are very likely to be vandalism. Moreover, they could learn from edits that specify that the reverted edit was likely vandalism or similarly nonconstructive (it doesn't matter if deliberate or not) if terms like RVV are used.
- Prototyperspective (talk) 10:07, 18 August 2024 (UTC)
- People are on a website an they see a language selection. They want to change the language of the text. They do not expect that they are able to change the content on a website where they do not even have an account. The button says publish but how is this translated into different languages and are these translated terms always that clear? GPSLeo (talk) 10:37, 18 August 2024 (UTC)
- This type of "vandalism" is so specific that it would basically have to be a very dedicated LTA who utilizes IPs from all around the world; it's disruptive but I don't think it's deliberate. Gnomingstuff (talk) 04:49, 26 August 2024 (UTC)
- Yes I think the explanation by GPSLeo is quite plausible. The main subject of this thread however is detecting such edits and auto-reverting them (also useful for other unconstructive edits / reducing maintenance workload) regardless of whether or not they are intentional or not. I don't know what you mean by "LTA" but it could have also been many people that found this to be an effective type of vandalism as it's often not detected and reverted but I already think inadvertent edits may be more likely. Maybe there could be some special confirmation box asking if the user really wants to publish that to the file data without using the word "publish" because maybe those users didn't understand that word. In any case, detecting if the text in the caption matches the languages seems useful and needed in any case, for example because many users add captions in English to other languages at upload or similar things. Prototyperspective (talk) 09:52, 26 August 2024 (UTC)
- Something in the GUI needs improvement. It's plausibel that changing the language and saving it actually adds an additional language rather than deleting one as well: [1] Enhancing999 (talk) 10:10, 26 August 2024 (UTC)
- LTA = long-term abuse, people who vandalize in their specific identifiable way for months or years.
- The main tells on these are edits by infrequent editors with 2 changes per file. Not much help though once it's out of recent changes. I've found some by searching for captions with mismatched languages e.g. "Spanish the," but obviously that only works with certain patterns.
- The problem though with any kind of auto-reverting is that it would have to not catch people fixing this stuff, especially when it's undetected. Gnomingstuff (talk) 11:29, 27 August 2024 (UTC)
- Many don't have 2 changes per file. I think the main indicators are 1. language does not match specified caption language (no other indicator is needed; check language auto-detection of Google Translate or DeepL to see what I mean with language detection) 2. user isn't an editor with many unreverted edits (would only use this indicator early on as language mismatching is a general problem).
- I don't understand what you mean with The problem though with any kind of auto-reverting is that it would have to not catch people fixing this stuff. People fixing this stuff would move the caption back to its matching language or remove the flawed captions so they wouldn't be detected. Prototyperspective (talk) 11:51, 27 August 2024 (UTC)
- The solution may be mw:Moderator Tools/Automoderator but I don't know if it also checks changes to captions, does it? Prototyperspective (talk) 10:51, 18 September 2024 (UTC)
- Can Automoderator detect these changes? People still move the captions. Maybe it's indeed some interface issue where things aren't clear and people think moving the caption to another language and then clicking "Publish" (or a translation of that word) would show the caption in their language. Prototyperspective (talk) 10:43, 25 September 2024 (UTC)
- The solution may be mw:Moderator Tools/Automoderator but I don't know if it also checks changes to captions, does it? Prototyperspective (talk) 10:51, 18 September 2024 (UTC)
- Yes I think the explanation by GPSLeo is quite plausible. The main subject of this thread however is detecting such edits and auto-reverting them (also useful for other unconstructive edits / reducing maintenance workload) regardless of whether or not they are intentional or not. I don't know what you mean by "LTA" but it could have also been many people that found this to be an effective type of vandalism as it's often not detected and reverted but I already think inadvertent edits may be more likely. Maybe there could be some special confirmation box asking if the user really wants to publish that to the file data without using the word "publish" because maybe those users didn't understand that word. In any case, detecting if the text in the caption matches the languages seems useful and needed in any case, for example because many users add captions in English to other languages at upload or similar things. Prototyperspective (talk) 09:52, 26 August 2024 (UTC)
How to use temporal media fragments to link to audio chapters in file description?
editWith videos it is possible to specify a start (and end) time of the video – see Commons:Video#Temporal media fragments.
- Is it possible to link to times of the videos in the file description?
- Is that already possible somehow for audio files?
I think it would be very useful if in the file description of Spoken Wikipedia audio files, like those that I just uploaded, there were links to the different sections of the article. If one is only interested in a particular section of the article one could jump to it directly and listen to only that. It also gives some orientation where one is currently at when listening to articles. Linking to chapters is possible on YouTube and probably many users have already noticed some ways this can be useful. For example, I'd like to link the timestamps in the description here and add timestamp links to the different exercises here.
This doesn't seem to work with videos either as one would have to append ?start=00:26
but can only append things like #start=00:26
. Is there some issue about these things? Prototyperspective (talk) 12:46, 22 August 2024 (UTC)
- There isn't really a universal chapter methodology in HTML5 video. The HTML5 idea is that you create your own VTT file (which we don't yet support). These could refer to Commons link (they can be anything you like, as all support for it is completely custom work). Then you write custom Javascript to listen to the timedtext events, read the 'text' (a description and link in this case) and go do something with that (wrapped inside a videojs custom plugin).
- Related tickets about this in phabricator. phab:T116154, phab:T301826. —TheDJ (talk • contribs) 18:08, 25 August 2024 (UTC)
- You can link to start points in the file description page using start= and end= query params like:
- File:Using_a_Power_Rack_in_bodybuilding,_powerlifting,_strength_training,_resistance_exercise.webm?start=00:10&end=00:15, but it is not that useful, as there is no autoplay etc. —TheDJ (talk • contribs) 18:14, 25 August 2024 (UTC)
- The two issues you linked don't seem to be related to this at all. What you wrote is about annotations like a link or a balloon message informing about an inaccuracy in the video at specific times of the video. In contrast this post here is about video chapters and linking to different times of the video in the file description.
- Yes, I know that one can link to start points that way and explicitly said that in the last paragraph. As said, one would need to link to these from there like
#start=00:26
because when including a link like your example, it opens the video in a new tab at that starting point instead of directly jumping to it. - This is really important for Spoken Wikipedia where you may like to jump to a particular section. There also needs to be some proper audio player, with the current one only being the fallback, that for example is wider so you can jump to some timing better and with a -10 seconds feature.
- Prototyperspective (talk) 10:49, 26 August 2024 (UTC)
- It generally needs a modern improved audio-player that has not only chapter/timestamp-link functionality, but also several other widely established standard features (one could use an existing open source audio player). Prototyperspective (talk) 10:54, 18 September 2024 (UTC)
How to distinguish categories set by the Infobox from other cats?
editIt would be great if somebody could create a report that lists categories that don't have any categories except for meta-categories set by the Wikidata Infobox like Category:Uses of Wikidata Infobox with no image as proposed here. Example
Is there some way to distinguish categories set by the Infobox from other categories?
It would be best if one could also distinguish between meta-categories set by the WD Infobox like the one above and other categories set by the WD Infobox like Category:Lonnie (given name) (from example) because some categories that only have categories set by the WD Infobox don't need any other categories so would best show up in some separate less important report at some point (and it may even be desirable to increase cats that only have cats set by their WD Infobox). Prototyperspective (talk) 19:47, 30 August 2024 (UTC)
- Any other place to ask about this? Prototyperspective (talk) 10:45, 18 September 2024 (UTC)
Audio of music contain copyvio thumbnails
editThe thumbnails are not showing up at the audio file but the thumbnail is embedded in them. However, they are embedded in the file and when downloading the file one can see or extract them. Example.
- Many of these thumbnails are copyrighted. This means usually the thumbnail would need to be removed. video2commons already imports audio files without the thumbnails. Could there be some script or bot that categorized all audio files with a thumbnail set into e.g. Category:Audio files with embedded thumbnail?
- Then as a next step one could remove all of them at scale and efficiently using some metadata removal tool, for example similar to command
eyeD3 --remove-all-images **/*.opus
(applied to all audio files in some category). I guess it would be best to not remove the thumbnail for identified cases where the thumbnail is CCBY as well, these could e.g. be moved to another category or audio files whose thumbnails should be removed to a subcategory of the category above. (A more sophisticated method would be to reverse image search each thumbnail for finds via tineye so only non-original works are deleted and thumbnails created by the person licensing the work under CCBY kept (if the CCBY license also applies to the thumbnail) but I don't think this would be necessary as it would cause a lot of manual work of checking whether it's indeed a copyvio and whether thumbnails without reverse search result are indeed not copyvios.)
Just as a note: the audio files of the example display 0:00 as duration instead of the duration which only shows after one has clicked play. Prototyperspective (talk) 00:07, 4 September 2024 (UTC)
- When removing the thumbnail one could replace it with a link that enables people to easily download the thumbnail again from some metadata provider. So they should just contain a link or an ID with which to fetch the thumbnail but not a thumbnail image. Prototyperspective (talk) 15:12, 6 September 2024 (UTC)
- Maybe this should be put into bot requests. I think thumbnails should be fetchable via e.g. MusicBrainz. Prototyperspective (talk) 10:45, 18 September 2024 (UTC)
A bot that moves categories to the bottom of the page
editMany of my files have the categories in the description. There’s too many to manually move, but is there a way to move them to the bottom with a bot as is done on Wikipedia? Immanuelle ❤️💚💙 (please tag me) 07:37, 8 September 2024 (UTC)
- Example? Prototyperspective (talk) 09:53, 8 September 2024 (UTC)
- @Immanuelle: You can almost certainly use COM:VFC to do it, but I'd suggest not bothering. The categories will work properly wherever they are, so no-one will care unless they're actually reading the wikitext. And if they're reading the wikitext they can fix it themselves. --bjh21 (talk) 11:11, 15 September 2024 (UTC)
Tech News: 2024-37
editLatest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Feature news
- Starting this week, the standard syntax highlighter will receive new colors that make them compatible in dark mode. This is the first of many changes to come as part of a major upgrade to syntax highlighting. You can learn more about what's to come on the help page. [2][3]
- Editors of wikis using Wikidata will now be notified of only relevant Wikidata changes in their watchlist. This is because the Lua functions
entity:getSitelink()
andmw.wikibase.getSitelink(qid)
will have their logic unified for tracking different aspects of sitelinks to reduce junk notifications from inconsistent sitelinks tracking. [4]
Project updates
- Users of all Wikis will have access to Wikimedia sites as read-only for a few minutes on September 25, starting at 15:00 UTC. This is a planned datacenter switchover for maintenance purposes. More information will be published in Tech News and will also be posted on individual wikis in the coming weeks. [5]
- Contributors of 11 Wikipedias, including English will have a new
MOS
namespace added to their Wikipedias. This improvement ensures that links beginning withMOS:
(usually shortcuts to the Manual of Style) are not broken by Mooré Wikipedia (language codemos
). [6]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
Troubleshooting needed for File:AMD Zen.svg
editCan someone investigate why the SVG graphic image File:AMD Zen.svg suddenly stopped working? On the Wikipedia pages where it's used, it's just a blank grey image, and if I click on it, it says "Sorry, the file cannot be displayed - There seems to be a technical issue. You can retry if it persists. Error: could not load image from https://upload.wikimedia.org/wikipedia/commons/thumb/9/9f/AMD_Zen.svg/800px-AMD_Zen.svg.png". Then when I go to Commons where it's hosted, I just see a link to "File:AMD Zen.svg" in place of where the image should be. Opening the link brings me to a page with the error "XML Parsing Error: prefix not bound to a namespace", and trying to open a lower-resolution render just results in a random WMF error like "server technical issue" or "Too many requests, try again later".
Obviously I've had a look at the file upload and page history for this item and there doesn't seem to be any recent changes (or vandalism) that could have caused this to happen. AP 499D25 (talk) 07:53, 13 September 2024 (UTC)
- no xlink namespace declaration. We will need to wait for Commons image scalars to quiet down. Glrx (talk) 20:03, 13 September 2024 (UTC)
- Now it's working again. Kinda bizarre that the other similar-looking files File:AMD Threadripper.svg and File:AMD Epyc.svg were still working at the time, which led me to think that perhaps there was a programming error or some code change that broke File:AMD Zen.svg. AP 499D25 (talk) 03:12, 14 September 2024 (UTC)
Problem in File:Typhoon-Yagi 5.jpg
editFor some reason when I attempted to open File:Typhoon-Yagi 5.jpg, I get nothing but File not found: /v1/AUTH_mw/wikipedia-commons-local-public.d5/d/d5/Typhoon-Yagi_5.jpg
. Neither switching browser nor clearing cache help the problem. Initially I thought the file was broken, but Túrelio informed me that he can access the file without problem.
From the archives there appears that there are 2 similar problems. One in February 2022 was resolved by clearing cache, while another in August 2022 ended up in Phabricator. I'd like to ask are there anyone having similar problems, and should I report the matter to Phabricator? Many thanks.廣九直通車 (talk) 13:02, 14 September 2024 (UTC)
- Works perfectly well to me. Are you still getting the error message? — Alien 3
3 3 14:01, 14 September 2024 (UTC)- Well I just clicked on it and I'm getting the same error myself too! It must be related to my posting about File:AMD Zen.svg above. AP 499D25 (talk) 14:22, 14 September 2024 (UTC)
- Maybe a browser issue? I'm on Firefox, and you? — Alien 3
3 3 14:30, 14 September 2024 (UTC)
- Maybe a browser issue? I'm on Firefox, and you? — Alien 3
- Well I just clicked on it and I'm getting the same error myself too! It must be related to my posting about File:AMD Zen.svg above. AP 499D25 (talk) 14:22, 14 September 2024 (UTC)
- i can also access it, both file page and original file https://upload.wikimedia.org/wikipedia/commons/d/d5/Typhoon-Yagi_5.jpg . using firefox on windows 11. RZuo (talk) 15:46, 14 September 2024 (UTC)
- I'm on Win 11. File page does not display image with Chrome or Edge. Loading directly in Chrome, I get "File not found: /v1/AUTH_mw/wikipedia-commons-local-public.d5/d/d5/Typhoon-Yagi_5.jpg" out of the cache.
access-control-allow-origin: * access-control-expose-headers: Age, Date, Content-Length, Content-Range, X-Content-Duration, X-Cache age: 480 content-length: 85 content-type: text/html; charset=UTF-8 date: Sat, 14 Sep 2024 17:58:37 GMT nel: { "report_to": "wm_nel", "max_age": 604800, "failure_fraction": 0.05, "success_fraction": 0.0} report-to: { "group": "wm_nel", "max_age": 604800, "endpoints": [{ "url": "https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0" }] } server: envoy server-timing: cache;desc="hit-front", host;desc="cp4052" strict-transport-security: max-age=106384710; includeSubDomains; preload timing-allow-origin: * x-cache: cp4052 miss, cp4052 hit/4 x-cache-status: hit-front x-content-type-options: nosniff
- File page and JPEG display with Firefox 130.0 (64-bit).
- Glrx (talk) 18:12, 14 September 2024 (UTC)
- Different users get (or don't get) the same file from different servers?
∞∞ Enhancing999 (talk) 23:58, 14 September 2024 (UTC)- Update: tried Safari on iOS, also failed. Probably best to be dealt on Phabricator?廣九直通車 (talk) 06:58, 15 September 2024 (UTC)
- Phabricator bug report filed at phab:T374773, FYI.廣九直通車 (talk) 07:19, 15 September 2024 (UTC)
- Johannnes89 on Phabricator reported that he has no problem in accessing the file with Chrome and Safari, presumably in his home in Germany. Like to ask where did you access the file?廣九直通車 (talk) 09:24, 15 September 2024 (UTC)
- Yes I accessed it from Germany indeed, so the issue might be about accessing it from different servers. Johannnes89 (talk) 09:37, 15 September 2024 (UTC)
- Just tried it from Edge, and it worked.
accept-ranges: bytes access-control-allow-origin: * access-control-expose-headers: Age, Date, Content-Length, Content-Range, X-Content-Duration, X-Cache age: 0 content-length: 7434740 content-type: image/jpeg date: Sun, 15 Sep 2024 14:55:18 GMT etag: fe68fa2d2c9fb9101db078cb263815cb last-modified: Fri, 13 Sep 2024 09:57:44 GMT nel: { "report_to": "wm_nel", "max_age": 604800, "failure_fraction": 0.05, "success_fraction": 0.0} report-to: { "group": "wm_nel", "max_age": 604800, "endpoints": [{ "url": "https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0" }] } server: envoy server-timing: cache;desc="miss", host;desc="cp1115" strict-transport-security: max-age=106384710; includeSubDomains; preload timing-allow-origin: * x-cache: cp1115 miss, cp1115 miss x-cache-status: miss x-content-type-options: nosniff x-object-meta-sha1base36: l1h10jxvtd5o73z4q51fcqsot4fy2wu
- Glrx (talk) 14:59, 15 September 2024 (UTC)
- server cp1115 seems to have the file, but not cp4052
∞∞ Enhancing999 (talk) 15:07, 15 September 2024 (UTC) - As of 16:00 UTC+8, I can now access the file without problem in Hong Kong. Will like to hear if anyone elsewhere still has trouble in accessing the file?廣九直通車 (talk) 08:14, 16 September 2024 (UTC)
- Now that the task has been resolved on Phabricator, I think it's time to resolve and archive this thread. Thanks for all of your comments.廣九直通車 (talk) 10:33, 16 September 2024 (UTC)
- server cp1115 seems to have the file, but not cp4052
- Just tried it from Edge, and it worked.
- Yes I accessed it from Germany indeed, so the issue might be about accessing it from different servers. Johannnes89 (talk) 09:37, 15 September 2024 (UTC)
- Johannnes89 on Phabricator reported that he has no problem in accessing the file with Chrome and Safari, presumably in his home in Germany. Like to ask where did you access the file?廣九直通車 (talk) 09:24, 15 September 2024 (UTC)
- Different users get (or don't get) the same file from different servers?
- Curious how often this happens. Apparently there is a weekly process to fix it, see phab:T374773#10147831.
∞∞ Enhancing999 (talk) 10:43, 16 September 2024 (UTC)
Reupload crashed midway
editOn Poems Betham p9.jpg. I redid the colors, tried to reupload it, it lagged for a few minutes then crashed. A new version of the file has been added to the upload history, but the file itself is still exactly the same (including after purge), and when I try to reupload the corrected version, it gets refused as a duplicate of the "current version" of the file, which it is not. What should I do? — Alien 3
3 3 13:59, 14 September 2024 (UTC)
- Undid the upload, redid the upload, all good now. Whatever... — Alien 3
3 3 14:54, 14 September 2024 (UTC)- Caching issue? I did see two different files when there were just two versions.
∞∞ Enhancing999 (talk) 15:43, 14 September 2024 (UTC)- No, purged everything twice, still didn't work. Once I undid and redid it, though, it started pretending that the first try worked. — Alien 3
3 3 15:52, 14 September 2024 (UTC)- Could be the typhoon problem mentioned above.
∞∞ Enhancing999 (talk) 13:40, 17 September 2024 (UTC)- Don't think so, it wasn't the same problem, as the file was not updating, but I didn't get a 404 error. — Alien 3
3 3 16:31, 17 September 2024 (UTC)
- Don't think so, it wasn't the same problem, as the file was not updating, but I didn't get a 404 error. — Alien 3
- Could be the typhoon problem mentioned above.
- No, purged everything twice, still didn't work. Once I undid and redid it, though, it started pretending that the first try worked. — Alien 3
- Caching issue? I did see two different files when there were just two versions.
Tech News: 2024-38
editLatest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Improvements and Maintenance
- Editors interested in templates can help by reading the latest Wishlist focus area, Template recall and discovery, and share your feedback on the talkpage. This input helps the Community Tech team to decide the right technical approach to build. Everyone is also encouraged to continue adding new wishes.
- The new automated Special:NamespaceInfo page helps editors understand which namespaces exist on each wiki, and some details about how they are configured. Thanks to DannyS712 for these improvements. [7]
- References Check is a feature that encourages editors to add a citation when they add a new paragraph to a Wikipedia article. For a short time, the corresponding tag "Edit Check (references) activated" was erroneously being applied to some edits outside of the main namespace. This has been fixed. [8]
- It is now possible for a wiki community to change the order in which a page’s categories are displayed on their wiki. By default, categories are displayed in the order they appear in the wikitext. Now, wikis with a consensus to do so can request a configuration change to display them in alphabetical order. [9]
- Tool authors can now access ToolsDB's public databases from both Quarry and Superset. Those databases have always been accessible to every Toolforge user, but they are now more broadly accessible, as Quarry can be accessed by anyone with a Wikimedia account. In addition, Quarry's internal database can now be queried from Quarry itself. This database contains information about all queries that are being run and starred by users in Quarry. This information was already public through the web interface, but you can now query it using SQL. You can read more about that, and 20 other community-submitted tasks that were resolved last week.
- Any pages or tools that still use the very old CSS classes
mw-message-box
need to be updated. These old classes will be removed next week or soon afterwards. Editors can use a global-search to determine what needs to be changed. It is possible to use the newercdx-message
group of classes as a replacement (see the relevant Codex documentation, and an example update), but using locally defined onwiki classes would be best. [10]
Technical project updates
- Next week, all Wikimedia wikis will be read-only for a few minutes. This will start on September 25 at 15:00 UTC. This is a planned datacenter switchover for maintenance purposes. This maintenance process also targets other services. The previous switchover took 3 minutes, and the Site Reliability Engineering teams use many tools to make sure that this essential maintenance work happens as quickly as possible. [11]
Tech in depth
- The latest monthly MediaWiki Product Insights newsletter is available. This edition includes details about: research about hook handlers to help simplify development, research about performance improvements, work to improve the REST API for end-users, and more.
- To learn more about the technology behind the Wikimedia projects, you can now watch sessions from the technology track at Wikimania 2024 on Commons. This week, check out:
- Hackathon Showcase (45 mins) - 19 short presentations by some of the Hackathon participants, describing some of the projects they worked on, such as automated testing of maintenance scripts, a video-cutting command line tool, and interface improvements for various tools. There are more details and links available in the Phabricator task.
- Co-Creating a Sustainable Future for the Toolforge Ecosystem (40 mins) - a roundtable discussion for tool-maintainers, users, and supporters of Toolforge about how to make the platform sustainable and how to evaluate the tools available there.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
Best way to batch upload from Youtube?
editI found on Youtube some interesting video collections under Creative Commons, mainly [12]https://www.youtube.com/@AnimadosICAIC Cartoons from Cuba]. Some of those are really good. But there are a ton of those cartoons under CC. Is there any way of batch uploading the collection?
I use video2commons to upload one per one, but it is a slow method. TaronjaSatsuma (talk) 12:55, 17 September 2024 (UTC)
- I think asking at the talk page of video2commons would be more appropriate. There already is a thread about this: Commons talk:Video2commons#API for this tool albeit probably not easy to see due to its title. Some info on that there. Batch upload of all videos from a channel would be great. Your example isn't really good however, there are far better examples. I think it would be best be added directly into video2commons so you can simply enter a channel URL and it guides you through importing all CCBY videos where you can deselect some videos to not import, adjust the titles, and so on. Alternatively a separate tool could make use of V2C via some API or fork it for specifically this functionality. However it's implemented it should not lead to blocking others from using the tool so there would need to be some measures like some pause between every 5 videos or so. Another thing that is needed is that video2commons needs to check if a video with that youtube ID has already been imported so things don't get imported multiple times which can more easily happen once such functionality is there. Since nobody seems to yet developed such a tool according to the thread at V2C it may now indeed be good to ask here. Prototyperspective (talk) 15:21, 17 September 2024 (UTC)
- Thanks. Very good reply. TaronjaSatsuma (talk) 15:30, 17 September 2024 (UTC)
Can we create a tracking category for Galleries not connected to Wikidata items?
editCan we create a tracking category for Galleries not connected on Wikidata items?
I would like to be able to see which Gallery pages are not being used in Wikidata's Gallery' Property Commons gallery (P935), but I have no idea what the best strategy is for a crosswiki tracking category like that would be. A bot? @Multichill: Anyone you think who would be good at this? Sadads (talk) 20:41, 19 September 2024 (UTC)
- We already can't reliably track categories that are actually connected to Wikidata, so it's unlikely. Given the average quality of galleries, it's probably not really a priority for these.
∞∞ Enhancing999 (talk) 08:58, 21 September 2024 (UTC) - You can use SQL queries to fetch a list about gallery pages without Wikidata items (Example: Quarry: 86422) -- Zache (talk) 10:41, 21 September 2024 (UTC)
Defaultsort template
editCan someone explain how the template Template:DEFAULTSORT works as the page has no information of any kind like most other template have? Ww2censor (talk) 08:23, 21 September 2024 (UTC)
- It seems to be for people who get the syntax wrong ("|" instead of ":"), see w:Template:DEFAULTSORT
∞∞ Enhancing999 (talk) 08:54, 21 September 2024 (UTC)
Filter request: parliamentdiagram images with incorrect licenses
editWhen an editor uses the parliament diagram tool (https://parliamentdiagram.toolforge.org/), the license should be {{PD-shape}}. However, if someone manually downloads the image and uploads it to Commons, instead of clicking the buttons at the bottom to upload the image though OAuth, they can choose any license, and frequently choose incorrect ones (I regularly see the combo of cc-zero + pd-algorithm because that's what the upload wizard seems to steer people towards). Is there anything we can do with filters to catch when this happens so they can be fixed? The Squirrel Conspiracy (talk) 13:57, 22 September 2024 (UTC)
Tech News: 2024-39
editLatest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Weekly highlight
- All wikis will be read-only for a few minutes on Wednesday September 25 at 15:00 UTC. Reading the wikis will not be interrupted, but editing will be paused. These twice-yearly processes allow WMF's site reliability engineering teams to remain prepared to keep the wikis functioning even in the event of a major interruption to one of our data centers.
Updates for editors
- Editors who use the iOS Wikipedia app in Spanish, Portuguese, French, or Chinese, may see the Alt Text suggested-edit experiment after editing an article, or completing a suggested edit using "Add an image". Alt-text helps people with visual impairments to read Wikipedia articles. The team aims to learn if adding alt-text to images is a task that editors can be successful with. Please share any feedback on the discussion page.
- The Codex color palette has been updated with new and revised colors for the MediaWiki user interfaces. The most noticeable changes for editors include updates for: dark mode colors for Links and for quiet Buttons (progressive and destructive), visited Link colors for both light and dark modes, and background colors for system-messages in both light and dark modes.
- It is now possible to include clickable wikilinks and external links inside code blocks. This includes links that are used within
<syntaxhighlight>
tags and on code pages (JavaScript, CSS, Scribunto and Sanitized CSS). Uses of template syntax{{…}}
are also linked to the template page. Thanks to SD0001 for these improvements. [13] - Two bugs were fixed in the GlobalVanishRequest system by improving the logging and by removing an incorrect placeholder message. [14][15]
- View all 25 community-submitted tasks that were resolved last week.
Updates for technical contributors
- From Wikimedia Enterprise:
- The API now enables 5,000 on-demand API requests per month and twice-monthly HTML snapshots freely (gratis and libre). More information on the updates and also improvements to the software development kits (SDK) are explained on the project's blog post. While Wikimedia Enterprise APIs are designed for high-volume commercial reusers, this change enables many more community use-cases to be built on the service too.
- The Snapshot API (html dumps) have added beta Structured Contents endpoints (blog post on that) as well as released two beta datasets (English and French Wikipedia) from that endpoint to Hugging Face for public use and feedback (blog post on that). These pre-parsed data sets enable new options for researchers, developers, and data scientists to use and study the content.
In depth
- The Wikidata Query Service (WDQS) is used to get answers to questions using the Wikidata data set. As Wikidata grows, we had to make a major architectural change so that WDQS could remain performant. As part of the WDQS Graph Split project, we have new SPARQL endpoints available for serving the "scholarly" and "main" subgraphs of Wikidata. The query.wikidata.org endpoint will continue to serve the full Wikidata graph until March 2025. After this date, it will only serve the main graph. For more information, please see the announcement on Wikidata.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
Bad link preview in LINE
editOdd, the link preview in LINE looks so unfriendly: File:Sharing Commons files in LINE.png Jidanni (talk) 13:31, 28 September 2024 (UTC)
- The text is from MediaWiki:Upload-disallowed-here. The question is if Commons places that text too prominently or if LINE (software) just picks the wrong string (likely if it doesn't happen with most others). This should probably be reported at LINE instead.
∞∞ Enhancing999 (talk) 19:49, 28 September 2024 (UTC)
Search box for category pages
editTemplate:Search inside category is a neat template that can be manually added to category pages to add a search box where even unexperienced users can search the category contents.
This is most if not only useful when also searching subcategories so I forked it to Template:Search box inside category to use the deepcategory
search operator that also searches subcategories. The problem with that is that it doesn't work in many categories where it would be most useful since deepcategory only works for relatively flat categories, not those with deeply nested subcategory branches. I created phab:T369808 and this was recently improved. However, it still fails on large categories and I think instead of failing it should show the results up to some level of subcategory depth and show a warning that not all subcategories could be included (maybe even list them).
Two examples where I think the search box searching all subcategories is useful: Category:Our World in Data and Category:Videos by Terra X.
Aside for the deepcategory issues there are now two further problems which is why I'm posting here:
- How can it be made to use MediaSearch instead of the older SpecialSearch? (I've also asked here at mw:Extension:InputBox earlier)
- This
|namespaces=
parameter doesn't seem to work – how can the box be made to search only Files?
Maybe at some point it (or a variant of it that is for example much smaller) could be added to category pages by default or to the Wikidata infobox. Better than these approaches would be if the Wikimedia search engine could show a dropdown whether to search all Wikimedia Commons or only the current category. The default would be to search all of WMC so the search experience for somebody looking to search all of Commons would stay the same but when looking to search only the category one would only need to select the second dropdown after entering some search terms into the box. This is like on GitHub where when entering something into the search bar when on some repository page (like this page) it shows the dropdown options "Search in this repository" or "Search all of GitHub".
If nobody knows, another page where to ask this would also be very useful.
--Prototyperspective (talk) 22:21, 28 September 2024 (UTC)
- The search mode (MediaSearch vs. SpecialSearch) should default to the user's preferred choice. Commons:Village pump/Technical may be a better venue for, er, technical questions. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:57, 29 September 2024 (UTC)
- I have configured MediaSearch to be the default but it searches SpecialSearch. Okay, I'll move this discussion there. Prototyperspective (talk) 20:44, 29 September 2024 (UTC)
Tech News: 2024-40
editLatest tech news from the Wikimedia technical community. Please tell other users about these changes. Not all changes will affect you. Translations are available.
Updates for editors
- Readers of 42 more wikis can now use Dark Mode. If the option is not yet available for logged-out users of your wiki, this is likely because many templates do not yet display well in Dark Mode. Please use the night-mode-checker tool if you are interested in helping to reduce the number of issues. The recommendations page provides guidance on this. Dark Mode is enabled on additional wikis once per month.
- Editors using the 2010 wikitext editor as their default can access features from the 2017 wikitext editor by adding
?veaction=editsource
to the URL. If you would like to enable the 2017 wikitext editor as your default, it can be set in your preferences. [16] - For logged-out readers using the Vector 2022 skin, the "donate" link has been moved from a collapsible menu next to the content area into a more prominent top menu, next to "Create an account". This restores the link to the level of prominence it had in the Vector 2010 skin. Learn more about the changes related to donor experiences. [17]
- The CampaignEvents extension provides tools for organizers to more easily manage events, communicate with participants, and promote their events on the wikis. The extension has been enabled on Arabic Wikipedia, Igbo Wikipedia, Swahili Wikipedia, and Meta-Wiki. Chinese Wikipedia has decided to enable the extension, and discussions on the extension are in progress on Spanish Wikipedia and on Wikidata. To learn how to enable the extension on your wiki, you can visit the CampaignEvents page on Meta-Wiki.
- View all 22 community-submitted tasks that were resolved last week.
Updates for technical contributors
- Developers with an account on Wikitech-wiki should check if any action is required for their accounts. The wiki is being changed to use the single-user-login (SUL) system, and other configuration changes. This change will help reduce the overall complexity for the weekly software updates across all our wikis.
In depth
- The server switch was completed successfully last week with a read-only time of only 2 minutes 46 seconds. This periodic process makes sure that engineers can switch data centers and keep all of the wikis available for readers, even if there are major technical issues. It also gives engineers a chance to do maintenance and upgrades on systems that normally run 24 hours a day, and often helps to reveal weaknesses in the infrastructure. The process involves dozens of software services and hundreds of hardware servers, and requires multiple teams working together. Work over the past few years has reduced the time from 17 minutes down to 2–3 minutes. [18]
Meetings and events
- October 4–6: WikiIndaba Conference's Hackathon in Johannesburg, South Africa
- November 4–6: MediaWiki Users and Developers Conference Fall 2024 in Vienna, Austria
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
Uncaught error
editIts been several times that I get an uncaught error when clicking on Find possible candidates (Autopatrol) as suggested on Commons:Requests for rights#Autopatrol. The error it shows is Uncaught Error: Syntax error, unrecognized expression: #https://commons.wikimedia.org/wiki/Commons:Requests_for_rights/possible_autopatrolled_candidates
from https://commons.wikimedia.org/w/load.php?lang=en&modules=ext.discussionTools.init%7Cjquery%2Coojs-ui-core%7Cjquery.ui&skin=vector&version=1ewe9 at line....
- difficult to even copy but I managed copying this much. Can anyone take a look? Regards, Aafi (talk) 04:57, 2 October 2024 (UTC)
Blank PNG preview of SVG file
editThe article "en:Ordinary differential equation" used "File:Parabolic trajectory.svg" until User:204.18.91.249 removed it in this edit with the comment "there is no graph or picture. i delete it so some one notice it".
Indeed, all the previews on the page Parabolic_trajectory.svg are blank, although the original file is fine in Chrome. The file has not been changed since 2007, so I guess that the previews were previously working.
What is the best way to get this resolved? JonH (talk) 07:40, 2 October 2024 (UTC)
- Many SVG previews are not working – here is another example (it lost the thumbnail after @Quiddity (WMF): updated it). I asked about it on its talk page, at least for finding out some info about what could be the cause. The best way would probably to create an issue on phabricator which likely just collects dust there for around a decade since there's too few active developers and maybe such an issue already exists (if so please link it here, I couldn't find it). Prototyperspective (talk) 09:23, 2 October 2024 (UTC)
- @JonH: Malformed
viewBox
attribute:viewBox=""
. Fixed. Affected by renderer update in April 2024. Glrx (talk) 17:01, 2 October 2024 (UTC)- @Girx: Thanks for fixing this and restoring "en:Ordinary differential equation". JonH (talk) 00:56, 3 October 2024 (UTC)
- @JonH: Malformed
- @Prototyperspective: . File:Community Engagement - Maps of teams and workflows.svg had a bad illustrator namespace definition. Fixed. Glrx (talk) 17:09, 2 October 2024 (UTC)
Better triage for users starting cfd
editQuite often we see cfd like Commons:Categories for discussion/2024/09/Category:Deforestration in Turkey, which doesnt need cfd but a simple speedy tag, but MediaWiki:Gadget-AjaxQuickDelete.js doesnt currently have any info about this.
short term solution: add info to the popup so users can see the easier way before they start a cfd and copypaste the speedy tag.
long term solution: let the popup provide two modes for users to choose from: speedy and cfd.
the code to change is probably around MediaWiki:Gadget-AjaxQuickDelete.js#L-493. RoyZuo (talk) 12:24, 2 October 2024 (UTC)
Some files for Wikisource aren't loading properly (important!)
editSee, for example, File:The Dream-Quest of Unknown Kadath.pdf – it seems like the JPG previews aren't loading? This is causing a problem at s:en:Index:The Dream-Quest of Unknown Kadath.pdf, because the images of the individual pages which we transcribe aren't loading. For example, go to s:en:Page:The Dream-Quest of Unknown Kadath.pdf/5 – the right hand side of your screen should not be empty, it should hold an image of the relevant page – see s:en:Page:Songs of a Cowherd.djvu/13 for an example.
This appears to be a problem at Commons' end. Please, does anyone know how to fix it? It is quite problematic for Wikisource, and I have noticed a similar effect elsewhere (see s:Wikisource:Scriptorium/Help#PDF_images_not_loading).
Thank-you. Cremastra (talk) 14:19, 3 October 2024 (UTC)
- I think @Sannita (WMF) is checking it.
∞∞ Enhancing999 (talk) 21:20, 3 October 2024 (UTC) - Hi @Cremastra, thank you for reporting this malfunction. Would it be a problem for you to file a bug report on Phabricator about it, and then link it here to me? If you can't, I can do it and then relay it to the team. Let me know! Sannita (WMF) (talk) 08:27, 4 October 2024 (UTC)
- Given the answer in Commons:Village_pump/Technical/Archive/2024/07#Problems_with_PDF_Preview, I think we can trust it has already been reported but fixing it isn't a priority. Workaround would be to upload page-by-page in jpg format.
∞∞ Enhancing999 (talk) 11:49, 4 October 2024 (UTC)- Enhancing999: That won’t work for existing files, and isn’t practicable for large files (see, e.g., s:en:Index:United States Statutes at Large Volume 128.pdf; imagine uploading 4,365 separate jpg files when one PDF or DjVu would work). TE(æ)A,ea. (talk) 13:09, 4 October 2024 (UTC)
- Broken functionality of Proofread Page because it can't fetch the images isn't a high priority? If this isn't fixed soon, I am going to have to reconsider if recomened Wikisource to other people! ShakespeareFan00 (talk) 22:14, 4 October 2024 (UTC)
- Page-by-page uploading is not better, and almost never is. It's always a technical nightmare, as a lot of stuff that is done automatically for normal indexes has to be done by hand for page-by-page uploading.
- This so far appears to have happened only to pdfs, so hopefully it won't happen to djvus. The day we aren't able to load page images for any multi-page files, Wikisource is pretty much over.
- This appears to be spreading, and if it really isn't high-priority, then the foundation is telling us all to go to hell. — Alien 3
3 3 06:51, 5 October 2024 (UTC)
- @Sannita (WMF) Great to hear that the WMF is aware and working on this. I honestly have no idea how Phabricator works (and I almost never look at it anyways), and it seems to require a connected e-mail address, which I don't have, so if you could file a report, that would be really good. Thanks, Cremastra (talk) 19:40, 4 October 2024 (UTC)
- Given the answer in Commons:Village_pump/Technical/Archive/2024/07#Problems_with_PDF_Preview, I think we can trust it has already been reported but fixing it isn't a priority. Workaround would be to upload page-by-page in jpg format.
- It's gotten worse. At least one index that used to be fine (s:Index:Travels in Europe and Northern Africa. A woman's view (IA travelsineuropen00rose).pdf is now breaking, so no further pages can be proofread. Can this be listed "top" priority on phabricator? Cremastra (talk) 22:47, 4 October 2024 (UTC)
- By the way, the error I get when I try to view the image file alone is error 429: too many requests'. The details are Request from [my IP adress] via cp1111 cp1111, Varnish XID 890103130 —— Upstream caches: cp1111 int. Does this have something to do with w:Varnish (software) (mw:Manual:Varnish caching)? I'm now totally out of my depth technically, so I don't think I can do anything to help. Cremastra (talk) 22:52, 4 October 2024 (UTC)