Help:Diff/de

Ein diff (kurz für Differenz) zeigt die Änderungen zwischen zwei Revisionen einer Seite an. Diffs sind ein wesentlicher Bestandteil der Navigation und Inhaltsmoderation in MediaWiki-Wikis.

Die Plattformen im Wiki Ökosystem haben verschiedene Versionen eines Diffs, je nachdem welches Gerät und welche Installation von MediaWiki verwendet wird.



Wann und warum sollte man einen Diff verwenden?
Der Hauptgrund für die Verwendung eines Diffs ist die Überprüfung einer bestimmten Änderung an einer Seite, die von dir oder jemand anderem vorgenommen wurde. Es gibt viele mögliche Gründe, dies zu tun:


 * So findest du Vandalismusfälle
 * Um festzustellen, wann ein Abschnitt, ein Satz oder ein Wort hinzugefügt oder entfernt wurde
 * Um festzustellen, welcher BEarbeiter eine bestimmte Änderung vorgenommen hat
 * Als Ausgangspunkt für weitere Aktionen, denn das diff enthält Special:MyLanguage/Help:Editing pages, Special:MyLanguage/Manual:Reverts und andere Aktionen sowie Links zu den Benutzer- und Gesprächsseiten des Bearbeiters.



Wie navigiert man, um eine Differenz anzuzeigen?
Die häufigste Art, einen Diff anzusehen, ist der "Revisionsverlauf". Dies ist über die Registerkarte "" zugänglich. Von dort aus kannst du "" verwenden, um die Diffs einzelner Revisionen anzuzeigen, oder du kannst die Optionsschaltflächen und die Schaltfläche "" verwenden, um die Diffs mehrerer Revisionen anzuzeigen.

Die meisten Spezialseiten, die Änderungen auflisten, enthalten normalerweise Links zu Diffs, wie zum Beispiel


 * Special:RecentChanges
 * Special:Watchlist
 * Special:Contributions
 * Special:Relatedchanges

Eine andere Möglichkeit, einen Unterschied zu sehen, ist die Special:Diff-Seite. Um dies zu verwenden, musst du die IDs der Überarbeitungen kennen, die du vergleichen möchtest. Revision IDs can be retrieved by looking at the  portion of a diff URL, where   is the diff ID. Additionally, you can use the value of the  parameter to get the diff of that revision against the previous one.

Components to a diff
Below is a visual representation of the important components of a diff page which you will see when viewing the difference between two versions.



This interactive example shows the top of the diff page (some of the links are dummy links). The older revision is shown on the left, the newer revision on the right.



Unchanged Text
Unchanged text is dark grey on light grey (only parts before and after changed text are shown).

Moved text
Identical text that has moved from one place to another is usually represented as added and removed text. On MediaWiki installations using, there may be an arrow icon more clearly indicating where the moved text went to.

Added text
Lines containing added text have a plus icon (+) before them. The added words and characters are highlighted and in bold.

Removed text
Lines containing removed text have a minus icon (−) before them. The removed words and characters are highlighted and in bold.

Replaced text
We can see what has been replaced with new content when there's a + icon and a − icon next to the phrase where the change happened.

Paragraphs which have changed are black on white, with an orange border on the old revision side and a blue border on the new version side.

Inserted and removed text is highlighted with the border color and in bold. Where whole paragraphs have been removed or inserted, no highlighting or bolding is applied and the other side is blank.

Linking to a diff
Diffs can be linked to by copying the URL while viewing the diff — this URL has two parameters,  and.

Linking to a diff from outside a wiki can be done by using the full URL, for example:



The diff special page at Special:Diff makes it easier to create shorter URLs which redirect to diffs.

From within a wiki, these links can take the following forms:


 * → Special:Diff/1242287 – Shows the diff to the previous revision of the same page.
 * → Special:Diff/1242287/prev – Shows the diff to the previous revision of the same page.
 * → Special:Diff/1242287/next – Shows the diff to the next revision of the same page.
 * → Special:Diff/1242287/cur – Shows the diff to the current revision of the same page.
 * → Special:Diff/1242286/1242287 – Shows the diff between the specified revisions of the same page which may also be reversed, e.g.  → Special:Diff/1242287/1242286, though one should avoid this.

These links may be used in the edit summary as well as adapted like any other internal links, e.g..

For example, the full URL  could also be written as.

By default, the later revision of the page is displayed in full below the diff — this can be turned off via a preferences ("") or by setting  in the URL. Links to diffs without the page text can be created:



Inline diffs
Since MediaWiki 1.35, an inline diff (also known as a unified diff) is available. As of 2022 this is only available with the engine. Inline diffs can be accessed by passing the  parameter in the URL (example). There are plans to expose a toggle to switch between inline and two-column in the interface (T240608).

How to report bugs?
Bugs should be filed on Phabricator under the tag.

User Preferences
The following user preferences are available in the "" section of the "" preferences tab:


 * Toggle the display of the page text below the diff. This text is the later of the two revisions of the page.
 * Toggle the display of the page text below the diff. This text is the later of the two revisions of the page.


 * Whether to show the diff of the rolled back revision after a rollback.
 * Whether to show the diff of the rolled back revision after a rollback.

Some extensions also add their own preferences related to diffs.



Siehe auch

 * — Navigating and understanding page history.
 * — Diffs in the VisualEditor and VisualDiff extensions.