The MobileFrontend extension shouldn't special-case the main page. Currently a lot of the logic and infrastructure is based on a { if isMainPage() } { else ... } model, which is silly and unnecessary. The extension code should be flexible and adaptable to any page. A few tweaks might be necessary for the main page, but there doesn't need to be a completely different system in place for it.
Steps to achieve this
- Audit all wiki pages which use special cased main pages
- We should set $wgMFSpecialCaseMainPage = false for any projects currently not using mobile main page special casing
- Deploy TemplateStyles to render this code obsolete
- Community engagement - T138622 and T246401. All mobile main pages need to be updated to not use the mf- prefix using only the nomobile where necessary. See wikidata.org and English Wikipedia for examples.
- Main page special casing turned off for all projects with $wgMFSpecialCaseMainPage
- Remove special casing code from MobileFrontend (T257953)
- Sign off steps
- Addzip file of all projects before and after (@Jdlrobson has this)
Screenshots before and after for projects are listed here:
https://drive.google.com/drive/folders/1n4xB7Tk1klEnlw1EN-bSOReRQf791Jc-?usp=sharing