Platonides schreef:
> Paolo Liberatore wrote:
>   
>> You can save some bandwidth (on large pages) by adding action=render
>> to a regular diff url, like this:
>>
>> http://en.wikipedia.org/w/index.php?action=render&title=Wikipedia:Administrators%27_noticeboard/Incidents&curid=5137507&diff=173915845&oldid=173911577
>>     
>
> Even better, you can get only the diff:
> http://en.wikipedia.org/w/index.php?action=render&title=Wikipedia:Administrators%27_noticeboard/Incidents&curid=5137507&diff=173915845&oldid=173911577&diffonly=1
>   
Both URLs give you an HTML-formatted diff. I discovered some plain diff 
generation code hiding in a dark corner, which will output diffs like:

1c1
< Changed line
---
> New line
5c5,6
< Changed line 2
---
> New line 2
> Added line

I'll start building an API module around it, so the functionality should be 
available in a couple of days.

Roan Kattouw (Catrope)



_______________________________________________
Mediawiki-api mailing list
[email protected]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to