Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
English • ‎français • ‎日本語 • ‎polski • ‎português do Brasil • ‎српски / srpski • ‎українська • ‎Tiếng Việt

Inside the visual editor or the 2017 wikitext editor, you can now see visual diffs (differences) of changes to the document before you save, alongside the traditional two-column wikitext diff.

How it works[edit]

Screenshot showing some changes to an article.  Most changes are highlighted with text formatting.
When you are finished editing the page, type your edit summary and then choose "Review your changes". In visual mode, you will see additions, removals, new links, and formatting highlighted. Other changes, such as changing the size of an image, are described in notes on the side.

Toggle button showing visual and wikitext options; visual option is selected.
Click the toggle button to switch between visual and wikitext diffs.

Screenshot showing the same changes, in the two-column wikitext diff display.
The wikitext diff is the same diff tool that is used in the wikitext editors and in the page history.


Why this feature?[edit]

This has two purposes. Firstly, editors can see the changes they and others have made without needing to know the intricacies of wikitext. This is particularly helpful for clearly seeing e.g. that a user has deleted a column in a table, as the wikitext diff is quite baffling.

Secondly, we can use the technology to more richly and usefully represent the change to the reader, rather than just a basic string matching. For example, we can identify when an edit swaps two paragraphs and represent it as such, rather than edits to delete one paragraph and add another (which may or may not be identical).

This is currently available as the first diff tool in the desktop visual editor from the 1.31.0-wmf-20 branch onwards (released to Wikimedia production from 6 February 2018). Before that, it was a secondary tool from the 1.29.0-wmf-17 branch onwards (released to Wikimedia production from 21 March 2017).


  • Detects paragraph moves + changes
  • Structural table changes shown more clearly


Thalia Chan, Unifying editing and visual diffs, Wikimania 2017

Current limitations[edit]

  • Some edits aren't shown very clearly, as we haven't added custom explanations for all kinds of content. In particular, references, custom extension tags, and templates need better, more sensible explanations.
  • Some behaviour switches that add UI elements such as TOC or edit links aren't shown.
  • No notices for changes to "invisible" page metadata.
  • YesY Fixed Not yet available on mobile.
  • Has issues with complex changes to lists[3] and tables[4].
  • Unavailable in certain special pages
    • Undo "diff" pages T78550.
    • Edit conflict pages T153298
    • Historical diff pages Phab:T167508.
      • Experimentally enabled via feature flag, or appending &visualdiff to the query string: example
  • YesY Fixed Diffs are shown for the edits from the moment you started the editor – so if you switch mode to wikitext and back, you will only see changes since you moved back, not since you started editing overall.[5]

See also[edit]