add difftopage option
On the english wikipedia we have long since had the desire to create an easy diff between a Template and its Sandbox page.
At the moment this is pretty hard, because you can only diff two specific revisions if you want to diff between two pages. We currently use a JS to find those revisions and make the diff.
I made a quick patch that adds a difftopage option, to diff between the title= and difftopage=
The following works:
page1: r5 and r4
page2: r50 and r49
http://localhost/index.php?title=page1&difftopage=page2 Creates a diff between the most recent versions of the two pages, page1 left and page2 on the right
http://localhost/index.php?title=page1&difftopage=page2&oldid=4 Creates a diff between rev 4 of page1 and rev 50 of page2 on the right
http://localhost/index.php?title=page1&difftopage=page2&oldid=4&diff=49 Creates a diff between rev 4 of page1 and rev 49 of page2 on the right
The following may be unexpected however by users:
http://localhost/index.php?title=page1&difftopage=page2&diff=49 Creates a diff between rev 50 of page2 and rev 49 of page2 on the right. This is because if diff= specified and oldid is not, it is used as oldid instead, thus title= becomes irrelevant.
Version: 1.17.x
Severity: enhancement
Attached: