:Wikipedia:Complete diff and link guide

{{Wikipedia how to|WP:CDLG}}

{{3-tier diff}}

{{Linking and page manipulation|linking and diffs}}

What are diffs?

A diff is a permanent link to a single edit or set of edits, showing the difference between the before and after versions.

Timestamp limits

More complicated linking can be achieved using timestamps in the linking URLs. These take the form YYYYMMDDhhmmss, where YYYY is the year, MM is the month, DD is the day, hh is the hour, mm is the minutes, and ss is the seconds. For example, 20070814233520 is 23:35:20 on 14th August 2007. This allows specific linking to parts of a contributions list or a page or user log, as shown above. One use of these timestamps is to link to a specific range of edits by a user.

To link to a range of sequential edits by a user, find the date and time of the last edit and generate a timestamp as above. Then set the limit to the number of edits required. The results will change if any of the edits are deleted (e.g. if one of the articles that was edited gets deleted). An example of this is:

  • [{{fullurl:Special:Contributions|offset=20071015005300&limit=11&contribs=user&target=Carcharoth}} {{fullurl:Special:Contributions|offset=20071015005300&limit=11&contribs=user&target=Carcharoth}}], which generates a link to a list of 11 sequential edits up to 00:53 on 15th October 2007, selected to show a particular type of editing.

Similarly, a permanent diff to a specific revision history of a user page may be generated:

  • http://en.wikipedia.org/w/index.php?title=User_talk:Bishonen&action=history&limit=25&offset=20090417223300

This would give the last 25 items in the revision history of User talk:Bishonen before 2009-04-17, 22:33:00 UTC (22:33 UTC on 17 April 2009).

How to display only the diff

To the URL of the diff, append &diffonly=1

  • [{{fullurl:Wikipedia:Complete_diff_and_link_guide|diff=184213111&oldid=175800439}} a regular diff], showing the change and the resulting version of the page
  • [{{fullurl:Wikipedia:Complete_diff_and_link_guide|diff=184213111&oldid=175800439&diffonly=1}} only the diff], without showing the page

See also

{{Wikipedia technical help|collapsed}}

Category:Wikipedia link help