When visiting https://en.m.wikipedia.beta.wmflabs.org/wiki/S?mobileaction=beta (all browserS)
An empty container is left on the page despite there being no related articles. This leads to a large gap in the footer
Expected: The container should be removed in this instance
When vistiting https://en.m.wikipedia.beta.wmflabs.org/wiki/Related%20test
Expected: the container should be present
<div class="read-more-container"></div>
With:
Without:
Requirement for task
Install and setup MobileFrontend on MediaWiki.
Reproduce this bug
Open an article that doesn't exist on English Wikipedia in mobile view and you will notice a container gap at the top of the page. Example Me article or any other page with no related article. You will see a page with a gap at the left footer on the page (as images show above).
- Reproduce locally**
You can make the related articles show on a page by adding the following wikitext
{{#related:Page title}}
