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;1=page&#124;2=diff&#124;3=oldid&#124;4=label&#125;&#125;


 * Current default:&#123;&#123;diff&#124;1=Main Page&#124;2=&#124;3=&#124;4= Last revision of Main Page &#125;&#125; &rarr;


 * You can also use the named variables "page", "diff", "oldid", and "label".:&#123;&#123;diff&#124;page=Main Page&#124;diff=cur&#124;oldid=&#124;label= Last change to Main Page &#125;&#125; &rarr;


 * As long as the values do not contain equals signs, you can skip the variable names/numbers.:&#123;&#123;diff&#124;Main Page&#124;cur&#124;&#124; Last change to Main Page &#125;&#125; &rarr;