Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules

Search

Donate to XOOPS!

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Git Google GUI hacks instant-zero jQuery module mygalleries news Nordic Olédrion oxygen PageRank PHP rmcommon security SEO simple-XOOPS Smarty sport tag Theme tutorial wiki xoops XoopsEngine ZendFramework

Top Tags

module (1) rmcommon (1)

New Users

Registering user

# 132951

seattlestart

Welcome to XOOPS!
[Main Page]

Help:Diff

From XOOPS Web Application System

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy

{{#if: Help|Template:H:h Help|Template:H:h Help}}

A diff is the difference between two versions of a page. It can be viewed from the page history: for every version there are potentially two radio buttons: the left column is for selecting the older version, the right column for selecting the newer one. Pressing "Compare selected versions" gives the difference between the two versions.

For special cases (the diff for a single edit or between an old and the current version) other possibilities are clicking cur or last in the page history or on the Recent Changes page. The diff is also shown during an edit conflict so you can see exactly what you need to reintegrate.

From MediaWiki 1.5 diff works also in preview, showing the difference between the currently stored version and the current version in the edit box

Contents

How it looks

This example shows the top of the diff page (some of the links are dummies).

Revision as of 22:32, Aug 03, 2003 (edit)

Tim Starling (Talk | contribs)
(Edit summaries in diffs are great)
Previous diff

Revision as of 00:10, Aug 18, 2003 (edit) (undo)

Angela (Talk | contribs)    [rollback]
m (correction, + MediaWiki User's Guide)
Next diff

Line 8: Line 8:
For sysops, a [[en:Wikipedia:revert|rollback]] button is shown allowing them to revert from the new version to the old one. 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 current version and the one immediately preceding it. + 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.
This example shows the top of the diff page, with links the described above. This example shows the top of the diff page, with links the described above.
Line 25: Line 25:
</table> </table>
+ [[MediaWiki User's Guide]]
+

The two versions are shown side-by-side. In left-to-right languages, the old version is on the left. This is reversed in right-to-left scripts. The links "Revision as of date" link to each version (from MediaWiki 1.4). If the newer version is the latest one, the link will be to the usual page and the wording will be "Current revision (date)" instead.

The (edit) link will take you to the page for editing that version. You may be warned that you are editing an out-of-date revision, and if you ignore it and continue, you will revert all the edits done after that revision.

The (undo) link on the newer revision's side will revert that specific edit. When you click the link you can check the diff page of the edit you are going to make, and the edit summary will be automatically filled in with the phrase of MediaWiki:undo-summary (MediaWiki:Undo-summary). This summary can be edited before you submit your edit. When you are undoing several edits at once, the auto-summary may not work. Though the link exists on all diff pages, it does not function when the revisions conflict. Often versions older than the current one can not be undone in this way. If it does not work, you will be told that the edit could not be undone and end up in the regular editing page of the current version.

Below that are links to the user page and talk page of the each user who edited the older or the newer versions. Links to the users' contribution lists are also shown. For sysops, a rollback button is also shown, allowing them to revert all of the edits done by that user. Note however that this is even shown when viewing the diff related to a version older than the latest, and when there is a newer edit done by another user, the rollback would not undo the change that is displayed.

Then the edit summaries are shown in a parenthesis. If the user has used links in their edit summary, these act as links on the diff page as well. If the editor marked the edit as an minor edit, m appears before the summary.

Previous diff and Next diff links make it possible to check earlier or later versions. When you are checking the differences between two versions in apart, you will be told that "(x intermediate revisions not shown.)".

On the old version side, paragraphs which differ from the new version are highlighted with yellow, and on the new version with green. Text removed within a paragraph is shown in red on the old version. New text within a paragraph is shown in red on the new version. If a whole paragraph was removed or added, the text is not red but just black, while the other side is blank (white). Unchanged text is black on grey, only parts before and after changed text is shown.

After the table of differences, the latest of the two compared versions is shown fully, unless one specifies in the preferences that this is not done.

URL

You can use URLs to show diff as well.

Open the revision of one page that you wish to compare to another, for example http://meta.wikimedia.org/w/index.php?title=Help:Diff&oldid=78722, and the revision of the other page that you wish to compare, for example http://meta.wikimedia.org/w/index.php?title=Main_Page&oldid=98420. Copy the oldid number of one page (&oldid=78722 in the first example) and replace the text oldid with diff: &diff=78722. Paste this string into the URL of the other page between that page's title and its oldid (&oldid=98420 in the second example), so you have something like this:

http://meta.wikimedia.org/w/index.php?title=Main_Page&diff=78722&oldid=98420

You may remove the page title (title=Main_Page in the example above) from the URL if you wish, but this is not necessary. The resulting diff will compare the given versions of the two pages [1].

To compare the current version of the page and a given oldid, you can put "current" after "diff=" instead of an oldid. For example, http://meta.wikimedia.org/w/index.php?title=Help:Diff&diff=current&oldid=124558 would compare the current version of this page with the version that has oldid 124558.

Deleted revisions

A sysop can see deleted revisions, but not directly apply a diff. For this purpose the page has to be (temporarily) restored (at least the two revisions between which the diff is desired).

Redirect

A diff is also used to render a redirect page as an ordinary page, showing also content after the redirect itself. The alternative is using preview.

Advices

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.

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

If searching the edit summaries does not help, to search for the edit between two revisions in which a particular change was made (to find the user, the edit summary, and the context is which the change was made), take the diff between 1/3 and 2/3 of the "search space". From the diff and/or the "2/3" version one can conclude in which of the three parts the change was made. This process can be repeated, every time reducing the search space by a factor 3. For changes in the wikitext which do not affect the rendered page, such as substitution of a template or editing HTML comments, this does not fully apply.

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.

On a diff page sometimes the display may be wider than the screen, because there are two columns, but also because URLs (especially long ones) are not hidden. In such cases, you must then use the horizontal scrollbar of the browser to see all the display.

Template:H:f

Retrieved from "http://xoops.org/modules/mediawiki/index.php/Help:Diff"

This page has been accessed 1,658 times. This page was last modified 05:20, 20 November 2007. Content is available under XOOPS Web Application System.