Background
The Add an Image task allows users to insert images into articles that do not have them. Users are not writing the wikitext for the image and its formatting, the feature creates the wikitext automatically and inserts it. The work on how & where the wikitext is inserted was coordinated here: T356819: [M] Image recommendation placement on wikitext.
We received this feedback:
When adding an image using the new edit proposal feature to German Wikipedia, the resulting syntax is not in line with the projects default syntax: | thumb | 220x124px | right
The size limitation results in small previews, there should be no size set as all (as default) as this is defined by the reader’s settings. „Right“ is not needed, as this is done by „thumb“. The syntax should be localised [[Datei:Example.png|mini|Example test]]
Version: WikipediaApp/7.5.0.3563 (iOS 17.4.1; Phone)
Requirements
- Parity with Android's image recommendations image syntax insertion
- If size is set as the default (220x124px), we insert it. Instead we should omit it.
- If basic is chosen, do not insert basic as a parameter.
- We should localize for namespace, image position (including none), and image type.
- Image syntax insertion should be updated both in the editor flow, and in Add an Image suggested edit
Nice to have
- Syntax from Add an Image task should match each local wiki's default
- Considerations for RTL languages according to https://www.mediawiki.org/wiki/Help:Images
- Considerations for Frames according to https://www.mediawiki.org/wiki/Help:Images