Admin on Commons and Wikidata
User Details
- User Since
- Nov 5 2014, 5:13 PM (521 w, 1 d)
- Availability
- Available
- LDAP User
- Unknown
- MediaWiki User
- Jarekt [ Global Accounts ]
Sep 13 2024
I began testing and by try and error figured out some rules :
Sep 12 2024
I am sorry if it was already explained above, but I am trying to understand what is the new function doing. Is there a documentation for it somewhere?
Sep 9 2024
This edit fixed it, so now the message shows up as "This is a photo of a monument in Azerbaijan identified by the ID 4625"
Aug 22 2024
Looking at UploadWizard.config.php which according to Commons:Upload_Wizard/defaultConfig is the code used to configure Upload_Wizard on Commons, shows in line 503 that "custom" license is configured to be replaced with "subst:Custom license marker added by UW". That setting no longer makes sense as wikitext "{{subst:Custom license marker added by UW}}" evaluates to an empty string. However when "custom" is among "ownWork" licenses it is trying to add "{{self|subst:Custom license marker added by UW}}" which causes lua errors.
Aug 21 2024
I think the issue is with the Campaign:fa and Campaigns in general, which are configured with
` "licensing": {
"ownWork": { "licenses": [ "cc-by-sa-4.0", "cc-by-4.0", "cc-by-sa-3.0", "cc-by-sa-3.0-gfdl", "cc-by-3.0", "cc-zero", "pd-old-100", "pd-old", "pd-ineligible", "pd-textlogo", "custom" ] } },`
Aug 12 2024
Aug 9 2024
With implementation of T359761 / T366623 and replacement of {{dir}} and {{bcp47}} templates with brand new parser functions, we should loose some more templatelinks (124M +5M to be precise). I also replaced many calls to {{Autotranslate}} templates in template namespace with the Lua calls directly to c:Module:Autotranslate which might reduce it even further.
Working with @Ebrahim, we got most of the uses of c:Template:BCP47 replaced with #bcp47 parser function, at least in template namespace. Number of transclusions still listing just under 5M.
Working with @Ebrahim, we got most of the uses of c:Template:Dir replaced with #dir parser function, at least in template namespace. Database still shows 123,999,814 transclusions, so it will be interesting to see how long is it going to take for this number to drop.
Jul 24 2024
On Commons, the main use-case is that you are provided with a date in YYYY-MM-DD, YYYY-MM, YYYY and few other formats and a language code and need to display that date in that language. That is how it is used by c:Template:Information and other infoboxes. For last 11 years, c:Module:DateI18n (which is a rewrite of even older commons template) does that with preferred formats for each language stored at c:Data:DateI18n.tab. The code has to handle cases where format changes depending on a day (different format for 1st of each month, or sometimes 1st, 11th, 21st and 31st of each month), and some languages adding extra letters and punctuations to the date. The code uses English formatting as defaults (like YYYY for the year) and has to only store formats for languages that deviate from it.
Jul 8 2024
I just had the same issue:
Jul 5 2024
Jul 2 2024
Jun 30 2024
I just tried m:Main_Page switching from English to: Polish, Russian and German with no luck.
I run into the same issue today. Starting with English, I click language selector next to my username and select a different language, like Polish. The selector accepts the selection, page blinks and it is still in English mode.
Jun 28 2024
c:Module:Self currently uses the following 4 messages:
Jun 13 2024
I think I run into this issue today. I am working on converting C:Template:Sisterprojects to use translate extension. The original template had Chinese variants:
Jun 3 2024
May 17 2024
On Commons, the main use of Dir template is to return direction of the text in the language used by the user. A pseudo code would be {{dir | {{{lang | {{int:lang}} }}} }}. That way any template displaying stuff is using html tags indicating text direction of the language used by the user. Most of the time templates do not use {{{lang}} parameter, but for the testing purposes we can pass it to the template to see the template using other text direction. That means that in great majority of the cases on Commons input to {{dir}} is the output of {{int:lang}}, and the languages returned by {{int:lang}} are the ones we care about. Current template returns ltr for {{dir|Arab}} or for any other random string which is not recognized as language.
May 3 2024
Apr 24 2024
Rewrite of Module:Autotranslate discussed went live last week.
Apr 12 2024
The issue with my computer is that for other tools to work some internet security related stuff, update schedule, etc. are managed by my employer. I can change thinks but if it is against some policy, after a while it will be reverted. I could use some other computer to run AWB, or flip the FIPS flag, reboot and have few days of working AWB. It sounds like very few people are affected by this issue, but at the moment AWB is incompatible with some Windows settings, which might become more commonly used. If it can not be fixed without changes to API, maybe check for this flag at the startup and provide information about what is happening and what are workarounds. I have been plagued by this issue for a long time but only recently figured out what is causing it after spending good part of a week debugging similar issues with a different software.
This issue is making AWB almost unusable for me, but I did figured out what is causing the issue. Apparently AWB is using some non-compliant encryption algorithms and my computer throws an error each time I try to save an edit. One can disable checking for FIPS compliance by following steps of "Disabling FIPS-Complaint Encryption on Windows". But unfortunately in my case the flag always comes back and I need a reboot to reset it.
This issue is making AWB almost unusable for me, but I did figured out what is causing the issue. Apparently AWB is using some non-compliant encryption algorithms and my computer throws an error each time I try to save an edit. One can disable checking for FIPS compliance by following steps of "Disabling FIPS-Complaint Encryption on Windows". But unfortunately in my case the flag always comes back and I need a reboot to reset it.
Mar 14 2024
I have a question for MediaWiki developers.
Mar 10 2024
After some discussion we retired Template:License_template_tag which was used to track files without licenses and was redundant to Extension:CommonsMetadata which was introduced latter. That should eventually remove 100M template links.
Feb 12 2024
Also once Wikidata item is deleted it should be removed from SDC, the way deleted image is removed from Wikidata or wikipedia. I just run into File:Francesco Filippini - Barche sulla spiaggia (1892-93).jpg which still references long deleted Q108176371 item. The item was deleted as part of removal of all contributions by some no-longer liked user, but it creates hard to fix mess on Commons.
Feb 8 2024
Feb 1 2024
Jan 26 2024
I eliminated the use of Template:Description in language templates, like Template:En in favor of calling Module:Description directly. It actually makes much more readable wikicode as Module:Description uses named variables as opposed to numbered variables. That should (eventually) eliminate 66.6M templatelinks entries.
Jan 24 2024
Another way to reduce size of transclude table used in the past was to run a bot job of substituting template redirects. Does anybody have a good SQL query to see if we have any templates with often used redirects? I run many such bot jobs in the past but not in the last decade or so.
Jan 23 2024
In 2010 several hundred messages were moved from MediaWiki namespace to translatewiki, because of how hard it was for the translators to work with MediaWiki namespace. I also do not know how to "simply" move 54 translations from Template:PD-old-text , another 50+ from Template:PD-US-expired-text and probably bunch of other similar templates. The manual approach seems quite laborious and potentially error-prone.
- Similar to above but mark the page in MediaWiki namespace for translation. It can now be translated by any users (even without editinterface).
I have never run into any pages in MediaWiki namespace managed by Translate extension, are there any pages using this feature I can look at?
- If you want to make it translatable in translatewiki, you need to add a message to WikimediaMessage extension.
I do not know what that means . File a ticket at https://phabricator.wikimedia.org/tag/wikimediamessages/ or something. If anybody is familiar with this process please contact me.
@Spinster, Also I am not sure you are aware but {{Information}} template is fully compatible with SDC since 2018. What that means is that if you have standard SDC properties set up, than you can remove all the wikitext from {{Information}} template. See for example File:OpenRefine Commons editing - wikitext data extension.png file, where I removed all the wikitext from the template and it is pulled from SDC. That is the infobox used by 85M files. See Template:Information documentation (SDC was mentioned there but I just added examples).
Jan 21 2024
In lua code you use "frame" to pass arguments from wikitext to lua and regular function arguments to pass data between lua functions. If we want to call SDC_tracking from other lua codes we would add "function p._SDC_statement_exist(args)" function to the module to allow that; however here we are talking about calling {{#invoke:SDC_tracking|SDC_statement_exist|...}} from templates instead of {{SDC_statement_exist|...}}, and that can be done with the code as is. The only purpose of Template:SDC_statement_exist is to provide an page with clear interface documentation for people that often do not know much about Lua. However as this template if mostly meant to be used by other templates we can probably assume that those users are familiar with both.
Dec 26 2023
I can revisit the Module:License code and work on supporting more cases. If someone wants to help I could use a tester adding cases to Module:License/doc cataloging cases where current code gave adequate result and when it did not
Dec 17 2023
Oct 13 2023
Similar issue in 2023, see T348827
Sep 7 2023
Aug 8 2023
About Template:Dir used on 112M pages, likely dozen times on each page. That template is imbedded in almost every non-lua-based template that shows some text. Lua based templates (like Template:Information and other infoboxes) use mw.language:getDir function. We do have 181k templates on Commons and good fraction of them show something, so it would be a big job to replace that template. The easiest solution would be to add it to "software or parser functions" which would use the current format, the way {{!}} template was replaced by a parser function. Whatever way it is implemented it would be good to keep it in synch with Lua function. Shall we create a ticket for that?
About links from commons to commons: I think a lot of them come from c:Category:Language_link_templates (aka /lang templates) which are used by some old templates. For example Template:PD-US-no_notice/lang is transcluded by Template:PD-US-no_notice which is then transcluded to all the files using that template. /Lang templates are automatically generated or updated by template:LLE which uses external links to subpages instead of internal links, in order to help with some database table exploding in 2009. See discussion. A lot of transclusions of /lang templates in license templates was removed in 2013, because they were causing other issues, but not all of them.
May 5 2023
Jun 3 2022
was produced by
Was produced by the following code:
May 26 2022
I am still trying to wrap my head around how to use lexme data, but I also have use case similar to Marsupium's use case. I would like to replace tables like c:Data:I18n/MonthCases.tab where we store declensions of month names in different languages, so that we can have a function like c:Module:DateI18n's MonthCase(month, case, lang) (like 146) where, MonthCase(1, "ins", "pl") will give you L1872-F5, Polish instrumental case, singular of January. I would love to be able to point to Q108 and ask for any language, any grammatical case.
May 17 2022
May 11 2022
May 5 2022
Mar 14 2022
Jan 26 2022
Jan 11 2022
Almost two years latter, it is still an issue. See my talk page when small maintenance tasks are swamping people's watchlists.
Dec 17 2021
Dec 10 2021
Nov 2 2021
Nov 1 2021
Aug 21 2021
May 27 2021
May 23 2021
May 14 2021
Apr 19 2021
There is a lot to do here, like content/ title of:
- main Commons:OTRS page with several dozen translations
- https://commons.wikimedia.org/wiki/Commons:OTRS/Noticeboard
- Wikimedia_OTRS_release_generator
- MediaWiki:Relgen.js
- MediaWiki:Gadget-PermissionOTRS.js
- dozen templates
- bunch of categories
- Wikidata properties used by SDC
- 500+ pages in MediaWiki namespace
Mar 15 2021
This topic is discussed at Commons_talk:Structured_data#Proposal%3A_Move_captions_from_file_information_to_structured_data_tab
Mar 12 2021
This issue was just reported at https://commons.wikimedia.org/wiki/Commons:Village_pump/Technical#appearently_the_featured_pictures_are_protected_but_appearently_still_have_the_%22edit%22_tab. 13 years after 1st report.
Feb 28 2021
@Tacsipacsi Yes your Module:Interwiki relying on connected Wikidata item, is what I had in mind. That is how it is done on Commons with associated template Template:Interwiki_from_Wikidata added to Template:Wikidata_Infobox (with 3M category transclusions) and many other templates.
Feb 27 2021
I can look into this. So as I understand it if a page like wikisource:Category:Jv_Basa_Jawa_(Javanese) is connected to d:Q8564118 which also have sitelinks to enwikisource and idwikisource pages, than those 2 should show up as interwiki links on wikisource:Category:Jv_Basa_Jawa_(Javanese).
Feb 22 2021
As a guy maintaining most of the high use lua codes on multilanguage Commons wiki, I spend a lot of time dealing with translations and i18n in general. On Commons we use two already discussed systems, each with it's own advantages and disadvantages:
Feb 11 2021
Rewrite of {{Wikidata Infobox}} in Lua is a big task which is very needed. Current implementation of is functionally great, but it long-ago outgrew wiki-templates "language" it is written in. If someone can produce concise, clean, modular, well documented, and well tested (through unit-tests) Lua code which would be easy to pick up and maintain by others, than this task can have very good impact on Commons category namespace.
I can help with this task, but I agree that display of structured data and conversion from wikitext to structured data are two separate tasks. I also share @Multichill concern that this is such a broad scope that it is hard to pin down what it is, or tell when its goal is achieved. Some possible tasks:
Dec 9 2020
Nov 20 2020
I see the following use cases:
- A source states that the death of .. occurred at 9:25 on some day. I would like to save that information and I find the current approach of using refine date (P4241) = 09:25 (Q55810989) qualifier totally crazy
- In case of images on Commons, like this one, upload wizard saved the date "9 March 2019, 17:20:46" and I would like to store it in SDC. I need up to a second precision if I want to order write SPARQL query of photographs from that event and sort them in a chronological order. In such a case the timezone is irrelevant.
Nov 4 2020
@matthiasmullie, in case it helps: most of out SDC tracking templates are based on c:Module:SDC_tracking and templates calling it. You probably recreated something similar for testing, but in case it is easier to test with already existing code, here it is.
Nov 1 2020
I tried it again did SDC edits using ACDC tool which should have emptied all 183 files from https://commons.wikimedia.org/wiki/Category:Creative_Commons_Attribution-Share_Alike_1.0_missing_SDC_copyright_license. An hour latter 136 files remain. See https://commons.wikimedia.org/w/index.php?title=File%3AAdil_Ray.JPG&type=revision&diff=508801789&oldid=443468314 for details.