We are supporting a ResourceLoader module and associated PHP code for 2 pages on 2 wikis that we added **temporarily** for a Hindi Wikipedia main page video campaign back in 2018 when TemplateStyles wasn't deployed (T193292). Now TemplateStyles is deployed this code is no longer needed. We will drop the associated code prior to the next MediaWiki release.
= Developer notes
https://gerrit.wikimedia.org/r/c/569175 is ready to go when we are.
= Background (if interested)
wgMFMobileMainPageCss is being used by Hindi and Russian Wikipedia. It was originally added for a specific campaign in Hindu Wikipedia and was never meant to be permanent. It was later adopted in T195905.
This config flag adds an unnecessary ResourceLoader module that applies styles in MobileMainPage.css to the main page.
This expensive config variable seems to serve one purpose on Hindi Wikipedia to change the background color - however after checking in with @alexhollender the design works fine without it and we want to discourage changing the background color.
https://hi.m.wikipedia.org/wiki/%E0%A4%AE%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF:MobileMainPage.css
```
body.skin-minerva #content {
background-color: #fff;
background-image: linear-gradient(to top, #ffffff, #eaecf0);
}
```
However Russian Wikipedia also makes use of this config
and on [[ https://ru.m.wikipedia.org/wiki/MediaWiki:MobileMainPage.css | Russian Wikipedia ]] this CSS rule seems to be disabled at desktop resolutions and accompanied by a rule to disable box-shadow on the header:
```
/*
* Важные стили для заглавной страницы в мобильной версии
* См. [[phab:T195905]]
*/
@media (max-width: 719px) {
.page-Main_Page #content {
background-color: #eaecf0;
}
.page-Main_Page .header-container.header-chrome {
box-shadow: none;
}
}
```
After talking to @alexhollender we will drop this module. 1 less ResourceLoader (1 small step for performance) and 1 less PHP class. Russian Wikipedia will need to make adjustments to their main page to account for the removal of this page.
Existing pages:
* [[ https://hi.m.wikipedia.org/wiki/%E0%A4%AE%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF:MobileMainPage.css | Hindi ]]
* [[ https://ru.m.wikipedia.org/wiki/MediaWiki:MobileMainPage.css | Russian ]]
= Acceptance criteria
[x] Check in with @alexhollender about the appropriate behaviour here - box shadow or no box shadow
[x] Move content specific Hindi styles to TemplateStyle applied to MainPage scoped to body.skin-minerva - I can do this using staff account if given permission.
[x] Ensure Russian Wikipedia are aware of this change so they can make adjustments if they want to.
[x] Drop code from MobileFrontend
[ ] Drop the config flag.