VisualEditor/Diffs/pl

W edytorze wizualnym ja i w edytorze wikikodu 2017 można teraz oglądać wizualne porównania (różnice) zmian przed zapisaniem, oprócz dotychczasowego dwukolumnowego porównania wikikodu.

Są dwa powody. Po pierwsze, edytujący mogą zobaczyć zmiany, które oni i inni zrobili, bez konieczności zagłębiania się w zawiłości wikikodu. Pomaga to łatwo zauważyć zmiany takie jak na przykład usunięcie kolumny w tabeli, gdyż porównanie wikikodu może być nieczytelne.

The second is that the technology can be used to more accurately represent the change to the reader. For example, if an edit swapped two paragraphs (with or without changes to the paragraphs), the visual diff will identify that this is what occurred, while a wikitext diff makes it appear that a paragraph was deleted and an entirely new paragraph was added.

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

On regular diff pages
Most of the examples and screenshots below are about using visual diffs during page previews when editing. However, VisualEditor's visual diffs can also be used on regular diff pages, on any wiki that has VisualEditor installed. You can see an example of it in use on the English-language Wikipedia here.

For wikis that have VisualEditor, there are several ways to activate this visual diff display:


 * Add the following to LocalSettings.php:
 * If your wiki has a "Beta features" tab within Special:Preferences, and you want to make visual diffs an "opt-in" feature for users, you can add the following to LocalSettings.php:
 * As seen in the Wikipedia example linked above, the visual diff mode can also be activated by simply adding "&visualdiff" to the URL of a diff page.

Jak to działa
[[File:VisualEditor_visual_diff_tool_-_visual_diff.png|alt=Zrzut ekranu pokazujący przykładowe zmiany w artykule. Większość zmian jest podświetlanych odpowiednim formatowaniem tekstu.|left|thumb|300px|Kiedy skończysz edytować stronę, wpisz opis zmian i kliknij "".

W trybie wizualnym, tekst dodany, usunięty, nowe linki i formatowanie są podświetlane. Inne zmiany, takie jak na przykład zmiana rozmiaru zdjęcia, są opisane w komentarzach z boku.]]





Technologia



 * Google Diff, Match and Patch
 * TreeDiffer.js

Obecne ograniczenia

 * No notices for changes to "invisible" page metadata, such as categories or TOC keywords.
 * Has issues with complex changes to tables.
 * Unavailable on certain special pages:
 * Undo "diff" pages.
 * Edit conflict pages

Zobacz też

 * 2016 Community Wishlist Survey/Categories/Reading#CW2016-R094
 * Community Tech/Improved diffs