Full stack developer and a tech lead in a daily job. I mainly deal with web stuff, and in wikimedia I mainly write gadgets (CSS/JS). UI/UX enthusiast.
On wikipedia since 2005.
User Details
- User Since
- Oct 13 2014, 5:14 PM (528 w, 2 d)
- Availability
- Available
- LDAP User
- Unknown
- MediaWiki User
- Nux [ Global Accounts ]
Today
Hi. Is there a sane way to wait for the initialization of ve.init.mw.targetFactory? I did do an insane ;) way of waiting for the object in intervals. It works, but would prefer to use something else.
Fri, Nov 22
Yeah, you would have to edit this: https://commons.wikimedia.org/wiki/Template:Monument_ocrotit_de_stat/layout
Fri, Nov 15
Mon, Nov 4
I've added "tool_type": "web app" to my toolinfo.json. That seems to have fixed toolhub too.
Sun, Nov 3
Oct 7 2024
I wouldn't mind getting notifications, but keep in mind that this might also be a per-tool preference (not only per-dev).
Oct 6 2024
Problem was actually due to using the lang template, so I fixed that:
https://commons.wikimedia.org/w/index.php?title=Template:Zabytek_nieruchomy/layout&diff=next&oldid=933521494
Sep 22 2024
OK, I searched on plwiki in our template using column layout -- also no usages of (min|max|fit) in width param.
Tests seem to be passing. Please review. I have added the parent task: T375344. The task may not be formally correct, so if anyone could clean it up, that would be great :)
Done in T271958 please review.
Removing this would be simple in code, only this (and one test):
$props['column-width'] = new Alternative( array_merge( [ $matcherFactory->length(), $auto ], // Additional values from https://www.w3.org/TR/2019/WD-css-sizing-3-20190522/ $this->getSizingAdditions( $matcherFactory ) ) );
I'll try to work on Box sizing level 4 (replacing cssSizing3).
Initial draft said this should be fine:
https://drafts.csswg.org/css-sizing/#column-sizing
Sep 16 2024
Assuming you want a short description without links, I think it would be best to use structural descriptions. Take a structural description in the user/content language, with a fallback to English. Otherwise, you could try building a summary from templates like 'de', 'pl', 'en', etc.
Sep 12 2024
Sep 4 2024
Sep 2 2024
I think you might need to check your stats based on UserAgent (if that is possible). You might need to check with tool and bot authors which might be using outdated software. This is important because a single connection once a day by some tool might be used by thousands of users.
Aug 31 2024
Aug 28 2024
Seems like a duplicate: T373315
Aug 19 2024
Aug 9 2024
A typo here if you are not done yet:
text = text.replace(/(@media +)\(( *prefers-color-scheme)/g, '@media screen and ( $2') // should be text = text.replace(/(@media +)\(( *prefers-color-scheme)/g, '@media screen and ($2') // or to be less confusing ;) text = text.replace(/(@media +)(\( *prefers-color-scheme)/g, '@media screen and $2')
Aug 6 2024
Jul 27 2024
Jul 8 2024
Jul 6 2024
This is all done now for US and with proper map-colors :)
Jul 1 2024
Sorry, this should be better:
<?php
I think it would be best if you could deploy these configuration changes for us:
$url_LogoSvg = "https://upload.wikimedia.org/wikipedia/commons/d/d1/Wikipedia_Administrator.svg"; $url_LogoPng = "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Wikipedia_Administrator.svg/114px-Wikipedia_Administrator.svg.png"; $wgLogos = array( 'icon' => $url_LogoPng, // path to icon, the primary logo for Vector '1x' => $url_LogoPng, // path to 1x version '2x' => $url_LogoPng, // path to 2x version 'svg' => $url_LogoSvg, // path to svg version ); $wgAppleTouchIcon = $url_LogoPng;
Jun 25 2024
I've done yellow tiles in a new batch and it looks much better and uniform to other maps, so... I might re-do previously done states.
Jun 23 2024
I see no interest so I'll go ahead with my changes in other states.
Jun 21 2024
P.S. If you intend to use my code for uploading files, please send me a quick message on Commons. This will help us coordinate better and speed up our collective efforts for the greater good 😉. Thanks! 😊
Also, is there any documentation (or discussion) onwiki about the specific kinds of syntax errors that are most commonly involved, so that editors could perhaps have tips in mind for what to look for? Or any kind of similar helpful tips.
I already have a bot here: https://github.com/Eccenux/mass-map-USA-county
Jun 20 2024
I no longer think this is a good idea. Patchdemo is probably enough :)
Jun 18 2024
@Aklapper yes, MediaWiki core maintenance script.
Yeah this is probably true for all those county maps of USA. Seems like a one person did an initial version of them. All with similar clip path. So far I've done NY and Alabama. Alaska was a bit more tricky (not really counties, different names)... I guess I might start with the easy ones so that I get more done sooner.
Jun 17 2024
@Skalman Seems like what you need is an ability to pass a matcher function.
var h2 = mw.util.querySection( (s)=>s.level == 2 && s.heading.textContent.startsWith("Svenska") ); // first match wins (as with querySelector) var h3s = mw.util.querySectionAll( (h)=>s.level == 3 && s.parent.heading == h2 ); // all matches
Result could be an array for easier manipulation with .map() and .filter(). Don't think this API should be using jQuery as a resulting array.
Jun 15 2024
This is the last demo with SVG enabled by default:
https://patchdemo.wmflabs.org/wikis/604876b5e5/wiki/Main_Page
Jun 14 2024
I think the PoC is cleaned up and ready to go.
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1043323
Jun 13 2024
There is one weird issue: the SVG disappears when not modified (you edit with VE; modify 1 of 2 SVG; check diff). So I guess some change in the VE configuration or something extra might be needed.
Embedded SVG editing in VisualEditor bug?
Sorry about the noise... 🙈 Finally got this right though. BTW. @SD0001 I think you have a typo in your rendering of attributes ;)
Jun 4 2024
Jun 3 2024
Thanks Func. Yes, I removed infobox styles both from mobile CSS (Mobile.css) and desktop CSS (Common.css). The problem was last reported 4 days after adding the default gadget when the styles were removed from Mobile.css and Common.css.
for templates used even in 30% of page views, it's better to keep them as template styles instead
Yeah, I already heard in T362747 that it's probably 7 days, but might be up to 14 days (maybe).
@Nux was what deployed ? What gadget? Specifics would be helpful here :-)
Was this deployed? After 4 days of moving desktop and mobile CSS to a default gadget we still get reports that some pages don't get CSS from the new gadget.
https://pl.m.wikipedia.org/wiki/Wikipedia:Kawiarenka/Kwestie_techniczne?markasread=28372271&markasreadwiki=plwiki
May 31 2024
Thanks! And thanks for the warning too :-)
An example article (notice how borders are not collapsing)
May 28 2024
May 23 2024
Apr 21 2024
I don’t imagine these advanced things being used much. While the third option would be by far the most powerful, I don’t it would be by far the most useful.
Apr 18 2024
Now that 1) ES6 is the Grade A JavaScript requirement for MediaWiki and 2) the validator now supports ES6 (T75714), this means we no longer need the "requiresES6" flag for the gadgets extension, correct?
Apr 8 2024
Confirmed to work on patchdemo :-)
https://patchdemo.wmflabs.org/wikis/745f82bb2b/w/index.php?title=1886_in_Chile&oldid=154&diff=cur
Apr 6 2024
Not ideal but there is a gadget that at least adds whitespace:
// [[MediaWiki:Gadgets-definition]] formatter (links and stuff) if (mw.config.get("wgCanonicalNamespace") == "MediaWiki" && mw.config.get("wgTitle") === "Gadgets-definition" && document.querySelector(".mw-parser-output") ) { mw.loader.load("https://meta.wikimedia.org/w/index.php?title=User:Nux/gadgets-definition-ux.js&action=raw&ctype=text/javascript"); }
You can add this in:
https://meta.wikimedia.org/wiki/Special:MyPage/global.js
and it will fix scrolling on:
https://commons.wikimedia.org/wiki/MediaWiki:Gadgets-definition
Apr 1 2024
I'm with Izno on that (especially with point 1). That particular template feels like even/odd modules in npm [:
Mar 20 2024
I should mention that what I would actually love to have is <section> or any kind of parent/wrapper of the elements in the section. That would make many such things as nominations easier (del requests, good article, dyk article etc).
Hi. I specifically moved buttons away from section headers recently and into a template we can control locally (on wiki). This has drawbacks -- I needed to add section names to the template... but also again something we can control locally, not something that might change with a skin or MW update.
Mar 14 2024
Mar 9 2024
Mar 1 2024
Feb 29 2024
Feb 25 2024
Fixed by moving style out of text element, so there seem to be some problem with the render possibly related to style cascade.
Feb 13 2024
As someone who spent years maintaining user scripts and gadget on en.wp and providing support for users on WP:VP/T..... There is some truth to that, but I'd argue that a significant amount of the userscripts and gadgets are continuously broken. They cause issues for people where their javascript sometimes doesn't load. They cause errors to show up in the WMF logging.
Feb 10 2024
[…] I've tested building my DYK tool with Babel. The build is significantly slower. […]
This is an excellent argument against such build step! We generally don't use one for MediaWiki. Do you still need it? For many devs, they mainly did this in ~2013 as a way to get "Package files" and ES6 syntax. These are supported natively now. Build tools now mostly a left-over trend from the 2010s era of frontend development, involving needless complexity for largely unproven and misunderstood benefits.
I just want to add a few things to those already quoted by @SD0001 (thanks).
Feb 9 2024
@Nux Standardisation is not in question. Unlike new Web APIs (such as fetch), which can be polyfilled, or used via a conditional "if" statement, new syntax, if allowed even once, immediately breaks all code in many browsers that we still support. You can complain to upstream TC39 for having introducing features in ES2017 in a way that is backwards-incompatible. When MediaWiki raises its minimum requirement to ES8/ES2017, we will on the same day, raise the ESLint and site script validator to also allow this syntax.
Hi. I was forwarded here from another task :). I did a colour change for myself as I had problems remembering on mobile which colour is which. Changing to red-green helped with that.
Feb 8 2024
Sorry, I forgot I have a much smaller request. Could you flip the legend in HTML? I think "removed" belongs on the left side, and this is where inline diff puts "removed".
I was hoping I wasn't too late to make all of them red-green (so changing mobile/wikitext, not VE)... I think I agree with Sam here:
There are no plans currently to raise browser requirements to ES8/ES2017 or ES2020 etc. Not likely until browser engines, browser vendors/apps, audience usage thereof catch up.
Feb 2 2024
Jan 30 2024
Just BTW, but it is weird that visual is red-green and wikitext (inline) diff is yellow-blue. Shouldn't they both be red-green?
Jan 29 2024
In T334940#9480339, @TheDJ wrote:
Separate domain to serve iframes from, so that we can have interactive and cacheable content (pretty complex)
Jan 20 2024
Jan 14 2024
(ES2018) for await - Firefox 58+, Safari 11.1+, Chrome 63+, Opera 50+, Edge 18+
Note that async allows you to do much, much more readable code. E.g. by using await in HTML dialogs:
https://github.com/Eccenux/wiki-DYKCzyWiesz/blob/59d3b9ed4d93b6c42a59a9e7ce85b327d4bd9d64/src/DoneHandling.js#L80
I did not mean to argue that using requiresES6 for ES8+ should be supported, only that if that parameter is dropped or people are directed to remove it, Tech News should make it clear that that isn't a no-op change. I don't think it's that unlikely that someone did use for ES8+ code, either because they did not realize the code is ES8+, or because they didn't know requiresES6 means "ES6 and ES7 but not ES8". If a gadget breaking is the gadget developer's fault, it is still helpful to point them to the cause of the breakage.
Jan 8 2024
Jan 4 2024
You need to change comments moving them out of list items. https://ar.wikipedia.org/w/index.php?title=%D9%85%D9%8A%D8%AF%D9%8A%D8%A7%D9%88%D9%8A%D9%83%D9%8A:Gadgets-definition&action=edit