Page MenuHomePhabricator

Small-displayed images false positive at wp_no_image
Closed, DeclinedPublic

Description

There are a lot of false positives at least in the catalan version (https://tools.wmflabs.org/wikidata-todo/wp_no_image/cawiki.html). It seems small-displayed images like https://ca.wikipedia.org/wiki/Nova_Creu_Alta are not taken into account. Could somebody fix that? Thanks in advance

Event Timeline

I wrote the tool. It uses the "page image" information from the respective Wikipedia. For your example, there is no such entry. Ergo, this needs to be fixed in MediaWiki core, or the respective extension.

thiemowmde edited projects, added PageImages; removed Tools, Wikidata.
thiemowmde added a subscriber: MaxSem.
Jdlrobson added a project: Web-Team-Backlog.
Jdlrobson subscribed.

This is intentional and how it works.
https://www.mediawiki.org/wiki/Extension:PageImages#Image_choice explains how an image is chosen. The image in the lead section of https://ca.wikipedia.org/wiki/Nova_Creu_Alta is not suitable for the type of display the usage of this is intended for.

Thanks for the clarification, Jdlrobson. So, does Magnus' tool have any alternative to bypass this behaviour?

@Paucabot You'll have to ask Magnus, but my recommendation would be to use the images api or fallback to using it when no image is available... https://ca.wikipedia.org/wiki/Especial:ApiSandbox#action=query&format=json&prop=images&titles=Nova_Creu_Alta

@ Paucabot No. The alternative would be to use all images on a page, but that would remove too many pages because of navbar icons and irrelevant images, which cannot be filtered out automatically.

Ok. Thanks, Magnus. But I think this other list would be also intersting as it would have no false positives. Could we have it additionally?