Template:Diff4: Difference between revisions

From Sarkarverse
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<span class="plainlinks">[{{SERVER}}{{SCRIPTPATH}}/index.php?title=&diff={{{old|prev}}}&oldid={{{1|{{{new|<noinclude>|{{REVISIONID}}</noinclude>}}}}}}#{{anchorencode:{{{section|}}}}} {{{2|{{{title|}}}}}}]</span><noinclude>
<span class="plainlinks">[{{SERVER}}{{SCRIPTPATH}}/index.php?title=&diff={{{old|prev}}}&oldid={{{1|{{{new|<noinclude>|{{REVISIONID}}</noinclude>}}}}}}#{{anchorencode:{{{section|}}}}} {{{2|{{{title|}}}}}}]</span><noinclude>
{{under construction|notready=yes|comment=It is supposed to be a unified (though less flexible) alternative to {{tl|diff}}, {{tl|diff2}} and {{tl|diff3}}.}}
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 14:58, 5 June 2014

[1]

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

Code Output
{{diff4|123456789}} [2]
{{diff4|123456789|Pgp688's edit to "Boston Latin School"}} Pgp688's edit to "Boston Latin School"
{{diff4|123456789|External links after Pgp688's edit to "Boston Latin School"|section=External links}} External links after Pgp688's edit to "Boston Latin School"
{{diff4|123456789|old=4611964|Changes since first registered user's till Pgp688's edit to "Boston Latin School"}} Changes since first registered user's till Pgp688's edit to "Boston Latin School"

Unlike {{diff2}} this template doesn't guess users' intent. Be careful. Don't guess numbers: if IDs you specify belong to different pages, your link won't work:

Code Output
{{diff4|123456789|old=123456788|Changes between revisions 123456789 and 123456788}} Changes between revisions 123456789 and 123456788

Parameters

old
The revision to show difference since.
new (or first unnamed parameter, mandatory)
The revision to show difference up to.
title (or second unnamed parameter)
The caption of the link.
section
The section to be linked to (in new revision).

See also