Difference between revisions of "Template:diff"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m (Waldir moved page Template:Diff to Template:diff: page titles are case-sensitive now)
(mention usage of odlid parameter)
 
Line 4: Line 4:
  
 
'''Examples of usage:'''
 
'''Examples of usage:'''
* <code><nowiki>{{diff|123}}</nowiki></code>                  → {{diff|123}}
+
* <code><nowiki>{{diff|123}}</nowiki></code>                  → {{diff|1234}}
 
* <code><nowiki>{{diff|123|link text}}</nowiki></code>        → {{diff|123|link text}}
 
* <code><nowiki>{{diff|123|link text}}</nowiki></code>        → {{diff|123|link text}}
 
* <code><nowiki>{{diff|123|link text|section}}</nowiki></code> → {{diff|123|link text|section}} (the link contains an anchor to <code>#section</code>)
 
* <code><nowiki>{{diff|123|link text|section}}</nowiki></code> → {{diff|123|link text|section}} (the link contains an anchor to <code>#section</code>)
 +
* <code><nowiki>{{diff|123&oldid{{=}}120|link text}}</nowiki></code> → {{diff|123&oldid{{=}}120|link text}} (diff spanning multiple edits)
 
</noinclude>
 
</noinclude>

Latest revision as of 03:20, 4 December 2012


Use this template to link to diffs.

Examples of usage:

  • {{diff|123}}[1]
  • {{diff|123|link text}}link text
  • {{diff|123|link text|section}}link text (the link contains an anchor to #section)
  • {{diff|123&oldid{{=}}120|link text}}link text (diff spanning multiple edits)