- On testwiki wmf.23 enable Twinkle in Gadgets.
- Go to a random article - The new tab with Twinkle will be displayed much larger than other tab labels.
| testwiki wmf.23 (Vector (default) | testwiki wmf.23 (Vector (legacy) | CORRECT enwiki wmf.21 |
|---|---|---|
| Etonkovidova | |
| Sep 14 2021, 6:01 PM |
| F34645275: reporting an error [phab] [simple wiki].PNG | |
| Sep 16 2021, 7:16 PM |
| F34645154: firefox_DL4SX7Hk6f.png | |
| Sep 16 2021, 4:42 PM |
| F34643206: Screenshot 2021-09-14 at 21.23.48.png | |
| Sep 14 2021, 9:30 PM |
| F34643208: Screenshot 2021-09-14 at 21.23.34.png | |
| Sep 14 2021, 9:30 PM |
| F34643100: Screen Shot 2021-09-14 at 10.51.37 AM.png | |
| Sep 14 2021, 6:01 PM |
| F34643104: Screen Shot 2021-09-14 at 10.51.47 AM.png | |
| Sep 14 2021, 6:01 PM |
| F34643102: Screen Shot 2021-09-14 at 10.55.52 AM.png | |
| Sep 14 2021, 6:01 PM |
| testwiki wmf.23 (Vector (default) | testwiki wmf.23 (Vector (legacy) | CORRECT enwiki wmf.21 |
|---|---|---|
Tentatively adding as a deployment blocker, because IIRC the exact same thing has happened in the past, and people complained about it a lot.
Thanks for the report.
The Twinkle code appears to use a custom function Twinkle.addPortletLink that replicates portlet HTML. The HTML is no longer consistent with Vector, which uses a vector-menu-dropdown-noicon class to distinguish between dropdown menus with icons and without.
There are 151 scripts impacted. 69 in the MediaWiki namespace.
We could add temporary support for this, or simply update the gadget code. I've fixed test wiki https://test.wikipedia.org/w/index.php?title=MediaWiki%3AGadget-Twinkle.js&type=revision&diff=480994&oldid=480741,
My concern with temporary support is it will likely never be addressed and we'll end creating more work for ourselves, eventually needing to fix the scripts anyway, so personally, I'd rather just go in and manually update all the Twinkle scripts if that's what it takes. There may be other gadgets with the same problem, but we can make a User-notice today in preparation for that so gadget authors know what to do.
Either way, I don't think this needs to block the train. I can make sure group 1 wikis are not impacted by the end of the day, and fix the group 2 wikis by the end of tomorrow.
@ovasileva what do you think?
Additional note:
suppose it would be a good time to double check whether the CSS is backward-compatible with at least the last two weeks of cached HTML generated by Vector itself
It's backwards compatible with the more and variants menu so this is only a problem for gadgets which are creating menus in a non-standardized way. Perhaps a mw.util.addPortlet method needs to be provided if we want to service those users better.
After broadening the filter, I can see that actually only 15 scripts are impacted in the MediaWiki namespace:
https://global-search.toolforge.org/?q=Twinkle%5C.addPortlet+%5C%3D.*mw-portlet+vector-menu+vector-menu-.*type+%3D%3D%3D+%27menu%27+%5C%3F+%27dropdown%27+%3A+%27tabs%27®ex=1&namespaces=8&title=
I agree that this should not be a train blocker. Given that it's only the 15 scripts above that are affected, let's go for the manual update to the scripts. If we find more later on, we can reconsider the option for temporary support.
The code for most Twinkle instances is stored in Git and is copied to on-wiki pages by an automated or semi-automated process. Changes not committed to the Git repository will be overwritten on the next update. Please make sure to submit patches when editing on-wiki Twinkle files.
I have done
Thanks @AntiCompositeNumber that makes a lot more sense and now I see the Imported from github [https://github.com/wikimedia-gadgets/twinkle]. comment (side note: It would be great if Extension:Gadgets supported showing a big warning box at the top of such pages and/or made these read only!)
I merged the two PRs raised by @AntiCompositeNumber. For most of the other wikis, I believe the Twinkle instances have neither git repos nor active maintainers, so I would suggest going ahead with the approach of editing the onwiki pages directly. Note: in some cases like knwiki there's an incorrect "Imported from github" comment at the top which is a result of copy-pasting from the enwiki version.
How confusing... :-S
If you let me know when the script has updated the pages on wikis that use the Github version, I can go in and edit the remaining ones.
wikimedia-gadgets/twinkle (formerly called azatoth/twinkle) github repo is only used for updating Twinkle on enwiki and testwiki. So on other wikis, if there's a comment that says it's imported from that repo, the comment can be ignored.
This doesn't appear to only be for Twinkle; I'm not sure of the exact cause (I'm very sure it's not one of my scripts), but it seems some gadgets(?) on Commons seem to be having the same behaviour. Screenshot below:
There really should be core-provided JS module for adding a portlet dropdown in the current skin.
Since this is a visual issue it makes sense not to be a blocker, but a tech notice message would have been appreciated.
I promised this on Tuesday, T290994#7353602 but forgot to follow through, sorry about that.. I have opened T291438 for next tech news.