Page MenuHomePhabricator

No page images selected on English Wiktionary
Closed, ResolvedPublic


After recent changes, (English) Wiktionary entries practically never have a page image, because images normally belong to one h2 section, even when there is only one. shows the Wikipedia logo since I moved it to the top, but e.g. has nothing.

More examples to test:

The proper solution is to revert whatever change hardcoded the section 0 filtering and to fix T95026: PageImages should be able to pick Wikidata's P18 as chosen image instead. However, if we really want to go the way of hard-coding wiki-specific content assumptions into the code, then it would be better for the extension to have a configuration switch for this, to be altered for Wiktionary and others (the current default was thought for the [English] Wikipedia).

Event Timeline

Jdlrobson subscribed.

I fixed a similar problem for wikivoyage. I can take care of this.

I'm going to update all wikis to use images beyond the lead. The original config change (T152115) was likely only meant for wikipedia but was enabled for all wikis.

Change 356225 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[operations/mediawiki-config@master] Page images can come outside the lead for all projects except Wikipedia

Change 356225 merged by jenkins-bot:
[operations/mediawiki-config@master] Page images can come outside the lead for all projects except Wikipedia

@Jdlrobson - what is the expected behavior now? Just reverting the change and allowing images to come from wherever on that project? Seems so based on testing, just wanted to make it clear within the task. Looks good otherwise

@ovasileva Correct. Only on Wikipedia's will images be forced to come from the lead.

Thanks. Though I'd still like to know what non-English Wikipedias think... /me crosses fingers for flexible solutions