Difference between revisions of "Template:Difflink"

From The Lion King Wiki
Jump to: navigation, search
(Created page with "<includeonly><span class="plainlinks">[http://www.mylionking.com/w/index.php?diff={{{1}}}&oldid={{{2|prev}}} {{{3|{{{2}}}->{{{1}}}}}}]</span></includeonly><noinclude> {{/doc}} [[...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span class="plainlinks">[http://www.mylionking.com/w/index.php?diff={{{1}}}&oldid={{{2|prev}}} {{{3|{{{2}}}->{{{1}}}}}}]</span></includeonly><noinclude>
+
<includeonly><span class="plainlinks">[http://www.mylionking.com/w/index.php?{{#if:{{{2}}}|diff={{{2}}}&oldid={{{1|prev}}}|diff={{{1}}}}} {{{3|{{{1}}}->{{{2}}}}}}]</span></includeonly><noinclude>
 
{{/doc}}
 
{{/doc}}
 
[[Category:Internal link templates|{{PAGENAME}}]]
 
[[Category:Internal link templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 03:25, 8 April 2011

Template-info.png Documentation

This template supplies a link to diff page of two given revisions of an article.

Usage

The two revision numbers can be found by clicking "View history" on the top right of the page, selecting the revisions you wish to compare, clicking "Compare selected revisions" and getting the two numbers from the address bar ("diff" and "oldid").

Always put the earliest revision number as the first parameter (the smaller of the two numbers).

To find the difference between revision 3 and revision 300 of the same article:

{{difflink|3|300}}

Will Output: 3->300

I like {{difflink|3|300|this revision}} of the Simba article.

Will Output: I like this revision of the Simba article.

*Note, error handling is done by MediaWiki, not this template.

The above documentation is transcluded from Template:Difflink/doc. (edit | history)