In resources/ext.wikilambda.search/wikidata.js, the wbsearchentities API is called to power the Abstract Wikipedia search suggestions, but we currently do not request or display thumbnail images.
Wikidata's wbsearchentities API supports a props parameter that can include url (already used) but thumbnail data is available via a separate action=query&prop=pageimages call. We should fetch and display the entity thumbnail in the Vector typeahead search suggestions, consistent with how standard MediaWiki search displays page thumbnails.
What needs to change:
- In requestWikidataEntitySearch(), add support for fetching thumbnail URLs alongside entity data (via action=query&prop=pageimages on Wikidata)
- Pass the thumbnail URL through transformEntityToResult() into the search result object
- Ensure the Vector search client receives and renders the thumbnail