Changes

Jump to: navigation, search

Help:Diff

3,203 bytes added, 01:48, 21 August 2006
no edit summary
{{Hi}}
{{handbook sidebar|reader toc}}


A '''diff''' is the difference between two versions of page. It can be viewed by clicking ''cur'' or ''last'' in the [[en:Wikipedia:Page history|page history]] or on the [[MediaWiki User's Guide: The Recent Changes page|Recent Changes page]]. The diff is also shown during an [[MediaWiki User's Guide: Edit conflict|edit conflict]] so you can see exactly what you need to reintegrate.


==How it looks ==
The two versions are shown side-by-side. The old version is yellow and the new version is green. In left-to-right languages, the old version on the left. This is reversed in [[RTL|right-to-left]] languages. Text removed is shown in red on the old version. New text is shown in red on the new version.

The diff shows differences per line. Some editors find that adding manual line breaks improves the diff function.

As well as showing the difference between versions, the diff page has links to the user page and talk page of the user of edited both the last and current version. A link to the users' contributions lists are also shown. For sysops, a [[en:Wikipedia:revert|rollback]] button is shown allowing them to revert from the new version to the old one. This is only shown when viewing the diff between the recent version of a page and the last version by an author other than the one of the most current version.

[[MediaWiki User's Guide: Edit summary|edit summaries]] are also shown on the diff page. These appear in the row beneath the user names. If the user has used links in their edit summary, these act as links on the diff page as well.

This example shows the top of the diff page, with the links described above.

{| width=100%
|- align="center" bgcolor="#cccccc"
| width=50%|<strong>Revision as of 22:32, Aug 03, 2003</strong><br/>
[[User:Angela|Angela]] ([[User_talk:Angela|Talk]] | [[Special:Contributions/Angela|contribs]])<br/>
[[MediaWiki User's Guide: Edit summary|Edit summaries]] in diffs are great
|
<strong>Revision as of 00:10, Aug 18, 2003</strong><br/>
[[User:Tim Starling|Tim Starling]] ([[User_talk:Tim Starling|Talk]] | [[Special:Contributions/Tim_Starling|contribs]])&nbsp;&nbsp;&nbsp;&nbsp;'''[''''''[[Main Page|rollback]]'''''']'''<br/>
Reverted edits by Angela to last version by Anthere
|}

When moving or copying a piece of text within a page or from another page, and also making other edits, it is useful to separate these edits. This way the diff function can be usefully applied for checking these other edits.

==Width==

After the table of differences, the latest of the two compared versions is shown fully.

In the case of the Classic skin with quickbar, the diff page does not have the quickbar, to provide more space. Therefore the diff page is also useful for viewing the page on full screen width, without changing the preferences.

With the Monobook skin the panels on the left are also on the diff page.

[[en:Page widening|Page widening]] is more likely on a diff page, because there are two columns, but also because URLs (long ones are often the cause of page widening) are not hidden.

==External link==

*http://cvs.sourceforge.net/viewcvs.py/wikipedia/phpwiki/newcodebase/DifferenceEngine.php
Root Admin, Bots, Bureaucrats, flow-bot, oversight, Administrators, Widget editors
24,656
edits

Navigation menu