Hello world, from Buenos Aires, Argentina! I'm a philosopher by training and a web developer by trade, specialized in MediaWiki, the software of Wikipedia. I contribute to the Wikimedia movement since 2008, mainly to Wikipedia, Wikiversity, MediaWiki and Commons. At first I did mostly content, but nowadays I'm more into software (wiki templates, Lua modules, JavaScript tools and MediaWiki extensions). I currently work as the lead developer at Appropedia, the sustainability wiki.
User Details
- User Since
- Nov 25 2014, 3:53 PM (520 w, 4 d)
- Availability
- Available
- IRC Nick
- Sophivorus
- LDAP User
- Sophivorus
- MediaWiki User
- Sophivorus [ Global Accounts ]
Oct 4 2024
@Tacsipacsi Regarding the sandboxes of templates with template gadgets, when I work in such sandboxes, I generally don't want to load the same gadget as the main template, but a modified version of the gadget, which I usually store in a subpage of my userpage and load from my common.js
Sure, other approaches may be (marginally) better, but realistically speaking, will take years to happen. This approach can be implemented now and wouldn't block or hinder the development of better alternatives. If anything, it would give it some extra push by helping the development of actual tools to be loaded by said alternatives.
Hi! I just submitted 1077955 to add support for templates in the gadget definitions. After the merge of 1005092, me and a few others developed several JavaScript-enhanced templates (see template gadgets and global gadgets). However, although loading gadgets via categories is technically enough, it leads to the creation of many obscure and otherwise useless categories (see every subcategory here and here). This is unnecessary and cumbersome, it would be better if we could load gadgets based on the presence of specific templates, which is generally the intended functionality anyway.
Hi! I very much like the idea, and wouldn't mind to receive an email warning me if one of my tool is down.
Sep 5 2024
Aug 30 2024
Looks good to me too!
Aug 26 2024
Aug 20 2024
@matmarex Hi! After a very long delay, I finally got around and did this. Hopefully you can code-review it?
Jul 5 2024
f3a17b7cb98b3d8 mostly fixes this because pages with more than 500 categories are generally rare. For wikis that might still face this issues, a possible workaround is documented at https://www.mediawiki.org/wiki/Extension:MsCatSelect#API_high_limits
May 9 2024
Apr 18 2024
Done, thanks for the heads up!
Apr 11 2024
@Krinkle Hi! Honestly, I don't remember what reasoning or tests led me to write that comment. At the time I was trying to optimize the performance of appropedia.org and was deep into the docs about async, defer, etc. but now I can't recall the nuances, about which my beliefs might very well have been mistaken. In any case, I was able to improve the performance significantly without using defer, so that's that. Sorry if I can't help, but thanks for asking!
Apr 10 2024
Hi, thanks for the report! I just merged a patch that should fix it, please download the latest master (13.9). Now, as you suggested, the first item of the sidebar will be used as the navigation menu, regardless of the name. Furthermore, if no item is found, the menu will be hidden completely (for wikis that want an extremely simple interface). Let me know of any more issues!
Apr 1 2024
Seems broken again, since March 28. :-(
Mar 27 2024
Mar 26 2024
I, on the other hand, would like to thank Krinkle and everyone else who made this humble patch happen, because even though it may not be perfect, it opens the door to so much useful magic. I started documenting some of it at https://www.mediawiki.org/wiki/Template_gadgets, and look forward to see where all of this will lead us. Cheers!
Feb 28 2024
I'm afraid the hashtag tool seems to not be updating again (since Feb 20). :-(
Feb 25 2024
Strangely enough, TalkBelow doesn't even have a stylesheet.
Feb 13 2024
Jan 30 2024
@Samwalton9-WMF Ah, I see you've unassigned yourself from this task. Does that mean we should find someone else to fix this?
Hi! Thanks for fixing it, but it seems like its broken again, since January 28. Cheers!
Jan 18 2024
Thanks for looking into this! However, I'm currently getting a 502 Bad Gateway error.
Jan 17 2024
This would probably require adding LESS support to TemplateStyles, but I'm not 100% sure.
Jan 11 2024
Jan 10 2024
Hmm, the problem may be related to New Relic, which we're using. I'll mark this issue as invalid until I can update New Relic to the latest version or disable it to confirm that it is the cause. If the issue persist, I may re-open.
Jan 7 2024
Jan 5 2024
@Samwalton9 Ping?
Dec 26 2023
Dec 21 2023
Hi! The hashtags tool seems to have stopped recording changes again, since December 11. See for example https://hashtags.wmcloud.org/?query=proveit
Dec 13 2023
@egardner Thanks! That was VERY useful and I'm already well and away into creating my first tool with Codex.
Dec 1 2023
Nov 29 2023
Tagged the wrong task, sorry.
Nov 22 2023
Nov 15 2023
I think the issue is that a few lines before (line 817) there's the following:
Nov 11 2023
Oct 24 2023
Sure, makes sense, thanks for your time and answer!
Oct 18 2023
Oct 3 2023
Thanks! I also updated this and now the stats on the page seem up-to-date.
Sep 21 2023
How about a config option for third-party wikis that don't have extremely long articles and may therefore benefit from defer over async?
Sep 19 2023
Yes! This solved the issue that I reported here and had me baffled, thanks! The code you shared didn't quite work for me (perhaps because I'm using REL1_39) but after understanding what's happening and doing a few tweaks, I made it work. Thanks again!!!
Sep 15 2023
I think the problem might have been that the repo didn't have the permissions set up. I just fixed that, see https://gerrit.wikimedia.org/r/admin/repos/mediawiki/gadgets/MiniEdit,access
Sep 14 2023
Apparently it's not so simple, gallery thumbnails and plain images are processed before image thumbnails, so in order to lazy-load everything but the first image thumbnail, the code would be:
$wgThumbCount = 0; $wgHooks['ThumbnailBeforeProduceHTML'][] = function ( ThumbnailImage $thumbnail, array &$attribs, array &$linkAttribs ) { global $wgThumbCount; $class = $attribs['class'] ?? ''; if ( strpos( $class, 'thumbimage' ) !== false ) { $wgThumbCount++; if ( $wgThumbCount === 1 ) { return; } } $attribs['loading'] = 'lazy'; };
Again, this idea can be easily customized.
For what's worth, here's a bit of code anyone can add to their LocalSettings.php to lazy-load just the FIRST image of every page:
$wgThumbCount = 0; $wgHooks['ThumbnailBeforeProduceHTML'][] = function ( ThumbnailImage $thumbnail, array &$attribs, array &$linkAttribs ) { global $wgThumbCount; if ( $wgThumbCount > 0 ) { $attribs['loading'] = 'lazy'; } $wgThumbCount++; };
It can be trivially modified to lazy-load the first TWO images, or whatever. Hope it helps someone!
Sep 4 2023
Hi, good news! I was able to add valid hashtags to links by simply adding a space before the # (so as to satisfy the Twitter's specification of a hashtag) like so:
Sep 3 2023
Aug 21 2023
Hi, thanks for identifying the cause and the temporary fix! Just to keep you updated, now it seems the tool has stopped recording changes since August 18, cheers!
Aug 15 2023
Aug 10 2023
@Samwalton9 Hi! Ping because it seems you fixed it last time T321635? Cheers!
Aug 9 2023
I second this request. Three of my tools (Proveit, Synchronizer and WikiEdit) would benefit from it.
Jul 13 2023
Fixed, see https://es.wikipedia.org/w/index.php?title=MediaWiki:Common.js&diff=152440807 and equivalent edits everywhere else
Jul 11 2023
For anyone involved in maintaining cross-wiki modules, there's now the Synchronizer tool for syncing modules across wikis, and the Multilingual Templates and Modules documentation page was updated and re-written to account for this.
Jun 5 2023
May 30 2023
I see, thanks!
Thanks! I just gave repository access to l10n-bot and l10n-bot-watcher and requested translation checks at T337749
May 19 2023
May 17 2023
Hi! Thanks for the report, I was able to reproduce the issue and fixed it, see https://gerrit.wikimedia.org/r/c/mediawiki/extensions/UserPageViewTracker/+/920713
Apr 29 2023
Apr 24 2023
Thank you! I've fixed the qqq keys and added a few more messages. Will add many more in the coming days, cheers!
Apr 19 2023
BTW, I see you set the namespace to NS_WIKIMEDIA. That may be an internal issue of yours, but just to clarify, this extension is unrelated to Wikimedia. Also, the extension currently contains very few messages, but in a day or two I'll expand to a couple hundreds. Cheers!
Invitation sent!
Apr 13 2023
Mar 29 2023
Mar 14 2023
Mar 11 2023
Same happening to me. Banners shown on every single page load, causing layout shifts, even on projects where I disabled all banners via preferences. I just ended up adding