Page MenuHomePhabricator

Article preview fetches images from template
Closed, DeclinedPublicBUG REPORT

Description

(all links in this report points to web version of Wikipedia, please use mobile app instead)

Nearly every Jewish-related article, when displayed in article preview, shows Theodor Herzl with Israeli flag image as supposedly one of the article's images. This is not true. That image is not a part of an article itself. It is taken from Plik:Zionism-template.png template instead. And therefore should not be part of an article preview.

This report is specific to Jewish-related articles only, but the described (supposedly erroneous) mechanism most likely works the same for every other article. And every:

  • Article that is based on template with some image when that template includes some image or
  • Article that includes a template as a part of its body (like in above example) when that template includes some image

Will incorrectly display that template's image as supposedly own article's image.

Steps to replicate the issue (include links if applicable):

  • Go to David Ben Gurion article in Polish wikipedia
  • Scroll down to the third paragraph in Stosunki z Brytyjczykami chapter
  • Locate the "Równocześnie Ben Gurion potajemnie wspierał Aliję Bet, pomagając tysiącom Żydów uciec z okupowanej przez nazistów Europy i dotrzeć nielegalnie do Palestyny" sentence at tap Alija Bet link in it to display article preview.
  • Check the list of images in the generated article preview.

What happens?:

The Theodor Herzl with Israeli flag image is displayed as the second image.

What should have happened instead?:

The Theodor Herzl with Israeli flag should not be displayed at all. Polish https://pl.wikipedia.org/wiki/Alija_Bet Alija Bet article includes only one image and therefore only one image should be displayed in article preview.

Software version (skip for WMF-hosted wikis like Wikipedia):

Wikipedia for Android: _2.7.50448-r-2023-07-18_
Phone: realme GT 5G (RMX2202)
Android: 13 Kernel version 5.4.147-qgki-ga616720f33728)

Other information (browser name/version, screenshots, etc.):

Screenshot_2023-07-31-12-46-18-69_173823495e561b2cdc2de22ac640109c.jpg (546×534 px, 31 KB)

Event Timeline

Hi @trejder, thanks for taking the time to report this!

Locate "" sentence at tap Alija Bet link in it to display article preview.
Check the list of images in the generated article preview.

Looks like I need to click once on Aliję Bet to get an article preview in the Wikipedia Mobile App. Please do include full and clear steps in the future.

Not sure there is anything to fix in the application or server-side code here, but instead in the content on Polish Wikipedia - https://www.mediawiki.org/wiki/Extension:Popups#FAQ and https://www.mediawiki.org/wiki/Recommendations_for_mobile_friendly_articles_on_Wikimedia_wikis might be relevant.

Hi @Aklapper Thanks for your feedback.

Steps corrected:

Locate the (...) sentence and tap Aliję Bet link in it to display article preview

Wikipedia Mobile App displays in article preview images that doesn't belong to article, but to underlying template.

For me this is a clear bug. Article preview should show article-related images only and no images that belongs to underlying template.

Template is not a part of article. It is only used to produce article. Items belonging to template that does not belong to article itself should not appear in article preview.

For me it is like in a wardrobe's data sheet, next to wardrobe's dimensions itself, you would present dimensions of the machine that was used to produce that wardrobe.

If you disagree that this is a bug then simply close this report as not relevant. I am fine with that you disagree with me.

Dbrant subscribed.

The app simply displays what the API provides us:
https://pl.wikipedia.org/w/api.php?action=query&prop=images&titles=Alija_Bet

Unfortunately this functionality is deeply rooted at the core MediaWiki API level (i.e. the list of images is generated after templates are parsed), and I'm not sure it can be changed without rewriting major portions of it. Therefore I'm afraid I'm inclined to close this one.