In T303488 a new mw.util.addPortlet method was created. As a first pass it was only implemented in full for Vector 2022. So other skins can use it, it must work across all skins. This will require minor modifications to all the Wikimedia deployed skins.
TODO
- Update CologneBlue https://gerrit.wikimedia.org/r/c/mediawiki/skins/CologneBlue/+/942018
- Update Modern https://gerrit.wikimedia.org/r/c/mediawiki/skins/Modern/+/942019
- Update Monobook https://gerrit.wikimedia.org/r/c/mediawiki/skins/MonoBook/+/941984
- Update Timeless https://gerrit.wikimedia.org/r/c/mediawiki/skins/Timeless/+/942009
- Update Vector legacy https://gerrit.wikimedia.org/r/942023
QA
Run the following code in the developer console for all skins and check that the newly created menu (portlet) matches the design of the other menus.
const portletId = 'p-twinkle';
const p = mw.util.addPortlet(portletId, 'TW' );
$(p).insertAfter ('#p-navigation');
mw.util.addPortletLink( portletId, '#', 'csd', 'tw-csd' );
mw.util.addPortletLink( portletId, '#', 'prod', 'tw-prod' );
mw.util.addPortletLink( portletId, '#', 'xfd', 'tw-xfd' );
mw.util.addPortletLink( portletId, '#', 'rpp', 'tw-rpp' );
mw.util.addPortletLink( portletId, '#', 'tag', 'tw-tag' );
mw.util.addPortletLink( portletId, '#', 'last', 'tw-last' );
mw.util.addPortletLink( portletId, '#', 'unlink', 'tw-unlink' );Sign off steps
- Open ticket asking for adding parameter to addPortlet to append to DOM. Request input there from gadget developers.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T342814#9065052 |






