Page MenuHomePhabricator

Add a header at the top of the Main page of French, Kotava and Konkani projects
Closed, ResolvedPublic3 Estimated Story Points

Description

TODO / QA steps

  • Make sure communities are aware of when the change is happening (check with Szymon)
  • Enable the configuration change on French Wikipedia (frwiki)
  • Enable on gom.wiktionary (gomwiktionary)
  • Enable on gom.wikipedia (gomwiki)
  • Enable on avk.wikipedia (avkwikipedia)

Background of Konkani request

Previously raised in T326793

The Konkani Wikipedia and Wiktionary (gomwiki and gomwiktionary) are multi-script wikis, with content in the Latin, Devanagari and Kannada scripts. As a result, on these wikis, users tend to switch the interface language more often, and therefore, it is desirable that the language settings button should be at a consistent location on every page. So please set the langauges button to appear at the top of the main page for these wikis using the configuration parameter $wgVectorLanguageInMainPageHeader. Here are the links to the posts on the local community pages:

https://gom.wikipedia.org/wiki/Topic:Xa95auneu2wc60l0
https://gom.wiktionary.org/wiki/Wiktionary:Tintto#Languages_button_at_the_top_of_the_main_page_in_Vector_2022

Background of French request

Actually the language switcher is at the bottom of the Main page of the French Wikipedia, which has the Vector 2022 skin as default.
French wikipedians requested several times individually the language switcher at the top of the Main page (exemples 2022-11, 2021-07, 2021-06, 2021-06, 2021-06, etc.).

After discussion (1, 2) Wikipedia French community agrees to set up the main page heading, as described in T293470 and in FAQ.

Actually, the choice is

  • to add a header in the Main page of French Wikipedia with a Welcome message in French
    • ''Bienvenue sur Wikipédia'' for logged-out users (see mockup)
    • ''Bienvenue User_name'' for logged-in users, where "User_name" should be replaced with the name of the user who is watching the page.

The header should also include the language button.

image(1).png (1×2 px, 926 KB)

Background for Kotava

Kotava edition discussion.

Developer notes

VectorLanguageInMainPageHeader = [
                                "logged_in" => true,
                                "logged_out" => true,
]

Sign off steps

Make sure the community has been notified.

QA Results - Beta|Prod

Event Timeline

Jdlrobson renamed this task from Add a header at the top of the Main page of French Wikipedia to Add a header at the top of the Main page of French and Konkani projects.Feb 6 2023, 11:55 PM
Jdlrobson triaged this task as Medium priority.
Jdlrobson updated the task description. (Show Details)
Jdlrobson subscribed.

Since the requested change is the same, I've merged the two community requests into a single ticket.

I think I come here with Russian Wikipedia soon.

Please add this request from Kotava edition of Wikipedia, discussion here. Messages:

  • Va drumbaca den Wikipédia (logged-out and anonymous users)
  • Va drumbaca _nom_utilisateur_ (logged-in users)
Jdlrobson renamed this task from Add a header at the top of the Main page of French and Konkani projects to Add a header at the top of the Main page of French, Kotava and Konkani projects.Feb 27 2023, 5:30 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson updated the task description. (Show Details)

Change 894765 had a related patch set uploaded (by Kimberly Sarabia; author: Kimberly Sarabia):

[operations/mediawiki-config@master] Add header at top of main page

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

bwang added a subscriber: KSarabia-WMF.

Apparently this is ready to go but blocked on finding a deployment window.

Change 894765 merged by jenkins-bot:

[operations/mediawiki-config@master] Add header at top of main page

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

Mentioned in SAL (#wikimedia-operations) [2023-03-13T20:14:42Z] <kindrobot@deploy2002> Started scap: Backport for [[gerrit:894765|Add header at top of main page (T325362)]]

Mentioned in SAL (#wikimedia-operations) [2023-03-13T20:16:20Z] <kindrobot@deploy2002> kindrobot and ksarabia: Backport for [[gerrit:894765|Add header at top of main page (T325362)]] synced to the testservers: mwdebug2001.codfw.wmnet, mwdebug2002.codfw.wmnet, mwdebug1001.eqiad.wmnet, mwdebug1002.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-03-13T20:26:54Z] <kindrobot@deploy2002> Finished scap: Backport for [[gerrit:894765|Add header at top of main page (T325362)]] (duration: 12m 11s)

@sgrabarczuk Just want to check in with you now that this has been backported today (re: first to-do at the top of the ticket).

Hi, perhaps it is due to technical time of refreshing cache but I notice this:

  • fr.wikipedia: language button on the top of Home page has been deployed, but I can't see the Welcome messages (logged-in or logged out), I tried with different browser.
  • awk.wikipedia: at the top I can see the language button and the word "Xadola" in the header instead of Welcome messages T325362#8647483, but when logged out with Chrome I can see only "Xadola", languages are still on the bottom of the Home page.

Chrome logged in and logged out (awk wp):

Wikipedia - Google Chrome 14_03_2023 12_57_33.png (1×2 px, 516 KB)

Wikipedia - Google Chrome 14_03_2023 12_57_42.png (1×2 px, 474 KB)

@Patafisik_WMF I added the pages on French Wikipedia (https://fr.wikipedia.org/wiki/Sp%C3%A9cial:Contributions/Jon_(WMF)). Ideally these edits should be done by community members prior to making the site request as we should only handle the backport part (I am on the only team member with interface edit rights I think!). The pages look up to date to me now. Note when the change happens for anonymous users a ?action=purge is required to get the new UI.

Thank you @Jdlrobson for clarifying this point, I just see the partial change done today, but I was not informed to have to ask someone of the community to complete the procedure to make it effective. I suppose you wanted to share the link https://fr.wikipedia.org/wiki/Sp%C3%A9cial:Contributions/utilisateur:Jon_(WMF)

To be sure: can I already contact Kotava users to complete the process, or you have to do something else before (for exemple: you have to close this task before or not)?

Right. The edits in particular that are important are MediaWiki:Mainpage-title-loggedin ‎ and MediaWiki:Mainpage-title. Per https://www.mediawiki.org/wiki/Reading/Web/Desktop_Improvements/Frequently_asked_questions#How_to_make_the_button_with_language_links_appear_at_the_top_of_the_main_page? these should ideally be done prior to contact us. Perhaps for future changes, part of our web team process could be checking this is done before doing the backport?

Edtadros removed ovasileva as the assignee of this task.
Edtadros added subscribers: ovasileva, Edtadros.

Test Result - Prod

Status: ✅ PASS
Environment: see steps
OS: macOS Ventura
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: Make sure communities are aware of when the change is happening (check with Szymon)
Confirmed with @sgrabarczuk
✅ AC2: Enable the configuration change on French Wikipedia (frwiki)

Screenshot 2023-03-20 at 4.00.09 PM.png (896×908 px, 347 KB)

✅ AC3: Enable on gom.wiktionary (gomwiktionary)
Screenshot 2023-03-20 at 4.01.37 PM.png (933×902 px, 429 KB)

✅ AC4: Enable on gom.wikipedia (gomwiki)
Screenshot 2023-03-20 at 4.01.37 PM.png (933×902 px, 429 KB)

✅ AC5: Enable on avk.wikipedia (avkwikipedia)
Screenshot 2023-03-20 at 4.02.01 PM.png (900×910 px, 386 KB)