Commons:Village pump/Technical
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; the latest archive is Commons:Village pump/Technical/Archive/2022/11.
- 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. |
d:Q405426[edit]
If you go to Botevgrad, you see language links to complete other articles other than the city in Bulgaria, e.g. de:Uhrturm von Botewgrad and en:Arena Botevgrad. Please, can s.o. fix it, it don't find the solution. Thx and have a nice day! --Mateus2019 (talk) 13:25, 3 November 2022 (UTC)
- @Mateus2019: that happens because it uses {{Wikidata}}, which uses {{Interwiki from Wikidata}}, which makes those links.--RZuo (talk) 17:00, 16 November 2022 (UTC)
- @Mateus2019: instead of {{Wikidata}}, try using {{WikidataItem}}. It also links to Wikidata, but without summoning links to other Wikiprojects. --HyperGaruda (talk) 19:34, 6 December 2022 (UTC)
Changing the gps border of Data:Iceland/Reykjavík.map[edit]
Hi. I am able to get a more accurate gps dataset of the municipalities borders in Iceland from LMÍ. I'm just wondering what string to request from them so that I can import it into Commons. Here is an example of a map I want to update Data:Iceland/Reykjavík.map Steinninn ♨ 01:34, 19 November 2022 (UTC)
- @Steinninn: If you click on the edit tab, you’ll see the JSON code. The easiest for you is if you ask for exactly that format, but if they provide just the coordinates in JSON, that can also work, like: (without the
[ // Island [[[-21.83275, 64.15974], [-21.84211, 64.15677], [-21.85237, 64.1614], ...]], // Mainland part [[[-21.61588, 64.25724], [-21.60605, 64.18599], [-21.65519, 64.08156], ...]] ]
// comments
, those are just for you), and you simply replace that part. —Tacsipacsi (talk) 19:51, 19 November 2022 (UTC)
Thank you --Steinninn ♨ 16:24, 21 November 2022 (UTC)
Strange import by flickr2commons[edit]
File:Felicity Jones (29582838166) (2).jpg (395 KB) and File:Felicity Jones (29582838166).jpg (267 KB) were both imported from https://www.flickr.com/photos/gdcgraphics/29582838166/ . original size on flickr is 395kb. was this a bug of flickr2commons? has it been fixed? RZuo (talk) 09:10, 21 November 2022 (UTC)
Tech News: 2022-47[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
- The display of non-free media in the search bar and for article thumbnails in Special:Search has been deactivated. Further details are in T320661.
Changes later this week
- There is no new MediaWiki version this week.
- Some wikis will be in read-only for a few minutes because of a switch of their main database. It will be performed on 22 November at 07:00 UTC (targeted wikis) and on 24 November at 07:00 UTC (targeted wikis).
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 23:19, 21 November 2022 (UTC)
Tech News: 2022-48[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
- A new preference, “Enable limited width mode”, has been added to the Vector 2022 skin. The preference is also available as a toggle on every page if your monitor is 1600 pixels or wider. It allows for increasing the width of the page for logged-out and logged-in users. [1]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 29 November. It will be on non-Wikipedia wikis and some Wikipedias from 30 November. It will be on all wikis from 1 December (calendar).
- Some wikis will be in read-only for a few minutes because of a switch of their main database. It will be performed on 29 November at 07:00 UTC (targeted wikis) and on 1 December at 07:00 UTC (targeted wikis).
- Mathematical formulas shown in SVG image format will no longer have PNG fall-backs for browsers that don't support them. This is part of work to modernise the generation system. Showing only PNG versions was the default option until in February 2018. [2][3][4]
- On some wikis that use flagged revisions, a new checkbox will be added to Special:Contributions that enables you to see only the pending changes by a user. [5]
Future changes
- How media is structured in the parser's HTML output will change early next week at group1 wikis (but not Wikimedia Commons or Meta-Wiki). This change improves the accessibility of content, and makes it easier to write related CSS. You may need to update your site-CSS, or userscripts and gadgets. There are details on what code to check, how to update the code, and where to report any related problems. [6]
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 20:00, 28 November 2022 (UTC)
I cannot add a description[edit]
Breaking my mind over it... For File:1665 Girl with a Pearl Earring.jpg trying to add a Russian part to the Description section, exactly like that: {{ru|1=«[[w:ru:Девушка с жемчужной серёжкой (картина)|Девушка с жемчужной серёжкой]]», [[w:ru:Вермеер, Ян|Ян Вермеер]], около 1665 года.}}
- already reverted, see page history. But after that all descriptions (including mine) do disappear - except the English one. What possibly am I doing wrong? NeoLexx (talk) 11:03, 1 December 2022 (UTC)
- @Neolexx: I see all four languages. You may have run into m:Meta:Language select, which kicks in only after a certain number of languages have been added (I remembered three, but it may be four). —Tacsipacsi (talk) 16:43, 1 December 2022 (UTC)
- Holy Him of heaven!.. Thank you, Tacsipacsi, I was already getting crazy trying to find an error in char-by-char input checks. That was it. For such hidden functionality one should impose the most severe punishments on developers. Like no doughnuts to the whole team and the whole day... --NeoLexx (talk) 20:31, 1 December 2022 (UTC)
- P.S. I went to my Preferences > Gadgets and unchecked
Language select
(it is on by default). After that that damn thing disappeared right away so I finally made the edit (diff) being able to actually see it. --NeoLexx (talk) 20:46, 1 December 2022 (UTC)
Invisible file[edit]
Hello, I have uploaded this file: https://commons.wikimedia.org/wiki/File:Benesov_Machova_400_nemocnice_a.jpg . It appeared in my list of contributions, Wikimedia tracker for a project recorded it, but the file page says "The file does not exist, but you can upload it". I have tried to reupload it, but the uploader doesn't let me (first saying "this appears to be an exact duplicate of a file already on Commons", but letting me proceed, but then saying "this appears to be an empty file"). I don't think there's anything wrong with the file, just a photo like any other; more likely it got corrupted on Commons. Can it be somehow 'revived'? Or do I have to upload it under a different name? Thanks. --JiriMatejicek (talk) 19:17, 4 December 2022 (UTC)
- Purge is needed. @JiriMatejicek: Použijte purge (vyčištění cache). Lze zapnout v udělátkách přímý odkaz, nebo klikněte na odkaz zde. — Draceane talkcontrib. 19:44, 4 December 2022 (UTC)
Filter false positive[edit]
Tried changing a category from "arrows" to "traffic signals with arrows" and it said I was disallowed. 137a (talk) 13:23, 5 December 2022 (UTC)
Join the Coolest Tool Award 2022: Friday, Dec 16th, 17:00 UTC[edit]
The fourth edition of the Wikimedia Coolest Tool Award will happen online on Friday 16 December 2022 at 17:00 UTC!
This award is highlighting software tools that have been nominated by contributors to the Wikimedia projects. The ceremony will be a nice moment to show appreciation to our tool developers and maybe discover new tools!
Read more about the livestream and the discussion channels.
Thanks for joining! -Komla
MediaWiki message delivery 18:53, 5 December 2022 (UTC)
Increasing number of my deleted edits[edit]
Hi
In 2022 I almost none of my edits haven't been reverted or deleted. Yesterday I 385 deleted edits and today I have 398 deleted edits. Why it is happening? Why number of deleted items increase without any deletion or reverting?
Right now (in less that 6 hours) I have 403 deleted edits!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! How come????????????????????????????????????????????????????????????
Cheers Shkuru Afshar (talk) 23:45, 5 December 2022 (UTC)
- @Shkuru Afshar: every time you nominate a file for deletion, you (automatically) edit the file to include a deletion template. Once somebody actually deletes that file, the edit where you added the deletion template is also deleted. Nothing to worry about. --HyperGaruda (talk) 19:15, 6 December 2022 (UTC)
- Thank you for informing me. But That is not fair. Shkuru Afshar (talk) 20:33, 6 December 2022 (UTC)
Tech News: 2022-49[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
- The Wikisources use a tool called ProofreadPage. ProofreadPage uses OpenSeadragon which is an open source tool. The OpenSeadragon JavaScript API has been significantly re-written to support dynamically loading images. The functionality provided by the older version of the API should still work but it is no longer supported. User scripts and gadgets should migrate over to the newer version of the API. The functionality provided by the newer version of the API is documented on MediaWiki. [7][8]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 6 December. It will be on non-Wikipedia wikis and some Wikipedias from 7 December. It will be on all wikis from 8 December (calendar).
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 00:39, 6 December 2022 (UTC)
How to search under 6807 photos[edit]
Hi, the Category:Satellite pictures of Chile has 6807 photos but no index or help to search some place.
- Is it posible to add to the category page some bar "1-50 51-100 101-150 ..." to help to (re)find some image?
- Better, is it posible to read all the "object location" (e.g.: 32° 06′ S, 73° 00′ W ) of every image in order to create an imagemap with an zone image and the respective fotos?
- is there other alternative?
Juan Villalobos (talk) 18:32, 7 December 2022 (UTC)
- Re option 2: if you add {{ Object location | -32.1 | -73.0 }} to the category (you don't have to save it, just check the results in preview mode), a link to Openstreetmaps will lead you to a map with all geocoded images in the category. A word of caution: thousands of images may cause lag.
- Re option 3: you could try a regular search while including the phrase
incategory:"Satellite pictures of Chile"
. --HyperGaruda (talk) 18:54, 7 December 2022 (UTC)
Google search gadget error on mobile devece[edit]
During the last weeks every time i try to use Google Lens search button on the top of a file page (MediaWiki:Gadget-GoogleImagesTineye.js) on a Android smartphone browser (on computer version) I get 404 error. It's a significant problem because on a computer i may use drag and drop method alternatively whereas on mobile that gadget is an only way to search copyvios. ~Cybularny Speak? 21:56, 7 December 2022 (UTC)
Page asks for permission to leave the page (bug)[edit]
Sometimes pages ask for permission to close it or refresh it, even when the user did not edit anything. see example and try to navigate to another page or click the "File" tab to reload the page. example If someone understands what is happening here and knows a fix, please let me know. I would want to fix it on the pages whenever I see this behavior. But if it is a template error, the template should be checked and repaired. Tx Peli (talk) 04:11, 8 December 2022 (UTC)
- @Pelikana Keeps happening to me too (Firefox), I'm wondering if that might be connected to COM:SDC somehow ... El Grafo (talk) 08:37, 8 December 2022 (UTC)
Category error[edit]
Hi everyone, I recently noticed an error when adding categories: when I add a category that exists under a different name and thus has to be redirected, then another category that I added will be removed when saving the edits. I have noticed that a few times now, most recently with File:POR Porto Rua de Cedofeita 03.jpg. The first category I added was Category:Rua de Cedofeita, the second one was Category:Church doors in Portugal. The second one was automatically changed to Category:Church portals in Portugal and during that change, the first category disappeared, so that I had to add it again. Sometimes I notice this but sometimes when a larger number of categories is added, this can go unnoticed which is really annoying (and also kinda "harmful" to the project). It would be highly appreciated if someone could have a look into this. Best wishes from Germany. wuppertaler Post um 15:30, 8 December 2022 (UTC)
- And again: Category:Arched doors was automatically changed to Category:Arch doors, and during this process Category:Depósito de Materiais da Companhia Cerâmica das Devesas disappeared.. I add categories via Help:Gadget-HotCat, if that helps. Kind regards. wuppertaler Post um 15:40, 8 December 2022 (UTC)
Citation "widget"[edit]
Is there a way to have the citation widget in the Commons editor as on Wikipedia? To be able to generate templates such as {{Cite book}}, {{Cite web}}, or {{Cite journal}} by providing an ISBN, a URL, or a DOI (for instance). (typical use case: add the sources) A455bcd9 (talk) 16:57, 10 December 2022 (UTC)
- Not as such as Commons doesn't use visual editor. However, en:Wikipedia:ProveIt and en:Wikipedia:RefToolbar should be working. Most likely proveit is easier to install if somebody with suitable rights to edit gatgets wants to try. -- Zache (talk) 00:46, 11 December 2022 (UTC)
- Thanks @Zache. You don't need the visual editor to use this tool on Wikipedia: it works well in the source editor. en:Wikipedia:ProveIt and en:Wikipedia:RefToolbar look nice but they're nowhere as good as the default tool on Wikipedia that generates the whole template just based on a URL (or any other unique identifier). A455bcd9 (talk) 07:54, 11 December 2022 (UTC)
- Both of them can generate the template from the url. Also there is no afaik non-visual editor version of visual editors citoid integration which was mentioned in the diff article which you linked. Enwiki's wikitext editor citation tool enabled by default is the RefToolbar. -- Zache (talk) 07:57, 11 December 2022 (UTC)
- Hm. That's not what I saw in the video. Anyway what I'm looking for is citoid, which indeed requires the VisualEditor. I activated the VisualEditor in my Beta settings on Commons, and I do see it. But I don't see citoid: why? A455bcd9 (talk) 08:03, 11 December 2022 (UTC)
Help:Gadget-ProveIt works here and supports citoid indeed.Thanks @Zache! A455bcd9 (talk) 08:05, 11 December 2022 (UTC) Actually, it doesn't seem to be enabled here, I don't understand why. A455bcd9 (talk) 08:21, 11 December 2022 (UTC)- Hmm, i didn't have new wikitext mode enabled from enwiki's beta AND in that there is indeed visual editor's citation tool enabled. So that explains it. I think that enabling it would require least w:en:MediaWiki:Citoid-template-type-map.json and citoids mappings to themplatedata w:en:Template:Cite web/doc (see source code of page and there templatedata and citoid parameter inside json definition). Most likely third thing would be phabricator request for configuration change to enable visualeditor cite tool in commons. -- Zache (talk) 08:27, 11 December 2022 (UTC)
- @Zache, as suggested here I've just started a discussion to enable one of these gadgets, see: Commons:Village_pump/Proposals#Enable_ProveIt_or_Citoid_on_Commons. A455bcd9 (talk) 12:25, 13 December 2022 (UTC)
- Hmm, i didn't have new wikitext mode enabled from enwiki's beta AND in that there is indeed visual editor's citation tool enabled. So that explains it. I think that enabling it would require least w:en:MediaWiki:Citoid-template-type-map.json and citoids mappings to themplatedata w:en:Template:Cite web/doc (see source code of page and there templatedata and citoid parameter inside json definition). Most likely third thing would be phabricator request for configuration change to enable visualeditor cite tool in commons. -- Zache (talk) 08:27, 11 December 2022 (UTC)
- Hm. That's not what I saw in the video. Anyway what I'm looking for is citoid, which indeed requires the VisualEditor. I activated the VisualEditor in my Beta settings on Commons, and I do see it. But I don't see citoid: why? A455bcd9 (talk) 08:03, 11 December 2022 (UTC)
- Both of them can generate the template from the url. Also there is no afaik non-visual editor version of visual editors citoid integration which was mentioned in the diff article which you linked. Enwiki's wikitext editor citation tool enabled by default is the RefToolbar. -- Zache (talk) 07:57, 11 December 2022 (UTC)
- Thanks @Zache. You don't need the visual editor to use this tool on Wikipedia: it works well in the source editor. en:Wikipedia:ProveIt and en:Wikipedia:RefToolbar look nice but they're nowhere as good as the default tool on Wikipedia that generates the whole template just based on a URL (or any other unique identifier). A455bcd9 (talk) 07:54, 11 December 2022 (UTC)
Help with Template:Year at airport[edit]
Template:Year at airport automatically categorizes into "Category:YYYY at airports by location" (YYYY=year). It should use "Category:YYYY at airports by country" if existing. If this category does not exist, use "Category:YYYY at airports by location" instead (as it is now). I am not too much into template programming, so can anyone please do this for me? --2001:4652:FBAF:0:B4CB:3ECC:59F6:6FA1 20:10, 12 December 2022 (UTC)
Tech News: 2022-50[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
- An A/B test has begun at 15 Wikipedias for DiscussionTools on mobile. Half of the editors on the mobile web site will have access to the Reply tool and other features. [9]
- The character
=
cannot be used in new usernames, to make usernames work better with templates. Existing usernames are not affected. [10]
Changes later this week
- The new version of MediaWiki will be on test wikis and MediaWiki.org from 13 December. It will be on non-Wikipedia wikis and some Wikipedias from 14 December. It will be on all wikis from 15 December (calendar).
- The HTML markup used by DiscussionTools to show discussion metadata below section headings will be inserted after these headings, not inside of them. This change improves the accessibility of discussion pages for screen reader software. [11]
Events
- The fourth edition of the Coolest Tool Award will happen online on Friday 16 December 2022 at 17:00 UTC! The event will be live-streamed on YouTube in the MediaWiki channel and added to Commons afterwards.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 23:32, 12 December 2022 (UTC)
CSRF token rejection[edit]
I got locked out of Commons for a few minutes just now; it kept rejecting the CSRF token. Clearing the browser history did not help. But then it suddenly started working again. Did anyone else experience this? Brianjd (talk) 12:26, 13 December 2022 (UTC)
- I've just had the same issue: now everything is working. A455bcd9 (talk) 12:27, 13 December 2022 (UTC)
- There was an incident: phab:T325056. —Tacsipacsi (talk) 08:54, 14 December 2022 (UTC)
Local-multiwrite error when trying to delete file[edit]
I think I encountered this a long time ago, but I forget the solution. I tried to delete the following image after closing the DR (File:Goodenough Sakhile Dlamini.jpg) but it keeps giving me a local-multiwrite error whenever I try to delete it. IronGargoyle (talk) 01:16, 16 December 2022 (UTC)
- @IronGargoyle Unfortunately, there is no real solution, other than the instructions in Category:Deletion error. AntiCompositeNumber (talk) 02:05, 16 December 2022 (UTC)
Tech News: 2022-51[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
- Because of the holidays the next issue of Tech News will be sent out on 9 January 2023.
Recent changes
- On a user's contributions page, you can filter it for edits with a tag like 'reverted'. Now, you can also filter for all edits that are not tagged like that. This was part of a Community Wishlist 2022 request. [12]
- A new function has been used for gadget developers to add content underneath the title on article pages. This is considered a stable API that should work across all skins. Documentation is available. [13]
- One of our test wikis is now being served from a new infrastructure powered by Kubernetes (read more). More Wikis will switch to this new infrastructure in early 2023. Please test and let us know of any issues. [14]
Problems
- Last week, all wikis had no edit access for 9 minutes. This was caused by a database problem. [15]
Changes later this week
- There is no new MediaWiki version this week or next week.
- The word "Reply" is very short in some languages, such as Arabic ("ردّ"). This makes the Discussion tools button on talk pages difficult to use. An arrow icon will be added to those languages. This will only be visible to editors who have the Beta Feature turned on. [16] [17]
Future changes
- Edits can be automatically "tagged" by the system software or the Abuse filter management system. Those tags link to a help page about the tags. Soon they will also link to Recent Changes to let you see other edits tagged this way. This was a Community Wishlist 2022 request. [18]
- The Trust & Safety tools team have shared new plans for building the Private Incident Reporting System. The system will make it easier for editors to ask for help if they are harassed or abused.
- Realtime Preview for Wikitext is coming out of beta as an enabled feature for every user of the 2010 Wikitext editor in the week of January 9, 2023. It will be available to use via the toolbar in the 2010 Wikitext editor. The feature was the 4th most popular wish of the Community Wishlist Survey 2021.
Events
- You can now register for the Wikimedia Hackathon 2023, taking place on May 19–21 in Athens, Greece. You can also apply for a scholarship until January 14th.
Tech news prepared by Tech News writers and posted by bot • Contribute • Translate • Get help • Give feedback • Subscribe or unsubscribe.
MediaWiki message delivery 23:57, 19 December 2022 (UTC)
Editing watchlist - server timeout error[edit]
Hi, I am trying to edit and clear my watchlist on Commons (it has over 19.000 pages, uploads from content donations), but when I hit the 'Edit your watchlist' button I get an error message ' Request ID: 69829cb9-d045-44d9-b372-8ca953b4fb47 Allowed memory size of 698351616 bytes exhausted (tried to allocate 65060168 bytes)'. I guess it is because there are to many files on there? How can I fix this (if I cannot edit my watchlist, I can also not remove the files..) Thanks for helping me out or pointing me in the right direction! MichellevL (WMNL) (talk) 15:21, 20 December 2022 (UTC)