Template:Compare pages/doc

Similar to the Diff template, this template is intended to be useful for creating links to "diffs"; that is, links to pages that show the differences between two versions of a wiki page. The major difference is that is intended to show two versions of the same page, and this one creates a link to Special:ComparePages to show one version of two different pages.

Every version of a page has a revision ID, which you can find from the history of the page by looking at the link for the timestamp, which is of the form: https://en.wikipedia.org/w/index.php?title=SomePageName&oldid=442212827 The number after oldid= is the revision ID.

Given a page name and one or two revision IDs, you can construct links to several types of diffs.

Usage



 * page – The title of the page.
 * oldid – The revision ID onto which the diff is generated.

All parameters are required. Omitting parameters will return an error.