Page MenuHomePhabricator

Sophivorus (Felipe)
User

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Tuesday

  • Clear sailing ahead.

User Details

User Since
Nov 25 2014, 3:53 PM (470 w, 4 d)
Availability
Available
IRC Nick
Sophivorus
LDAP User
Sophivorus
MediaWiki User
Sophivorus [ Global Accounts ]

Recent Activity

Fri, Dec 1

Sophivorus added a comment to T344680: Clarify what the successor to OOUI is.

As far as the equivalent for the code sample you posted, as I mentioned there is still more we need to do before the process is streamlined enough to recommend generally, but you can use Codex components now by doing something like the following:

mw.loader.using('@wikimedia/codex').then(function( require ){
    var Vue = require( 'vue' );
    var Codex = require( '@wikimedia/codex' );
    
    Vue.createApp( {
        data: function () {
            return {
                count: 0;
            }
        },
        template: "<cdx-button @click='onClick'>click me</cdx-button><p>You've clicked {{ count }} times.</p>",
        methods: {
            onClick: function () {
                count++;
            }
        }
    } )
    .component( 'cdx-button', Codex.CdxButton )  // register the component
    .mount( '#my-app' );  // assumes that you have an element with an ID of "my-app" somewhere on the page
});
Fri, Dec 1, 12:32 PM · Design-Systems-Team, Documentation, OOUI
Sophivorus committed rMGPI19657ccb8b66: Add config option to warn users about cosmetic changes (authored by Sophivorus).
Add config option to warn users about cosmetic changes
Fri, Dec 1, 11:35 AM

Wed, Nov 29

Sophivorus added a comment to T351312: Implicit conversion to int in #replace parser function.

Tagged the wrong task, sorry.

Wed, Nov 29, 1:47 PM · Patch-For-Review, MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), PHP 8.2 support, PHP 8.1 support, ParserFunctions
Sophivorus created T352288: Passing null to parameter #3 of str_replace is deprecated in Quiz extension.
Wed, Nov 29, 1:45 PM · Patch-For-Review, MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), PHP 8.1 support, PHP 8.2 support, MediaWiki-extensions-Quiz

Mon, Nov 27

Sophivorus committed rESPU62fd35fc192f: Fixes to new version (authored by Sophivorus).
Fixes to new version
Mon, Nov 27, 3:36 PM
Sophivorus committed rESPUc990edc7767d: Rewrite to use interal methods rather than fake an API call (authored by Sophivorus).
Rewrite to use interal methods rather than fake an API call
Mon, Nov 27, 2:41 PM

Wed, Nov 22

Sophivorus added a comment to T52881: VisualEditor: Link input widget should suggest section links.

Change 976691 had a related patch set uploaded (by Sophivorus; author: Sophivorus):

[mediawiki/extensions/ParserFunctions@REL1_39] Backport fix of implicit conversion to int

https://gerrit.wikimedia.org/r/976691

Wed, Nov 22, 12:18 PM · Patch-For-Review, VisualEditor-MediaWiki-Links, VisualEditor, VisualEditor-EditingTools, Browser-Support-Google-Chrome

Thu, Nov 16

Sophivorus committed rEWVI0dc79bcca96f: Fix PHP 8.1 error (authored by Sophivorus).
Fix PHP 8.1 error
Thu, Nov 16, 2:55 PM

Wed, Nov 15

Sophivorus added a comment to T351312: Implicit conversion to int in #replace parser function.

I think the issue is that a few lines before (line 817) there's the following line:

Wed, Nov 15, 2:29 PM · Patch-For-Review, MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), PHP 8.2 support, PHP 8.1 support, ParserFunctions
Sophivorus updated the task description for T351312: Implicit conversion to int in #replace parser function.
Wed, Nov 15, 2:25 PM · Patch-For-Review, MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), PHP 8.2 support, PHP 8.1 support, ParserFunctions
Sophivorus updated the task description for T351312: Implicit conversion to int in #replace parser function.
Wed, Nov 15, 2:22 PM · Patch-For-Review, MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), PHP 8.2 support, PHP 8.1 support, ParserFunctions
Sophivorus created T351312: Implicit conversion to int in #replace parser function.
Wed, Nov 15, 2:21 PM · Patch-For-Review, MW-1.42-notes (1.42.0-wmf.7; 2023-11-28), PHP 8.2 support, PHP 8.1 support, ParserFunctions

Sat, Nov 11

Sophivorus closed T277093: ProveIt incorrecty splits keys and values in template params as Resolved.
Sat, Nov 11, 8:45 PM · ProveIt-Gadget

Wed, Nov 8

Sophivorus committed rEHPUec4eeb153bcd: Merge branch 'master' of ssh://gerrit.wikimedia.org… (authored by Sophivorus).
Merge branch 'master' of ssh://gerrit.wikimedia.org…
Wed, Nov 8, 1:17 PM
Sophivorus committed rEHPUd1a636445687: Add hook to modify the config object (authored by Sophivorus).
Add hook to modify the config object
Wed, Nov 8, 1:17 PM
Sophivorus committed rEHPU96c4bc584fb9: Merge branch 'master' of ssh://gerrit.wikimedia.org… (authored by Sophivorus).
Merge branch 'master' of ssh://gerrit.wikimedia.org…
Wed, Nov 8, 1:17 PM

Nov 1 2023

Sophivorus committed rESRP4470c6a84500: Use internal SMW methods directly rather than faking an API call (authored by Sophivorus).
Use internal SMW methods directly rather than faking an API call
Nov 1 2023, 3:11 PM

Oct 27 2023

Sophivorus committed rMSPO661be2150aaa: Revert one message to wfMessage because it's bugged (authored by Sophivorus).
Revert one message to wfMessage because it's bugged
Oct 27 2023, 5:04 PM
Sophivorus committed rMSPO151071259249: Replace wfMessage (authored by Sophivorus).
Replace wfMessage
Oct 27 2023, 1:40 PM
Sophivorus committed rECFPce4065b8c7c0: Initial commit (authored by Sophivorus).
Initial commit
Oct 27 2023, 12:30 PM

Oct 24 2023

Sophivorus closed T349664: Use data URLs instead of images for small icons as Declined.

Sure, makes sense, thanks for your time and answer!

Oct 24 2023, 9:44 PM · Design-Systems-Team, MediaWiki-Core-Skin-Architecture
Sophivorus created T349664: Use data URLs instead of images for small icons.
Oct 24 2023, 8:06 PM · Design-Systems-Team, MediaWiki-Core-Skin-Architecture
Sophivorus committed rETKB7090f80fdcb9: Improve handling of new topics (authored by Sophivorus).
Improve handling of new topics
Oct 24 2023, 4:28 PM
Sophivorus committed rMSPOf6d7a7f2179e: Improve logic of talk page button (authored by Sophivorus).
Improve logic of talk page button
Oct 24 2023, 1:20 PM

Oct 18 2023

Sophivorus created T349199: Hashtags down!.
Oct 18 2023, 12:06 PM · Hashtags
Sophivorus closed T344388: Textarea font size is too small in ProveIt gadget as Resolved.
Oct 18 2023, 11:54 AM · Accessibility, Design, ProveIt-Gadget

Oct 4 2023

Sophivorus committed rMSPO64d0c0b6c7e4: Restore previous img css (authored by Sophivorus).
Restore previous img css
Oct 4 2023, 11:44 AM

Oct 3 2023

Sophivorus committed rESPU87d5102f3a73: Minor tweak for 8.1 compatibility (authored by Sophivorus).
Minor tweak for 8.1 compatibility
Oct 3 2023, 3:59 PM
Sophivorus committed rESPU761eb6ed7129: Minor tweak for 8.1 compatibility (authored by Sophivorus).
Minor tweak for 8.1 compatibility
Oct 3 2023, 3:59 PM
Sophivorus committed rESPU9be399d158d3: Minor fix for PHP 8.1 compatibility (authored by Sophivorus).
Minor fix for PHP 8.1 compatibility
Oct 3 2023, 3:59 PM
Sophivorus added a comment to T345520: Rename WikiEdit to MiniEdit.

Thanks! I also updated this and now the stats on the page seem up-to-date.

Oct 3 2023, 1:59 PM · Projects-Cleanup, Language-Team (Language-2023-October-December), Localization Infrastructure FY2023-24, Unplanned-Sprint-Work, translatewiki.net
Sophivorus committed rMSPO96ddd1d9c6e6: Fix CSS rule (authored by Sophivorus).
Fix CSS rule
Oct 3 2023, 1:55 PM

Sep 29 2023

Sophivorus committed rMSPO72923e46e482: Get rid of images (authored by Sophivorus).
Get rid of images
Sep 29 2023, 1:15 PM
Sophivorus committed rEGTRd78d33cc6670: Don't clone unnecessarily (authored by Sophivorus).
Don't clone unnecessarily
Sep 29 2023, 12:20 PM

Sep 28 2023

Sophivorus committed rMGMEf9b108f1ef3f: Detect mobile by screen size rather than skin (authored by Sophivorus).
Detect mobile by screen size rather than skin
Sep 28 2023, 11:03 PM
Sophivorus committed rMSPO22eda7db8c53: CSS fixes for <figure> (authored by Sophivorus).
CSS fixes for <figure>
Sep 28 2023, 12:14 PM
Sophivorus committed rMSPOff03d22bf270: Allow hiding interlanguage links (authored by Sophivorus).
Allow hiding interlanguage links
Sep 28 2023, 11:35 AM
Sophivorus committed rMSPO7f719d79e5a3: Improve responsiveness of search box (authored by Sophivorus).
Improve responsiveness of search box
Sep 28 2023, 11:24 AM

Sep 27 2023

Sophivorus committed rMSPOf00abaed843f: Add support for <figure> and <figcaption> markup (authored by Sophivorus).
Add support for <figure> and <figcaption> markup
Sep 27 2023, 3:45 PM

Sep 25 2023

Sophivorus committed rETKB7189d94a0812: Add change tag (authored by Sophivorus).
Add change tag
Sep 25 2023, 2:59 PM

Sep 22 2023

Sophivorus committed rMSPO10a54ab3d4d9: Remove old stuff and add alt attributes (authored by Sophivorus).
Remove old stuff and add alt attributes
Sep 22 2023, 1:25 PM
Sophivorus committed rEGTMa3f11db5c6cc: Add option to load GTM deferred (authored by Sophivorus).
Add option to load GTM deferred
Sep 22 2023, 10:40 AM
Sophivorus committed rMSPO8546b4bf6aa8: Don't hide SMW entity examiner (authored by Sophivorus).
Don't hide SMW entity examiner
Sep 22 2023, 12:14 AM

Sep 21 2023

Sophivorus added a comment to T325480: defer javascript instead of async for better performance.

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 21 2023, 11:22 PM · MediaWiki-Platform-Team, Performance-Team (Radar), MediaWiki-ResourceLoader
Sophivorus committed rEIWE68834504e3ed: Remove support for local wiki (authored by Sophivorus).
Remove support for local wiki
Sep 21 2023, 10:29 PM
Restricted Application added a project to T325480: defer javascript instead of async for better performance: MediaWiki-Platform-Team.
Sep 21 2023, 10:20 PM · MediaWiki-Platform-Team, Performance-Team (Radar), MediaWiki-ResourceLoader
Sophivorus awarded T325480: defer javascript instead of async for better performance a Barnstar token.
Sep 21 2023, 10:20 PM · MediaWiki-Platform-Team, Performance-Team (Radar), MediaWiki-ResourceLoader
Sophivorus committed rEIWE377d42241446: Add support for the local API (authored by Sophivorus).
Add support for the local API
Sep 21 2023, 7:14 PM
Sophivorus committed rEGTM40aff5f3562d: Fix (authored by Sophivorus).
Fix
Sep 21 2023, 3:47 PM
Sophivorus committed rEGTR031a42e5c159: Fix language code detection from subpage (authored by Sophivorus).
Fix language code detection from subpage
Sep 21 2023, 3:43 PM
Sophivorus committed rEGTM27a155cee535: Initial commit (authored by Sophivorus).
Initial commit
Sep 21 2023, 1:12 PM

Sep 20 2023

Sophivorus committed rEGTR4f293596195f: Fix CI issues (authored by Sophivorus).
Fix CI issues
Sep 20 2023, 3:12 PM
Sophivorus committed rETKB7071d640353c: Don't print the talk below section (authored by Sophivorus).
Don't print the talk below section
Sep 20 2023, 1:53 PM

Sep 19 2023

Sophivorus placed T277093: ProveIt incorrecty splits keys and values in template params up for grabs.
Sep 19 2023, 4:01 PM · ProveIt-Gadget
Sophivorus added a comment to T346735: Reply tool doesn't show when the wiki not run on subFolder like /wiki/.

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 19 2023, 1:19 PM · Editing-team (Tracking), MW-1.39-release, MW-1.40-release, Technical-Debt, DiscussionTools

Sep 15 2023

Sophivorus committed rMSPO7a7aeecd2682: Minor tweak (authored by Sophivorus).
Minor tweak
Sep 15 2023, 1:46 PM
Sophivorus added a comment to T345520: Rename WikiEdit to MiniEdit.

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 15 2023, 11:49 AM · Projects-Cleanup, Language-Team (Language-2023-October-December), Localization Infrastructure FY2023-24, Unplanned-Sprint-Work, translatewiki.net

Sep 14 2023

Sophivorus added a comment to T320762: Don't lazy-load images above the fold when $wgNativeImageLazyLoading is enabled.

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.

Sep 14 2023, 11:22 PM · MediaWiki-General
Sophivorus added a comment to T320762: Don't lazy-load images above the fold when $wgNativeImageLazyLoading is enabled.

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 14 2023, 10:57 PM · MediaWiki-General

Sep 13 2023

Sophivorus committed rEGTR15abb0b3248f: Check that the page is actually a subpage (authored by Sophivorus).
Check that the page is actually a subpage
Sep 13 2023, 4:15 PM
Sophivorus committed rEGTR81563fa1afe3: Add option to set page language based on subpage name (authored by Sophivorus).
Add option to set page language based on subpage name
Sep 13 2023, 4:08 PM
Sophivorus committed rEGTRb0d8b97479b9: If possible, change the language of the translation page (authored by Sophivorus).
If possible, change the language of the translation page
Sep 13 2023, 3:33 PM
Sophivorus committed rEGTR915dc745a097: Fix eslint issues (authored by Sophivorus).
Fix eslint issues
Sep 13 2023, 3:32 PM

Sep 12 2023

Sophivorus committed rEHPU31744b3f9585: Add hook to allow others to further transform the purified HTML (authored by Sophivorus).
Add hook to allow others to further transform the purified HTML
Sep 12 2023, 8:52 PM

Sep 6 2023

Sophivorus committed rEGTR806b3585f7be: Change default for (authored by Sophivorus).
Change default for
Sep 6 2023, 2:35 PM
Sophivorus committed rEGTRf808d5f83411: Change more defaults (authored by Sophivorus).
Change more defaults
Sep 6 2023, 2:35 PM
Sophivorus committed rEGTR7de42bc9cc36: Initial commit (authored by Sophivorus).
Initial commit
Sep 6 2023, 2:21 PM

Sep 5 2023

Sophivorus committed rMGMEe59eea9a9a9c: Minor refinements (authored by Sophivorus).
Minor refinements
Sep 5 2023, 9:20 PM
Sophivorus committed rMGME0e3e48e49a0b: Minor fix (authored by Sophivorus).
Minor fix
Sep 5 2023, 9:20 PM
Sophivorus committed rMGMEee953912a4df: CSS tweaks (authored by Sophivorus).
CSS tweaks
Sep 5 2023, 9:07 PM
Sophivorus committed rMGMEff5ba05fee25: Minor improvements (authored by Sophivorus).
Minor improvements
Sep 5 2023, 8:15 PM

Sep 4 2023

Sophivorus committed rMSPOdd0639fd7c5e: Minor CSS fix (authored by Sophivorus).
Minor CSS fix
Sep 4 2023, 6:07 PM
Sophivorus committed rERAL5a875f0deefa: Make the location of the button customizable (authored by Sophivorus).
Make the location of the button customizable
Sep 4 2023, 6:03 PM
Sophivorus committed rERAL169d2d3183e2: Initial commit (authored by Sophivorus).
Initial commit
Sep 4 2023, 1:33 PM
Sophivorus committed rMSPO32f98ea2795c: Minor fix (authored by Sophivorus).
Minor fix
Sep 4 2023, 1:26 PM
Sophivorus committed rMGME83c330b4aed6: CSS no longer needed (authored by Sophivorus).
CSS no longer needed
Sep 4 2023, 12:39 AM
Sophivorus committed rMGME125981950bdf: Initial commit (authored by Sophivorus).
Initial commit
Sep 4 2023, 12:39 AM
Sophivorus committed rMGME2354839301b4: Add CSS (authored by Sophivorus).
Add CSS
Sep 4 2023, 12:39 AM
Sophivorus added a comment to T270992: Hashtags inside a internal link are not detected.

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 4 2023, 12:33 AM · Hashtags

Sep 3 2023

Sophivorus updated the task description for T345520: Rename WikiEdit to MiniEdit.
Sep 3 2023, 11:39 PM · Projects-Cleanup, Language-Team (Language-2023-October-December), Localization Infrastructure FY2023-24, Unplanned-Sprint-Work, translatewiki.net
Sophivorus updated the task description for T345520: Rename WikiEdit to MiniEdit.
Sep 3 2023, 11:39 PM · Projects-Cleanup, Language-Team (Language-2023-October-December), Localization Infrastructure FY2023-24, Unplanned-Sprint-Work, translatewiki.net
Sophivorus created T345520: Rename WikiEdit to MiniEdit.
Sep 3 2023, 11:38 PM · Projects-Cleanup, Language-Team (Language-2023-October-December), Localization Infrastructure FY2023-24, Unplanned-Sprint-Work, translatewiki.net

Sep 1 2023

Sophivorus committed rETGYf364c3ad6c80: Restrict API too (authored by Sophivorus).
Restrict API too
Sep 1 2023, 1:41 PM

Aug 29 2023

Sophivorus committed rMSPOfddf0ec70256: Move non-skin functionality out of the skin (authored by Sophivorus).
Move non-skin functionality out of the skin
Aug 29 2023, 3:21 PM

Aug 25 2023

Sophivorus committed rMSPOaed1292175bc: Refine translate script (authored by Sophivorus).
Refine translate script
Aug 25 2023, 3:35 PM

Aug 22 2023

Sophivorus committed rMSPO25b155e5f500: Simplify, update and improve Google Translate system (authored by Sophivorus).
Simplify, update and improve Google Translate system
Aug 22 2023, 6:27 PM

Aug 21 2023

Sophivorus awarded T343104: Hashtags not reflecting new changes a Love token.
Aug 21 2023, 11:09 AM · Hashtags
Sophivorus added a comment to T343104: Hashtags not reflecting new changes.

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 21 2023, 11:08 AM · Hashtags

Aug 15 2023

Sophivorus reopened T343104: Hashtags not reflecting new changes as "Open".
Aug 15 2023, 11:58 AM · Hashtags

Aug 10 2023

Sophivorus updated subscribers of T343890: Hashtag tool is not tracking since August 4.

@Samwalton9 Hi! Ping because it seems you fixed it last time T321635? Cheers!

Aug 10 2023, 10:17 PM · Hashtags
Sophivorus committed rETKB3a438f8ceb29: Add summary to list of messages (authored by Sophivorus).
Add summary to list of messages
Aug 10 2023, 5:53 PM
Sophivorus committed rETKBbd790a37e8a9: Handle errors (authored by Sophivorus).
Handle errors
Aug 10 2023, 5:32 PM
Sophivorus committed rETKB7169c9d39bbd: Fix ids for classes (authored by Sophivorus).
Fix ids for classes
Aug 10 2023, 3:52 PM
Sophivorus committed rETKBa7f8d5194cbf: Use classes instead of ids and use id Talk for talkbelow section (authored by Sophivorus).
Use classes instead of ids and use id Talk for talkbelow section
Aug 10 2023, 3:45 PM
Sophivorus committed rETKB7a980d6b3d0e: Fix for nbsp sometimes added by the browser (authored by Sophivorus).
Fix for nbsp sometimes added by the browser
Aug 10 2023, 3:34 PM
Sophivorus committed rETKBd6e8461f4b05: Add exception for when the talk page redirects to the subject page (authored by Sophivorus).
Add exception for when the talk page redirects to the subject page
Aug 10 2023, 3:04 PM
Sophivorus committed rETKBa5524ac67f9b: Initial commit (authored by Sophivorus).
Initial commit
Aug 10 2023, 2:56 PM

Aug 9 2023

Sophivorus added a comment to T270992: Hashtags inside a internal link are not detected.

I second this request. Three of my tools (Proveit, Synchronizer and WikiEdit) would benefit from it.

Aug 9 2023, 1:57 PM · Hashtags
Sophivorus created T343890: Hashtag tool is not tracking since August 4.
Aug 9 2023, 1:56 PM · Hashtags

Aug 8 2023

Sophivorus committed rEMTD95445c31896f: Don't add tags for empty values (authored by Sophivorus).
Don't add tags for empty values
Aug 8 2023, 3:16 PM