Template:Diff/doc

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.

Every historical version of a page has a revision ID, which you can find from the history of the page. Given a page name and one or two revision IDs, you can construct links to several types of diffs.

Usage

 * &#123;&#123; diff &#124; page &#124; diff &#124; oldid &#124; label &#125;&#125;


 * page – The title of the page.
 * diff – The ID or keyword that is used against the base ID. Possible keywords are:
 * cur – compare with the current version of a page.
 * prev – compare with the previous version of a page.
 * next – compare with the next version of a page.
 * oldid – The base ID onto which the diff is generated.
 * label – Text to display as link. No label will give a numbered link.

All parameters are optional. Omitted parameters must be empty (by using a double pipe). You can also use the named variables page=</tt>, diff=</tt>, oldid=</tt> and label=</tt>