Template:Diff2/testcases

Sandbox comparisonsEdit

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 parameterEdit

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

Examples using Special:Diff//prevEdit

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