Page MenuHomePhabricator

Editors must review their main pages: End of life for wgMFSpecialCaseMainPage
Open, Needs TriagePublic

Description

MobileFrontend since its inception has been applying formatting to the main page of MediaWiki sites. This code while adding confusion for editors and technical maintenance by WMF adds a performance penalty as it requires additional PHP processing as well as provides different experiences to mobile users - usually in the form of hiding content. For example on English Wikipedia only "Today's featured content" and "In the news" sections are served to mobile users.

This code was deprecated in 2017 and is planned for removal in April 2020.

With the adoption of Extension:TemplateStyles this code is now obsolete and many projects have made the appropriate updates that make content adapt to mobile screens. Instructions on how to migrate can be found on mediawiki.org.

Actions required from editors:

  1. For projects you are users of please apply the query string ?mfnolegacytransform=1&debug=1 to your main page on mobile and compare it with the main page without the query. For example users of english Wikipedia would compare https://en.m.wikipedia.org/?mfnolegacytransform=1&debug=1 with https://en.m.wikipedia.org/ - please document what you see and report it on your local community discussion page e.g. Wikipedia:Village_pump
  2. Check if your wiki can be fixed by the recommended quick fix.
  3. If your project needs more time to migrate please comment here or on the talk page mw:Talk:Mobile Gateway/Mobile homepage formatting
  4. Please raise any technical questions on mw:Talk:Mobile Gateway/Mobile homepage formatting. I will be happy to help you make this migration.

Related reading:

Projects impacted

183 projects are impacted. They are:

alswiki
amwiki
arcwiki
arwiki
arwikibooks
arwikisource
astwiki
astwiktionary
aswiki
avwiki
barwiki
bawiki
bclwiki
bewikisource
bjnwiki
bnwiki
bnwikisource
brwikisource
bxrwiki
cawiki
cawikibooks
cawikinews
cawiktionary
cdowiki
cewiki
cswiki
cswiktionary
cywiki
dawiki
dawikiquote
dawikisource
dewiki
dewikinews
dewikiquote
dewikisource
dewikiversity
dewiktionary
elwiki
elwikivoyage
elwiktionary
enwiki
enwikibooks
enwikinews
enwikiquote
enwikisource
enwiktionary
eowiki
eswikiquote
etwiki
etwikiquote
etwikisource
fawikibooks
fiwiki
fiwiktionary
fowiki
frwikibooks
frwikinews
frwikiquote
frwikiversity
fywiki
gagwiki
ganwiki
gawiki
glwiki
glwikiquote
guwiki
guwikiquote
gvwiki
hifwiki
hiwiki
hiwiktionary
hrwiki
hrwikisource
hsbwiki
hywiki
ilowiki
iowiki
iswiktionary
itwiki
itwikinews
itwikiquote
itwikisource
itwikivoyage
jawiki
jawikinews
jawikisource
kawikiquote
kbdwiki
kmwiki
knwiki
kowikibooks
kowikisource
kuwiki
kywiki
lbwiki
lezwiki
lowiki
ltwiktionary
lvwiki
minwiki
mkwiki
mlwiki
mlwikisource
mrwiki
mswiki
mywiki
nahwiki
newiki
nlwiki
nlwiktionary
nnwiki
nowiki
ocwiki
orwiki
orwiktionary
oswiki
plwiki
plwikisource
plwiktionary
pnbwiki
ptwiki
ptwikibooks
ptwikiquote
ptwikivoyage
ptwiktionary
rmwiki
rowiki
ruewiki
ruwikinews
ruwiktionary
rwwiki
sahwiki
sawiki
scnwiki
scowiki
scwiki
shwiki
simplewiki
simplewiktionary
siwiki
skwiki
slwiki
sowiki
sqwiki
srwikinews
stwiki
suwikiquote
svwiktionary
swwiki
tawiki
tawikiquote
tawiktionary
tewiki
tewikiquote
tewikisource
thwiki
tlwiki
tnwiki
trwiki
trwikibooks
trwikiquote
ttwiki
tyvwiki
ugwiktionary
ukwiki
ukwikinews
ukwikisource
uzwiki
uzwiktionary
vecwikisource
viwiki
viwikiquote
xalwiki
yowiki
zawiki
zeawiki
zhwikibooks
zhwikinews
zhwikiquote
zhwikisource
zhwikivoyage
zhwiktionary
zuwiki

Event Timeline

Restricted Application added subscribers: Strainu, Petar.petkovic, jeblad and 4 others. · View Herald TranscriptFeb 28 2020, 12:45 AM
Dcljr updated the task description. (Show Details)Feb 28 2020, 1:03 AM
JJMC89 updated the task description. (Show Details)Feb 28 2020, 2:25 AM
Tacsipacsi updated the task description. (Show Details)Fri, Feb 28, 3:07 PM
Tacsipacsi added a subscriber: Tacsipacsi.
Zoranzoki21 added a subscriber: Zoranzoki21.EditedFri, Feb 28, 3:17 PM

I just notified Croatian Wikipedia community via their Discord.

For srwikinews I will try to work on this with @Acamicamacaraca and @Srdjan_m.

Thanks @Zoranzoki21 let me know if I can help with any technical questions or examples of wikis with similar main pages to the desired one. https://fr.m.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal seems to be a good example of what's possible here.

https://fr.m.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal seems to be a good example of what's possible here.

But not of how: it uses site-wide styles, not TemplateStyles, so style definitions are spread over MediaWiki:Common.css and MediaWiki:Mobile.css, and it even causes flash of unstyled content on mobile.

https://fr.m.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal seems to be a good example of what's possible here.

But not of how: it uses site-wide styles, not TemplateStyles, so style definitions are spread over MediaWiki:Common.css and MediaWiki:Mobile.css, and it even causes flash of unstyled content on mobile.

Thanks for pointing that out! Looks like https://meta.wikimedia.org/w/index.php?title=Main_Page&action=edit might be a better example - that uses TemplateStyles and a responsive 2 column layout.

Ivi104 added a subscriber: Ivi104.Fri, Feb 28, 10:09 PM
Stryn added a subscriber: Stryn.Sun, Mar 1, 8:43 AM

We definitely need more time to fix this at rowiki, since apparently I'm the only one with both the knowledge and access to be able to fix the main page and I currently don't have more that 5-10 minutes at a time to devote to wiki. I would appreciate it if you could push back the deadline to Jun 2nd or later in the hope that I will be able to look into the design on a national holiday.

We definitely need more time to fix this at rowiki, since apparently I'm the only one with both the knowledge and access to be able to fix the main page and I currently don't have more that 5-10 minutes at a time to devote to wiki. I would appreciate it if you could push back the deadline to Jun 2nd or later in the hope that I will be able to look into the design on a national holiday.

Noted.
Looking at your wiki, I think this CSS added as a template style will get you most of the way there without interrupting display on any other wikis:

body.skin-minerva table, body.skin-minerva  tr, body.skin-minerva  td, body.skin-minerva  tbody {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
}

But you'll also need to add classes to the headings such as Conținut recomandat to apply the same rule above to those two.

Jdlrobson updated the task description. (Show Details)Tue, Mar 3, 4:35 PM

Thanks @Jdlrobson you suggestion worked with minor changes. If you also have suggestions for the bottom 2 sections (categories and other projects) which render badly, it would be great. :)

Easiest short term solution would likely be to add a nomobile class to those elements. It will hide them on mobile.