Community Wishlist Survey 2022/Archive/Preview mode when you add image in an article

From Meta, a Wikimedia project coordination wiki

Preview mode when you add image in an article

NoN Functionality exists

  • Problem: When I add an image in an article, I have difficulties understanding where the image will land exactly in the article page in advance. I know I can select in the advanced mode "right, left, etc.". If I do, I often find myself editing the page again in a trial an error mode.
  • Who would benefit: Everyone adding an image.
  • Proposed solution: Add a "preview mode" once you add an image in an article. So, you know exactly in advance where the image will be displayed once you edit the page.
  • More comments:
  • Phabricator tickets:
  • Proposer: Jurbop (talk) 07:39, 23 January 2022 (UTC)[reply]

Discussion

  • On English Wikipedia if you are editing the full page in Wikitext you get a preview of how the whole page will look when you click on preview. I assume your use case differs, so it would help if you could clarify. · · · Peter (Southwood) (talk): 18:49, 23 January 2022 (UTC)[reply]
    Hello, My error! Indeed, I can use "review my changes" before publishing. And there is an option to "Report incorrect display for this change".
    That just that the image won't be precisely where I want it to be (next to this or that part of the text, not just the whole paragraph). But I believe that it may not be solvable with mediawiki? Jurbop (talk) 07:31, 24 January 2022 (UTC)[reply]
    With the new fixed width Vector design, the images will always fall in the place you decide, as the width doesn't change per user. Theklan (talk) 10:44, 24 January 2022 (UTC)[reply]
  • @Jurbop: You can preview your changes in both the Wikitext editor and VisualEditor. Hopefully the new Vector design will also help when placing images. You may also like to know that CommTech are working on a Real-time preview feature for the Wikitext editor. As there appears to be existing solutions to your problem, I am archiving this. Thanks for taking part in the survey. DWalden (WMF) (talk) 18:16, 27 January 2022 (UTC)[reply]
    From the description, it sounds like Jurbop is using VisualEditor, and the problem they're having is when sometimes floated images don't show up in the same place they do after saving. phab:T68228 may be related. In the future, Jurbop, it would help if you gave a more specific example with step-by-step reproduction steps. Anyway, I agree with the decision to archive this proposal because I think your issue may eventually be fixed on its own. I'll explain: First, I do not think we will be able to introduce a "preview" mode into VisualEditor, because VisualEditor itself is supposed to be the preview. I believe the issue you have may be with mw:Parsoid (which is used by VisualEditor) and how it differs from the core parser. Once mw:Parsing/Parser Unification is complete, your issue may magically fix itself, since the rendering of wiki pages when reading will be the same rending used by VisualEditor. In the meantime, however, editing via wikitext and using the full page preview will give you a more accurate preview, so that is the only workaround we can offer at this time. Hope this helps, MusikAnimal (WMF) (talk) 18:28, 27 January 2022 (UTC)[reply]
    Hello @DWalden (WMF) @MusikAnimal (WMF). Many thanks to both of you for the detailed explanations. I appreciated. Jurbop (talk) 19:34, 28 January 2022 (UTC)[reply]