Template:Wp-diff2
From Wikipedia, the free encyclopedia
[{{fullurl:{{{page}}}|diff=prev&oldid={{{oldid}}}}} ]
Creates a standard external link to a Wikipedia diff page.
Contents |
[edit] Usage
[edit] Code
{{wp-diff2
| page =
| oldid =
| diff =
| title =
}}
[edit] Fields
- page — Full title of page to be diffed
- oldid — "oldid" field of diff URL. ID of edit to diff
- diff — "diff" field of diff URL (optional)
- Use
prevor omit to compare oldid to immediate previous vesion - Use
nextto compare oldid to immediate next version - Use ID of newer edit to compare to oldid
- Use
- title — Link text (optional, omit to use standard external link numbering)
[edit] Examples
| Diff type | Code | Result |
|---|---|---|
| Previous | {{wp-diff2 | page=Template:wp-diff | oldid=65748127 | title=Diff #1}} |
Diff #1 |
| Next | {{wp-diff2 | page=Template:wp-diff | oldid=65748127 | diff=next | title=Diff #2}} |
Diff #2 |
| Newer | {{wp-diff2 | page=Template:wp-diff | oldid=65748127 | diff=65754364 | title=Diff #3}} |
Diff #3 |
| No Title | {{wp-diff2 | page=Template:wp-diff | oldid=65748127 | diff=65754364}} |
[1] |
[edit] See also
- {{wp-diff}}

