Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Difflink: Difference between revisions

Template page
Catrope (talk | contribs)
First draft of template that could be useful for easy diff links
 
Catrope (talk | contribs)
m oops
Line 15: Line 15:


== Examples ==
== Examples ==
* {{tlp|{{PAGENAME}}|1=title=Main Page|2=oldid=120570|3=diff=122690}}
* {{tlp|{{PAGENAME}}|2=title=Main Page|3=oldid=120570|4=diff=122690|5=text=Difference between r120570 and r122690}}
** {{{{PAGENAME}}|title=Main Page|oldid=120570|diff=122690}}
** {{{{PAGENAME}}|title=Main Page|oldid=120570|diff=122690}}
* {{tlp|{{PAGENAME}}|1=title=Main Page|2=oldid=136389|3=diff=next}}
* {{tlp|{{PAGENAME}}|2=title=Main Page|3=oldid=136389|4=diff=next|5=text=Difference between r136389 and the next rev}}
** {{{{PAGENAME}}|title=Main Page|old=136389|diff=next}}
** {{{{PAGENAME}}|title=Main Page|old=136389|diff=next}}


[[Category:Internal link templates]]
[[Category:Internal link templates]]
</noinclude>
</noinclude>

Revision as of 14:06, 21 February 2008

Documentation

This template creates a link to a difference listing between two versions of an article.

Required parameters

  • text: Link text
  • oldid: ID of base revision to diff (the older revision)

Optional parameters

  • title: Name of the page the revisions belong to. Defaults to the current page if unset
  • diff: ID of the revision to diff against (the newer revision). Defaults to cur if unset
    • If set to cur, use the current revision
    • If set to prev, use the previous revision (the one just before oldid)
    • If set to next, use the next revision (the one just after oldid)

Examples

  • {{Difflink|title=Main Page|oldid=120570|diff=122690|text=Difference between r120570 and r122690}}
  • {{Difflink|title=Main Page|oldid=136389|diff=next|text=Difference between r136389 and the next rev}}