VisualEditor/Diffs/sk

Od roku 2017 poskytuje vizuálny editor "vizuálne rozdiely verzií" K týmto sa dá dostať dvoma spôsobmi: počas kontrolovania zmien, pred uložením dokumentu a (beta funkcia) zo štandardnej MediaWiki stránky rozdielov verzií, ku ktorej sa dá dostať zo stránky histórie. V oboch prípadoch sa vizuálne rozdiely zobrazia vedľa bežného dvojstĺpcového rozdielu verzií a užívateľ si medzi týmito dvoma zobrazeniami môže prepínať.

Druhou je, že sa nimi dajú čitateľovi presnejšie ukázať zmeny. Napríklad pokiaľ sa úpravou prehodia dva odstavce (s alebo bez zmeny daných odstavcov), pomocou vizuálnych rozdielov sa dá ihneď určiť čo sa stalo, zatiaľ čo na wikitextových rozdieloch to vyzerá ako keby bol odstavec vymazaný a následne bol pridaný úplne nový odstavec.

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.

How it works
[[File:VisualEditor_visual_diff_tool_-_visual_diff.png|alt=Screenshot showing some changes to an article. Most changes are highlighted with text formatting.|left|thumb|300px|When you are finished editing the page, type your edit summary and then choose "".

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.]]





Použité technológie



 * Google Diff, Match and Patch
 * TreeDiffer.js

Aktuálne obmedzenia

 * No notices for changes to "invisible", such as categories or TOC keywords.
 * Problémy so zložitými zmenami tabuliek.
 * Nedostupnosť na istých špeciálnych stránkach:
 * Undo "diff" pages.
 * Edit conflict pages

History
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).

Pozri aj

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