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
PageImages should not return images if they're not in the lead section.
Example: [[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
- 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]