Background
In T289716: Create sticky header skeleton we are building the skeleton for the sticky header. This task will cover adding the language switcher and ULS to the sticky header
Acceptance criteria
Add the following items to the sticky header as per the prototype below:
- Language switching button
- Selecting button should open the ULS
Note: this will only be available for wikis that have multiple language versions. Wikis with multiple languages on a single wiki (wikdata, mediawiki, etc) will not display a language selector within their sticky header
- If ULS extension is not installed, do not show the ULS button in the sticky header. Do not spend time trying to wire up the fallback dropdown menu.
- Make sure the new button is click tracked via DesktopWebClickTracking by having a data-event-name attribute
Prototype
https://di-community-round-2.web.app/Audre_Lorde
Developer notes
ULS will wire up any element with mw-interlanguage-selector . With that in mind, this change should be a hopefully trivial template change to StickyHeader.mustache. Note, the second acceptance criteria item which means the outputting of the language button should be conditional and should never behave as a dropdown.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T289815#7505695 |
2 | ✅ | T289815#7505695 |
3 | ✅ | T289815#7505695 |
4 | ✅ | T289815#7505695 |
5 | ❓ | T289815#7505695 |
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T289815#7556851 |
2 | ✅ | T289815#7556851 |
3 | ❌ | T289815#7556851 |
4 | ❓ | T289815#7556851 |
5 | ❓ | T289815#7556851 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T289815#7556851 |
2 | ✅ | T289815#7556851 |
3 | ⬜ | T289815#7556851 |
4 | ⬜ | T289815#7556851 |
5 | ✅ | T289815#7556851 |