Story
As a user, I want to see the appropriate image when I preview an article, so that I know whether I want to read it or not
Background
PageImages should not return images if they're not in the lead section.
Example: [[https://en.wikipedia.org/w/index.php?title=Intellectual_disability&oldid=641828755 | [[Intellectual disability]] ]]'s page image is way, way below the fold and is therefore not a helpful representation of the article in question. In this case it would be more helpful to not have an image at all.
See T91683: Allow editors control of the page image
Acceptance criteria
- Only images in the lead section OR infobox should appear in related pages, hovercards, lead images
- There should be a
featureflag which allows us to turn this on or off and it should default to false - It should be enabled in mediawiki-config after an announcement is sent to wikitech-l
See also: T151276 [if this change fixes this problem please merge as duplicate and add to test plan]