Story
As a reader, I want the ability to get an overview of an article as soon as I land on the page, so I do not have to scroll very far to know what the article is about
Acceptance Criteria
This is now on beta, implemented in T145216: MobileFormatter should relocate first paragraph ahead of infobox. Move to stable on all projects.
- Subtasks are all resolved
- There is a decrease in the amount of unusual infoboxes being logged after we have deployed (T163805)
- Enabled on stable and beta
Ensure before signoff
- Change has been added to monthly reading updates (https://www.mediawiki.org/wiki/Reading/Status_updates/Next?wteswitched=1#Web)
Additional notes
The Mobileview api is not impacted because ->filterContent does not apply any of the optional transformations including the lead paragraph transformation.
Testing Criteria
- Visit https://en.m.wikipedia.org/wiki/U.S._Route_113 as a logged in/logged out user on a mobile device
- Ensure lead paragraph appears before infobox
- Turn on beta mode
- Ensure lead paragraph appears before infobox
Also test on the following pages:
https://en.m.wikipedia.org/wiki/Planet (for testing lists)
https://en.m.wikipedia.org/wiki/List_of_micronations (no infobox, list article)
https://he.m.wikipedia.org/wiki/%D7%94%D7%9E%D7%90%D7%94_%D7%94-14 (rtl)
https://bg.m.wikipedia.org/wiki/15_%D0%B2%D0%B5%D0%BA_%D0%BF%D1%80.%D0%BD.%D0%B5. (no first paragraph expected)
https://bg.m.wikipedia.org/wiki/%D0%A1%D0%B5%D0%BB%D0%B4%D0%B6%D1%83%D0%BA%D0%B8 (image instead of infobox)
https://en.m.wikipedia.org/wiki/Barack_Obama