<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Help%3ADiff%2Fen</id>
	<title>Help:Diff/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Help%3ADiff%2Fen"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Help:Diff/en&amp;action=history"/>
	<updated>2026-04-19T07:49:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Help:Diff/en&amp;diff=7877&amp;oldid=prev</id>
		<title>FuzzyBot: Updating to match new version of source page</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Help:Diff/en&amp;diff=7877&amp;oldid=prev"/>
		<updated>2026-04-17T09:40:25Z</updated>

		<summary type="html">&lt;p&gt;Updating to match new version of source page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;templatestyles src=&amp;quot;Help:Diff/styles.css&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;languages/&amp;gt;&lt;br /&gt;
{{PD Help Page}}&lt;br /&gt;
{{Special page}}&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;[[w:Diff|diff]]&amp;#039;&amp;#039;&amp;#039; (short for difference) displays the changes between two revisions of a page.&lt;br /&gt;
Diffs are a fundamental component of navigation and content moderation on MediaWiki wikis.&lt;br /&gt;
&lt;br /&gt;
The platforms in the wiki ecosystem have several versions of a diff depending on which device and installation of MediaWiki is being used.&lt;br /&gt;
&lt;br /&gt;
== When and why to use a diff? ==&lt;br /&gt;
The main reason to use a diff is to review a specific change to a page made by yourself or someone else.&lt;br /&gt;
There are many possible reasons to do this:&lt;br /&gt;
&lt;br /&gt;
* To help find instances of vandalism&lt;br /&gt;
* To determine when a section, sentence, or word was added or removed&lt;br /&gt;
* To determine which editor made a given change&lt;br /&gt;
* As a starting point to further actions as the diff contains [[Special:MyLanguage/Help:Editing pages|{{int|editold}}]], [[Special:MyLanguage/Manual:Reverts#Undo|{{int|editundo}}]], and other actions as well as links to the editor&amp;#039;s user and talk pages.&lt;br /&gt;
&lt;br /&gt;
== How to navigate to view a diff? ==&lt;br /&gt;
&lt;br /&gt;
The most common way to view a diff is through the &amp;quot;[[Special:MyLanguage/Help:History|Revision history]]&amp;quot;.&lt;br /&gt;
This is accessible via the &amp;lt;code&amp;gt;{{int|skin-view-history}}&amp;lt;/code&amp;gt; tab.&lt;br /&gt;
From there, you can use &amp;lt;code&amp;gt;{{int|last}}&amp;lt;/code&amp;gt; to view diffs of single revisions, or use the radio buttons and the &amp;lt;code&amp;gt;{{int|compareselectedversions}}&amp;lt;/code&amp;gt; button to view diffs across multiple revisions.&lt;br /&gt;
&lt;br /&gt;
Most [[Special:MyLanguage/Help:Special pages|special pages]] that list changes will usually include links to diffs, such as:&lt;br /&gt;
&lt;br /&gt;
* [[Special:RecentChanges]]&lt;br /&gt;
* [[Special:Watchlist]]&lt;br /&gt;
* [[Special:Contributions]]&lt;br /&gt;
* [[Special:Relatedchanges]]&lt;br /&gt;
&lt;br /&gt;
Another way to view a diff is with the [[Special:Diff]] page.&lt;br /&gt;
To use this, you must know the IDs of the revisions you want to compare.&lt;br /&gt;
Revision IDs can be retrieved by looking at the &amp;lt;code&amp;gt;diff=123&amp;lt;/code&amp;gt; portion of a diff URL, where &amp;lt;code&amp;gt;123&amp;lt;/code&amp;gt; is the diff ID.&lt;br /&gt;
Additionally, you can use the value of the &amp;lt;code&amp;gt;oldid&amp;lt;/code&amp;gt; parameter to get the diff of that revision against the previous one.&lt;br /&gt;
&lt;br /&gt;
== Components to a diff ==&lt;br /&gt;
&lt;br /&gt;
Below is a visual representation of the important components of a diff page which you will see when viewing the difference between two versions.&lt;br /&gt;
&lt;br /&gt;
[[File:Diff-components.svg|thumb|Components of a diff|none|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This interactive example shows the top of the diff page (some of the links are dummy links).&lt;br /&gt;
The older revision is shown on the left, the newer revision on the right.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border:1px solid; padding:1em;&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;diff diff-contentalign-{{dir|{{pagelang2}}|right|left}} diff-editfont-monospace&amp;quot; border=&amp;quot;0&amp;quot; style=&amp;quot;border-spacing:4px; table-layout:fixed; width:98%&amp;quot;&lt;br /&gt;
|- style=&amp;quot;height:1px&amp;quot; &amp;lt;!-- dummy row for column widths --&amp;gt;&lt;br /&gt;
| style=&amp;quot;width:2%&amp;quot; |&lt;br /&gt;
| style=&amp;quot;width:48%&amp;quot; |&lt;br /&gt;
| style=&amp;quot;width:2%&amp;quot; |&lt;br /&gt;
| style=&amp;quot;width:48%&amp;quot; |&lt;br /&gt;
|- class=&amp;quot;diff-title&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; class=&amp;quot;diff-otitle diff-side-deleted&amp;quot; | &amp;lt;div class=&amp;quot;mw-diff-otitle1&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;[[Special:MyLanguage/Help:Page history|{{int|revisionasof|22:32, 3 {{int|august}} 2003}}]] {{int|parentheses|[[Special:MyLanguage/Help:Editing|{{int|editold}}]]}}&amp;lt;/strong&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle2&amp;quot;&amp;gt;[[User:Tim Starling|Tim Starling]] {{int|parentheses|[[User talk:Tim Starling|{{int|talkpagelinktext}}]] {{int|pipe-separator}} [[Special:MyLanguage/Help:User contributions|{{int|contribslink}}]]}}&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle3&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;comment&amp;quot;&amp;gt;{{int|parentheses|[[Special:MyLanguage/Help:Edit summary|Edit summaries]] in diffs are great}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle4&amp;quot;&amp;gt;[[Special:MyLanguage/Help:Page history|{{int|previousdiff}}]]&amp;lt;/div&amp;gt;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; class=&amp;quot;diff-otitle diff-side-added&amp;quot; |&amp;lt;div class=&amp;quot;mw-diff-otitle1&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;[[Special:MyLanguage/Help:Page history|{{int|revisionasof|00:10, 18 {{int|august}} 2003}}]] {{int|parentheses|[[Special:MyLanguage/Help:Editing|{{int|editold}}]]}} {{int|parentheses|[[Special:MyLanguage/Manual:Reverts|{{int|editundo}}]]}} {{int|parentheses|[[Special:MyLanguage/Extension:Thanks|{{int|thanks-thank}}]]}}&amp;lt;/strong&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle2&amp;quot;&amp;gt;[[User:Angela|Angela]] {{int|parentheses|[[User_talk:Angela|{{int|talkpagelinktext}}]] | [[Special:MyLanguage/Help:User contributions|{{int|contribslink}}]]}}&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;span class=&amp;quot;mw-rollback-link&amp;quot;&amp;gt;[[Special:MyLanguage/Manual:Rollback|{{int|rollbacklinkcount|1}}]]&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle3&amp;quot;&amp;gt;&amp;lt;abbr class=&amp;quot;minoredit&amp;quot; title=&amp;quot;{{int|recentchanges-label-minor}}&amp;quot;&amp;gt;{{int|minoreditletter}}&amp;lt;/abbr&amp;gt; &amp;lt;span class=&amp;quot;comment&amp;quot;&amp;gt;{{int|parentheses|correction, + [[MediaWiki User&amp;#039;s Guide]]}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle4&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; class=&amp;quot;diff-lineno&amp;quot; | {{int|lineno|{{formatnum:8}}}}&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; class=&amp;quot;diff-lineno&amp;quot; | {{int|lineno|{{formatnum:8}}}}&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;diff-marker&amp;quot; | &amp;amp;#160;&lt;br /&gt;
| class=&amp;quot;diff-context diff-side-deleted&amp;quot; | For sysops and those with the rollback flag, a revert button is shown allowing them to revert from the new version to the old one.&lt;br /&gt;
| class=&amp;quot;diff-marker&amp;quot; | &amp;amp;#160;&lt;br /&gt;
| class=&amp;quot;diff-context diff-side-deleted&amp;quot; | For sysops and those with the rollback flag, a revert button is shown allowing them to revert from the new version to the old one.&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;diff-marker&amp;quot; | −&lt;br /&gt;
| class=&amp;quot;diff-deletedline diff-side-deleted&amp;quot; | This is only shown when viewing the diff between the &amp;lt;del style=&amp;quot;color: black&amp;quot; class=&amp;quot;diffchange diffchange-inline&amp;quot;&amp;gt;current&amp;lt;/del&amp;gt; version and the one &amp;lt;del style=&amp;quot;color: black&amp;quot; class=&amp;quot;diffchange diffchange-inline&amp;quot;&amp;gt;immediately preceding it&amp;lt;/del&amp;gt;.&lt;br /&gt;
| class=&amp;quot;diff-marker&amp;quot; | +&lt;br /&gt;
| class=&amp;quot;diff-addedline diff-side-added&amp;quot; | This is only shown when viewing the diff between the &amp;lt;ins style=&amp;quot;color: black&amp;quot; class=&amp;quot;diffchange diffchange-inline&amp;quot;&amp;gt;recent&amp;lt;/ins&amp;gt; version&amp;lt;ins style=&amp;quot;color: black&amp;quot; class=&amp;quot;diffchange diffchange-inline&amp;quot;&amp;gt;&amp;amp;nbsp;of a page&amp;lt;/ins&amp;gt; and&amp;lt;ins style=&amp;quot;color:black&amp;quot; class=&amp;quot;diffchange diffchange-inline&amp;quot;&amp;gt;&amp;amp;nbsp;the last version by an author other than&amp;lt;/ins&amp;gt; the one &amp;lt;ins style=&amp;quot;color: black&amp;quot; class=&amp;quot;diffchange diffchange-inline&amp;quot;&amp;gt;of the most current version&amp;lt;/ins&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;diff-marker&amp;quot; | &amp;amp;#160; &lt;br /&gt;
| class=&amp;quot;diff-context diff-side-deleted&amp;quot; | This example shows the top of the diff page, with the links described above.&lt;br /&gt;
| class=&amp;quot;diff-marker&amp;quot; | &amp;amp;#160; &lt;br /&gt;
| class=&amp;quot;diff-context diff-side-deleted&amp;quot; | This example shows the top of the diff page, with the links described above.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; class=&amp;quot;diff-lineno&amp;quot; | {{int|lineno|{{formatnum:25}}}}&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; class=&amp;quot;diff-lineno&amp;quot; | {{int|lineno|{{formatnum:25}}}}&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;diff-marker&amp;quot; | &amp;amp;#160; &lt;br /&gt;
| class=&amp;quot;diff-context diff-side-deleted&amp;quot; | &amp;lt;nowiki&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| class=&amp;quot;diff-marker&amp;quot; | &amp;amp;#160; &lt;br /&gt;
| class=&amp;quot;diff-context diff-side-deleted&amp;quot; | &amp;lt;nowiki&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
| class=&amp;quot;diff-marker&amp;quot; | +&lt;br /&gt;
| class=&amp;quot;diff-addedline diff-side-added&amp;quot; | &amp;lt;nowiki&amp;gt;[[MediaWiki User&amp;#039;s Guide]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
| class=&amp;quot;diff-marker&amp;quot; | +&lt;br /&gt;
| class=&amp;quot;diff-addedline diff-side-added&amp;quot; | &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Unchanged text ===&lt;br /&gt;
&lt;br /&gt;
Unchanged text is dark grey on light grey (only parts before and after changed text are shown).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;diff diff-contentalign-{{dir|{{pagelang2}}|right|left}} diff-editfont-monospace&amp;quot; style=&amp;quot;border-collapse:separate&amp;quot;&lt;br /&gt;
|+ Colour key&lt;br /&gt;
! align=&amp;quot;center&amp;quot; width=&amp;quot;200&amp;quot; | Previous diff&lt;br /&gt;
! align=&amp;quot;center&amp;quot; width=&amp;quot;200&amp;quot; | Newer diff&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;diff-context diff-side-deleted&amp;quot; | Unchanged&lt;br /&gt;
| class=&amp;quot;diff-context diff-side-added&amp;quot; | Unchanged&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Moved text ===&lt;br /&gt;
Identical text that has moved from one place to another is usually represented as added and removed text.&lt;br /&gt;
On MediaWiki installations using {{ll|Wikidiff2}}, there may be an arrow icon more clearly indicating where the moved text went to.&lt;br /&gt;
&lt;br /&gt;
=== Added text ===&lt;br /&gt;
Lines containing added text have a plus icon (&amp;#039;&amp;#039;&amp;#039;+&amp;#039;&amp;#039;&amp;#039;) before them.&lt;br /&gt;
The added words and characters are highlighted and in bold.&lt;br /&gt;
&lt;br /&gt;
=== Removed text ===&lt;br /&gt;
Lines containing removed text have a minus icon (&amp;#039;&amp;#039;&amp;#039;−&amp;#039;&amp;#039;&amp;#039;) before them.&lt;br /&gt;
The removed words and characters are highlighted and in bold.&lt;br /&gt;
&lt;br /&gt;
=== Replaced text ===&lt;br /&gt;
&lt;br /&gt;
We can see what has been replaced with new content when there&amp;#039;s a + icon and a − icon next to the phrase where the change happened.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Inserted and removed text is highlighted with the border color and in bold.&lt;br /&gt;
Where whole paragraphs have been removed or inserted, no highlighting or bolding is applied and the other side is blank.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;diff diff-contentalign-{{dir|{{pagelang2}}|right|left}} diff-editfont-monospace&amp;quot; style=&amp;quot;border-collapse:separate&amp;quot;&lt;br /&gt;
|+Colour key&lt;br /&gt;
!align=&amp;quot;center&amp;quot; width=&amp;quot;200&amp;quot;| Old revision&lt;br /&gt;
!align=&amp;quot;center&amp;quot; width=&amp;quot;200&amp;quot;| New revision&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;diff-deletedline diff-side-deleted&amp;quot; | Paragraph changed&lt;br /&gt;
| class=&amp;quot;diff-addedline diff-side-added&amp;quot; | Paragraph changed&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;diff diff-contentalign-{{dir|{{pagelang2}}|right|left}} diff-editfont-monospace&amp;quot; style=&amp;quot;border-collapse:separate&amp;quot;&lt;br /&gt;
|+Colour key&lt;br /&gt;
!align=&amp;quot;center&amp;quot; width=&amp;quot;200&amp;quot;| Old revision&lt;br /&gt;
!align=&amp;quot;center&amp;quot; width=&amp;quot;200&amp;quot;| New revision&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;diff-deletedline diff-side-deleted&amp;quot; | Paragraph removed&lt;br /&gt;
| class=&amp;quot;diff-empty diff-side-delete&amp;quot; | &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;diff-empty diff-side-added&amp;quot; | &amp;amp;nbsp;&lt;br /&gt;
| class=&amp;quot;diff-addedline diff-side-added&amp;quot; | Paragraph added&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;diff diff-contentalign-{{dir|{{pagelang2}}|right|left}} diff-editfont-monospace&amp;quot; style=&amp;quot;border-collapse:separate&amp;quot;&lt;br /&gt;
|+Colour key&lt;br /&gt;
!align=&amp;quot;center&amp;quot; width=&amp;quot;200&amp;quot;| Old revision&lt;br /&gt;
!align=&amp;quot;center&amp;quot; width=&amp;quot;200&amp;quot;| New revision&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;diff-deletedline diff-side-deleted&amp;quot; | &amp;lt;del class=&amp;quot;diffchange diffchange-inline&amp;quot; style=&amp;quot;color:black&amp;quot;&amp;gt;Removed characters&amp;lt;/del&amp;gt;&lt;br /&gt;
| class=&amp;quot;diff-addedline diff-side-added&amp;quot; | &amp;lt;ins class=&amp;quot;diffchange diffchange-inline&amp;quot; style=&amp;quot;color:black&amp;quot;&amp;gt;Added characters&amp;lt;/ins&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Linking to a diff ==&lt;br /&gt;
&lt;br /&gt;
Diffs can be linked to by copying the URL while viewing the diff — this URL has two parameters, &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;oldid&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Linking to a diff from outside a wiki can be done by using the full URL, for example:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mediawiki.org/w/index.php?diff=1242287&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The diff [[Special:MyLanguage/Help:Special pages|special page]] at [[Special:Diff]] makes it easier to create shorter URLs which redirect to diffs.&lt;br /&gt;
&lt;br /&gt;
From within a wiki, these links can take the following forms:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Special:Diff/1242287]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → [[Special:Diff/1242287]] – Shows the diff to the previous revision of the same page.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Special:Diff/1242287/prev]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → [[Special:Diff/1242287/prev]] – Shows the diff to the previous revision of the same page.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Special:Diff/1242287/next]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → [[Special:Diff/1242287/next]] – Shows the diff to the next revision of the same page.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Special:Diff/1242287/cur]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → [[Special:Diff/1242287/cur]] – Shows the diff to the current revision of the same page.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Special:Diff/1242286/1242287]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → [[Special:Diff/1242286/1242287]] – Shows the diff between the specified revisions of the same page which may also be reversed, e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Special:Diff/1242287/1242286]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → [[Special:Diff/1242287/1242286]], though one should avoid this.&lt;br /&gt;
&lt;br /&gt;
These links may be used in the [[Special:MyLanguage/Help:Edit summary|edit summary]] as well as being adapted like any other internal links, e.g. {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;Special:Diff/1242286/1242287{{!}}$1&amp;lt;nowiki&amp;gt;]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → [[Special:Diff/1242286/1242287|$1]]|see this diff}}.&lt;br /&gt;
&lt;br /&gt;
For example, the full URL &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[https://mediawiki.org/w/index.php?diff=1242287 1242287]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; could also be written as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Special:Diff/1242287|1242287]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
By default, the later revision of the page is displayed in full below the diff — this can be turned off via a [[Special:MyLanguage/Help:Preferences|preference]] (&amp;lt;code&amp;gt;{{int|tog-diffonly}}&amp;lt;/code&amp;gt;) or by setting &amp;lt;code&amp;gt;diffonly=1&amp;lt;/code&amp;gt; in the URL.&lt;br /&gt;
Links to diffs without the page text can be created:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{canonicalurl:Special:Diff/1242287|diffonly=1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{canonicalurl:Special:Diff/1242287|diffonly=1}}&lt;br /&gt;
&lt;br /&gt;
== Inline diffs ==&lt;br /&gt;
{{MW 1.35|and later}}&lt;br /&gt;
Since MediaWiki 1.35, an inline diff (also known as a [[w:unified diff|unified diff]]) is available.&lt;br /&gt;
As of 2022 this is only available with the {{ll|wikidiff2}} engine.&lt;br /&gt;
Inline diffs can be accessed by passing the &amp;lt;code&amp;gt;diff-type=inline&amp;lt;/code&amp;gt; parameter in the URL ([https://www.mediawiki.org/w/index.php?diff=1242287&amp;amp;diffmode=source&amp;amp;diff-type=inline example]).&lt;br /&gt;
&lt;br /&gt;
{{MW 1.41|and later}}&lt;br /&gt;
As of MediaWiki 1.41, a toggle was added to diff pages that allows users to switch between inline and two-column in the user interface. [[phab:T336716|T336716]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border:1px solid; padding:1em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--render inline diff legend --&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-table-prefix&amp;quot; dir=&amp;quot;ltr&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;color: black&amp;quot; class=&amp;quot;mw-diff-inline-legend&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;mw-diff-inline-legend-ins&amp;quot;&amp;gt;Content added&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;mw-diff-inline-legend-del&amp;quot;&amp;gt;Content deleted&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;diff diff-contentalign-{{dir|{{pagelang2}}|right|left}} diff-editfont-monospace&amp;quot; border=&amp;quot;0&amp;quot; style=&amp;quot;border-spacing:4px; table-layout:fixed; width:98%&amp;quot;&lt;br /&gt;
|- style=&amp;quot;height:1px&amp;quot; &amp;lt;!-- dummy row for column widths --&amp;gt;&lt;br /&gt;
| style=&amp;quot;width:2%&amp;quot; |&lt;br /&gt;
| style=&amp;quot;width:48%&amp;quot; |&lt;br /&gt;
| style=&amp;quot;width:2%&amp;quot; |&lt;br /&gt;
| style=&amp;quot;width:48%&amp;quot; |&lt;br /&gt;
|- class=&amp;quot;diff-title&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; class=&amp;quot;diff-otitle diff-side-deleted&amp;quot; | &amp;lt;div class=&amp;quot;mw-diff-otitle1&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;[[Special:MyLanguage/Help:Page history|{{int|revisionasof|22:32, 3 {{int|august}} 2003}}]] {{int|parentheses|[[Special:MyLanguage/Help:Editing|{{int|editold}}]]}}&amp;lt;/strong&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle2&amp;quot;&amp;gt;[[User:Tim Starling|Tim Starling]] {{int|parentheses|[[User talk:Tim Starling|{{int|talkpagelinktext}}]] {{int|pipe-separator}} [[Special:MyLanguage/Help:User contributions|{{int|contribslink}}]]}}&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle3&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;comment&amp;quot;&amp;gt;{{int|parentheses|[[Special:MyLanguage/Help:Edit summary|Edit summaries]] in diffs are great}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle4&amp;quot;&amp;gt;[[Special:MyLanguage/Help:Page history|{{int|previousdiff}}]]&amp;lt;/div&amp;gt;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; class=&amp;quot;diff-otitle diff-side-added&amp;quot; |&amp;lt;div class=&amp;quot;mw-diff-otitle1&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;[[Special:MyLanguage/Help:Page history|{{int|revisionasof|00:10, 18 {{int|august}} 2003}}]] {{int|parentheses|[[Special:MyLanguage/Help:Editing|{{int|editold}}]]}} {{int|parentheses|[[Special:MyLanguage/Manual:Reverts|{{int|editundo}}]]}} {{int|parentheses|[[Special:MyLanguage/Extension:Thanks|{{int|thanks-thank}}]]}}&amp;lt;/strong&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle2&amp;quot;&amp;gt;[[User:Angela|Angela]] {{int|parentheses|[[User_talk:Angela|{{int|talkpagelinktext}}]] | [[Special:MyLanguage/Help:User contributions|{{int|contribslink}}]]}}&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;span class=&amp;quot;mw-rollback-link&amp;quot;&amp;gt;[[Special:MyLanguage/Manual:Rollback|{{int|rollbacklinkcount|1}}]]&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle3&amp;quot;&amp;gt;&amp;lt;abbr class=&amp;quot;minoredit&amp;quot; title=&amp;quot;{{int|recentchanges-label-minor}}&amp;quot;&amp;gt;{{int|minoreditletter}}&amp;lt;/abbr&amp;gt; &amp;lt;span class=&amp;quot;comment&amp;quot;&amp;gt;{{int|parentheses|correction, + [[MediaWiki User&amp;#039;s Guide]]}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-otitle4&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-diff-inline-moved mw-diff-inline-moved-destination mw-diff-inline-moved-upwards&amp;quot;&amp;gt;&lt;br /&gt;
For sysops and those with the rollback flag, a revert button is shown allowing them to revert from the new version to the old one.&lt;br /&gt;
&lt;br /&gt;
This is only shown when viewing the diff between the &amp;lt;del style=&amp;quot;color:black&amp;quot; class=&amp;quot;mw-diff-inline-moved&amp;quot;&amp;gt;current&amp;lt;/del&amp;gt; version and the one &amp;lt;ins style=&amp;quot;color: black&amp;quot;&amp;gt;of a page and the last version by an author other than the one of the most current version.&amp;lt;/ins&amp;gt;.&lt;br /&gt;
This example shows the top of the diff page, with the links described above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ins style=&amp;quot;color: black&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;[[MediaWiki User&amp;#039;s Guide]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/ins&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ins style=&amp;quot;color: black; font-family: &amp;#039;Menlo&amp;#039;,&amp;#039;Consolas&amp;#039;,&amp;#039;Liberation Mono&amp;#039;,&amp;#039;Fira Code&amp;#039;,&amp;#039;Courier New&amp;#039;,monospace;&lt;br /&gt;
    font-size: 87.5%;&amp;quot; title=&amp;quot;Content added&amp;quot;&amp;gt;↲ newline&amp;lt;/ins&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following changes were introduced for inline diff:&lt;br /&gt;
&lt;br /&gt;
* Legends and tooltips that explain the blue and yellow highlights. ([[phab:T324759|T324759]])&lt;br /&gt;
* Annotation that represent when one or more lines are added or deleted. ([[phab:T330247|T330247]])&lt;br /&gt;
&lt;br /&gt;
== How to report bugs? ==&lt;br /&gt;
&lt;br /&gt;
Bugs should be [[Special:MyLanguage/How to report a bug|reported on Phabricator]] under the {{phabricator inline tag|MediaWiki-Page-diffs}} tag.&lt;br /&gt;
&lt;br /&gt;
== User Preferences ==&lt;br /&gt;
&lt;br /&gt;
The following user [[Special:MyLanguage/Help:Preferences|preferences]] are available in the &amp;lt;code&amp;gt;{{int|prefs-diffs}}&amp;lt;/code&amp;gt; section of the &amp;lt;code&amp;gt;{{int|prefs-rendering}}&amp;lt;/code&amp;gt; preferences tab:&lt;br /&gt;
&amp;lt;section begin=&amp;quot;prefs&amp;quot; /&amp;gt;&lt;br /&gt;
; {{int|tog-diffonly}}&lt;br /&gt;
: Toggle the display of the page text below the diff. This text is the later of the two revisions of the page.&lt;br /&gt;
; {{int|tog-norollbackdiff}}&lt;br /&gt;
: Whether to show the diff of the rolled back revision after a rollback.&lt;br /&gt;
&lt;br /&gt;
Some extensions also add their own preferences related to diffs.&lt;br /&gt;
One such extension is {{ll|Extension:RevisionSlider}}, which can be disabled in preferences using the &amp;lt;code&amp;gt;{{int|revisionslider-preference-disable}}&amp;lt;/code&amp;gt; preference in that section.&lt;br /&gt;
&amp;lt;section end=&amp;quot;prefs&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{ll|Help:History}} – Navigating and understanding page history.&lt;br /&gt;
* {{ll|Visual diffs}} – Diffs in the VisualEditor and VisualDiff extensions.&lt;br /&gt;
{{Help}}&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
</feed>