Page MenuHomePhabricator

Add more properties to the PageImages list
Closed, ResolvedPublic


There is an algorithm to determine the best image to represent an Item in listings like special:nearby and other places. It checks if a specific Property (image) exists on an Item. If it does exist it uses that one. If it doesn't it moves on to other properties according to a configured list. Since the list was created a number of new image Properties have been created and should be added to the configuration.

The following Properties should be added:

Acceptance criteria:

  • new Properties are taken into account for determining the main image of an Item

Requested by Jura1 on Contact the development team

Event Timeline

Current order (from wmgWBRepoPreferredPageImagesProperties in mediawiki-config InitialiseSettings.php):

'wikidatawiki' => [
    // Photos
    // Complex graphics
    // Simple graphics
    // Multi page content
    // Maps
    // Diagrams

Thank you!

Then let's add them in this order right after the first entry:


Change 592939 had a related patch set uploaded (by Hoo man; owner: Hoo man):
[operations/mediawiki-config@master] Add new properties to wmgWBRepoPreferredPageImagesProperties

Change 592939 merged by jenkins-bot:
[operations/mediawiki-config@master] Add new properties to wmgWBRepoPreferredPageImagesProperties

Mentioned in SAL (#wikimedia-operations) [2020-04-29T11:05:13Z] <hoo@deploy1001> Synchronized wmf-config/InitialiseSettings.php: Add new properties to wmgWBRepoPreferredPageImagesProperties (T249811) (duration: 01m 18s)

Deployed and verified: After purging with "forcelinkupdate", the page image for "Pudong" (Q125378) changed from "locator map image" (P242) to "collage image" (P2716), as can be seen on,121.539722.

Query for finding relevant items:

Please note that the image used for items will only be changed once these items are edited again (or purged via the API with forcelinkupdate).