Last modified: 2012-02-06 14:11:31 UTC
Links generated by /* section */ in summary should include &oldid= parameter.
Here's an interesting thought. Instead of &oldid= how about we add in a new &= parameter that takes a timestamp and gives the best revision it can find for said page at that timestamp. Then we make all [[links]] inside of edit summaries include a timestamp that matches the edit. Then all links will generally point to a fairly good representation of what the page was like at that point in time.
A snippet of JavaScript such as the following should provide the requested functionality: ---- $(function(){ mw.loader.using('mediawiki.util',function(){ var $list = $('#pagehistory').find('li'), $sectionLink = $list.find('.autocomment a'), oldUrl = $list.find('> a').attr('href'); $sectionLink.attr('href', function(i, val) { var parts = val.split( '#', 2 ); return parts.join( '?oldid=' + mw.util.getParamValue('oldid', oldUrl ) + '#' ); }); }); }); ----