Page MenuHomePhabricator

No page images selected on English Wiktionary
Closed, ResolvedPublic

Description

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.

https://en.wiktionary.org/w/index.php?title=Wikipedia&action=info shows the Wikipedia logo since I moved it to the top, but e.g. https://en.wiktionary.org/w/index.php?title=keny%C3%A9r&action=info has nothing.

More examples to test: https://en.wiktionary.org/w/index.php?search=insource%3A%22%3D%3D+File%22&title=Special:Search&profile=default&fulltext=1&searchengineselect=mediawiki

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

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 29 2017, 10:03 AM
Jdlrobson added a subscriber: Jdlrobson.

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

https://gerrit.wikimedia.org/r/356225

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

https://gerrit.wikimedia.org/r/356225

@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.

ovasileva closed this task as Resolved.May 31 2017, 5:03 PM

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