Page MenuHomePhabricator

Search results use inappropriate “missing image” codex instead of article codex
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue

  • Go to a Wikipedia.
  • Start typing the name of an article in the search box.

What happens?:

image.png (682×807 px, 105 KB)

  • In search, an image placeholder for the thumbnail is shown if the article has no Page Image.
  • The placeholder used is the Codex icon: cdxIconImageLayoutFrameless

image.png (890×202 px, 17 KB)

Refer to: https://doc.wikimedia.org/codex/latest/icons/all-icons.html

The intention behind cdxIconImageLayoutFrameless in Codex seems to be that it acts as a temporary stand‑in until a suitable page image can be found. This is reasonable for many articles (e.g., chemical substances lacking photographs above), but is not appropriate for all. Some articles have no image and cannot ever have one — for example, obscure ancient historical figures with no surviving depictions. In such cases, showing a “missing image” icon implies the page is incomplete or that an image should exist, which is misleading.

Third‑party wikis may also be text‑heavy (e.g., glossaries, dictionaries (All-and-every-Wiktionary) technical reference sites) and have little need for page images. For these wikis, the placeholder icon introduces unnecessary visual noise and suggests missing content where none is expected.

What should have happened instead?:

A more appropriate fallback already exists: cdxIconArticle. This icon represents “an article” rather than “a missing image,” and does not imply that the page is incomplete or that an image is expected. If PageImages returns no image, the search interface should show cdxIconArticle instead of cdxIconImageLayoutFrameless. This avoids implying that the page is missing content, respects pages where images are inappropriate or impossible, and avoids misleading signals on wikis that intentionally do not use page images, so is better Design

image.png (927×191 px, 13 KB)

Event Timeline

thiemowmde added subscribers: thiemowmde, Volker_E, Catrope.

This decision appears to be hard-coded in Codex since 2022. Personally, I don't see how the icon could mislead users into "please fix this missing image". How does it say that? Wouldn't an article icon be equally misleading? But I agree that re-using a "layout frameless" icon for something else is not good either. cdxIconImage exists. Why not use that?

Change #1341038 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[design/codex@main] Replace misplaced cdxIconImageLayoutFrameless with cdxIconImage

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