Sandbox comparisons

edit
1. oldid
X{{diff2        |123}}X
X[1]X
X[2]X
Expanded code
X<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=&diff=prev&oldid=123]</span>X
X<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=&diff=prev&oldid=123]</span>X
2. oldid & label
X{{diff2        |123|Foo}}X
XFooX
XFooX
Expanded code
X<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=&diff=prev&oldid=123 Foo]</span>X
X<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=&diff=prev&oldid=123 Foo]</span>X
3. oldid & section anchor & label
X{{diff2        |123|Foo|Bar}}X
XBarX
XBarX
Expanded code
X<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=&diff=prev&oldid=123#Foo Bar]</span>X
X<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=&diff=prev&oldid=123#Foo Bar]</span>X
4. oldid & section anchor & empty label
X{{diff2        |123|Foo|}}X
X[3]X
X[4]X
Expanded code
X<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=&diff=prev&oldid=123#Foo]</span>X
X<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=&diff=prev&oldid=123#Foo]</span>X
5. oldid & empty section anchor & label
X{{diff2        |123||Bar}}X
XBarX
XBarX
Expanded code
X<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=&diff=prev&oldid=123# Bar]</span>X
X<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=&diff=prev&oldid=123# Bar]</span>X

Comparison of {{Diff2}}, {{Diff||}} and Special:Diff/prev/

edit

Examples using {{Diff2}}

edit
Code Output
{{Diff2|123456789}} [5]
{{Diff2|123456789|SomeUser's edit to "Some article name"}} SomeUser's edit to "Some article name"
{{Diff2|123456789|External links|SomeUser's edit to "Some article name"}} SomeUser's edit to "Some article name"
{{Diff2|123456789|External links|}} [6]

Examples using {{Diff}} and empty page parameter

edit
Code Output
{{Diff||123456789}} [7]
{{Diff||123456789|SomeUser's edit to "Some article name"}} edit to "Some article name"
{{Diff||123456789|External links|SomeUser's edit to "Some article name"}} links SomeUser's edit to "Some article name"
{{Diff|||123456789|External links|}} links
Code Output
[[Special:Diff/123456789/prev]] Special:Diff/123456789/prev
[[Special:Diff/123456789/prev|SomeUser's edit to "Some article name"]] SomeUser's edit to "Some article name"
[[Special:Diff/123456789/prev#External links|SomeUser's edit to "Some article name"]] SomeUser's edit to "Some article name"
[[Special:Diff/123456789/prev#External links]] Special:Diff/123456789/prev#External links