Page MenuHomePhabricator

App inserts images into infoboxes using incorrect or undefined parameters
Open, HighPublicBUG REPORT

Description

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

  • Open the Wikipedia Android app.
  • Use the “Add an image” suggested edit on an article that contains an infobox (example provided by contributors in the VP thread).
  • Submit the edit and review the diff or published version.
  • Observe whether the app inserts parameters such as caption, image_caption, or similar fields that are not defined in the template’s TemplateData.

What happens?:
The Android app inserts the image inside the infobox and adds parameters (e.g., caption=) that do not exist in that infobox template.

The infobox produces preview warnings or displays unexpected output due to invalid parameters.

The behavior is inconsistent across devices; in iOS, the app places the image outside the infobox and gives a preview warning for unknown parameters.

What should have happened instead?:
The app should rely on the TemplateData documentation of each infobox and only insert valid parameters.

If no appropriate infobox parameters exist, the image should be added outside the infobox.

The app should provide a preview warning (same as iOS) when an invalid parameter is attempted.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

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

Related discussion on English Wikipedia:
https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Where_to_raise_this_issue
Users referenced previous issues related to suggested edits inserting infobox parameters.

iOS app behavior differs (does not attempt to insert into infobox).

Event Timeline

Diff: https://en.wikipedia.org/w/index.php?title=First_Lady_of_Poland&diff=1326417151&oldid=1314310845

Page uses https://en.wikipedia.org/wiki/Template:Infobox_official_post
This infobox uses imagecaption= for the image, flagcaption= for a flag-image and insigniacaption for an insignia-image.

We received a similar +1 report:

When adding images via the Android app (50564-beta-2025-12-15) on articles with certain infobox templates, the app may insert malformed or concatenated parameters
In a follow-up attempt, the user reported that after taking a screenshot, the app UI froze and crashed, followed by the Android home screen crashing as well, requiring a forced reboot (power button held ~30 seconds).

Screenshot_20251220_145030_Wikipedia Beta (1).jpg (2×1 px, 369 KB)