https://bugzilla.wikimedia.org/show_bug.cgi?id=23621

           Summary: Diff two pages
           Product: MediaWiki
           Version: 1.17-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: need-review, patch
          Severity: enhancement
          Priority: Normal
         Component: History/Diffs
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: hart...@videolan.org


Created an attachment (id=7393)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=7393)
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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to