Hi, Fundraising would like the ability to snapshot or retrieve a CentralNotice banner exactly as it was rendered at an earlier time, including the old revisions of templates, which is tricky and AFAICT not supported by MediaWiki-core.
I know this issue has come up before but it looks like development is external and has died out. The most relevant code seems to be Extension:BackwardsTimeTravel, which adds some expensive-looking hook callbacks, and Extension:Memento, which is too far into the future and amends how HTTP operates.
If ours is an unsupported usage, we'll have to implement a horrible kludge such as taking a recursive snapshot of all transcluded pages.
Thanks, Adam
On 6/30/14, Adam Wight awight@wikimedia.org wrote:
Hi, Fundraising would like the ability to snapshot or retrieve a CentralNotice banner exactly as it was rendered at an earlier time, including the old revisions of templates, which is tricky and AFAICT not supported by MediaWiki-core.
Exact is hard. CSS changes, javascript changes, central notice extension changes, etc.
But if you want to just implement this just in central notice in a limited way, take a look at BeforeParserFetchTemplateAndtitle hook, the setTemplateCallback method of ParserOptions, and the BeforeParserFetchFileAndTitle hook (The $options array for that hook can set a time and sha1 key).
--bawolff
On Jun 30, 2014, at 5:09 PM, Adam Wight <awight@wikimedia.orgmailto:awight@wikimedia.org> wrote:
Hi, Fundraising would like the ability to snapshot or retrieve a CentralNotice banner exactly as it was rendered at an earlier time, including the old revisions of templates, which is tricky and AFAICT not supported by MediaWiki-core.
I know this issue has come up before but it looks like development is external and has died out. The most relevant code seems to be Extension:BackwardsTimeTravel, which adds some expensive-looking hook callbacks, and Extension:Memento, which is too far into the future and amends how HTTP operates.
The Memento extension does sound like it will solve your issue. We created datetime negotiation to solve problems like this for the Internet as a whole.
The Memento extension renders past versions of pages, including templates. We also added an experimental feature to the extension that allows it to render past versions of images when you visit an oldid page, it can be added by installing the extension and setting $wgMementoTimeNegotiationForThumbnails = true. The image functionality is based off of the oldid revision date, so it does not depend on the HTTP headers.
To use the full features of Memento, you can install the Chrome Extension[1]. This will work with the MediaWiki Extension to render the past version of the page.
We documented the issues (and solutions) in rendering past versions of pages at WikiConference USA 2014 [2].
Memento uses existing HTTP features, so it doesn’t alter HTTP like SPDY. Installing the Memento Extension won’t affect any existing users, but will provide Memento users with some added functionality.
We’re a little curious: what did you mean by “is too far into the future”?
[1] http://bit.ly/memento-for-chrome [2] http://www.slideshare.net/shawnmjones/reconstructing-the-past-with-media-wik...
Shawn M. Jones Graduate Research Assistant Department of Computer Science Old Dominion University
Email: sjone@cs.odu.edumailto:sjone@cs.odu.edu Research group: http://ws-dl.blogspot.com Twitter: @shawnmjones
2014-07-01 1:54 GMT+02:00 Shawn Jones sjone@cs.odu.edu:
The Memento extension renders past versions of pages, including templates.
Sounds well, but the problem is that many of these templates are deleted. I guess not Even Memento will show them.
Will this extension be switched on for Wikipedia? There are many users, who wish to see the true earlier state of content (or other) pages when they look at page history, completely disregarding central notices. Would be great!
We approached Wikipedia in 2012-2013 about using the extension, but the technical evaluation led to the decision not to deploy [1], even though the RFC response was positive [2]. In response to this, we totally rewrote the extension and released version 2.0 [3] last month. The new extension was also thoroughly tested for performance impact. A technical report [4] describes our design choices, testing results, and challenges with reconstructing pages.
We’ve also written about the functionality that Memento can bring to Wikipedia [5], and demonstrated it in use at WikiConference USA 2014 [6] [7].
Currently, for Memento users, we have a proxy that simulates Memento compliance for Wikipedia. A demonstration is here [8]. It is not nearly as powerful as the extension. It cannot render old templates, old images, but only redirects to the oldid page. It also cannot provide metadata for use by robots. We had to build exceptions into the Chrome Extension to deal with this [9].
We’ve expended a lot of effort to bring web time travel to the greater web, paying special attention to MediaWiki/Wikipedia. It would be nice if it could be seriously considered for cases where the functionality it provides is required.
You mentioned that there are many users who wish to see the true earlier state of content. We’re looking for support from the community to make Memento in Wikipedia a reality.
Do you know which others would be interested?
[1] http://en.wikipedia.org/wiki/Wikipedia:Requests_for_comment/Memento [2] https://bugzilla.wikimedia.org/show_bug.cgi?id=34778 [3] https://www.mediawiki.org/wiki/Extension:Memento [4] http://arxiv.org/abs/1406.3876 [5] http://www.mementoweb.org/wikipedia/ [6] http://www.slideshare.net/shawnmjones/reconstructing-the-past-with-media-wik... [7] http://www.slideshare.net/shawnmjones/using-the-memento-mediawiki-extension-... [8] https://www.youtube.com/watch?v=WtZHKeFwjzk [9] http://bit.ly/memento-for-chrome
Shawn M. Jones Graduate Research Assistant Department of Computer Science Old Dominion University
Email: sjone@cs.odu.edumailto:sjone@cs.odu.edu Research group: http://ws-dl.blogspot.com Twitter: @shawnmjones
On Jul 1, 2014, at 1:11 AM, Bináris <wikiposta@gmail.commailto:wikiposta@gmail.com> wrote:
2014-07-01 1:54 GMT+02:00 Shawn Jones <sjone@cs.odu.edumailto:sjone@cs.odu.edu>:
The Memento extension renders past versions of pages, including templates.
Sounds well, but the problem is that many of these templates are deleted. I guess not Even Memento will show them.
Will this extension be switched on for Wikipedia? There are many users, who wish to see the true earlier state of content (or other) pages when they look at page history, completely disregarding central notices. Would be great! _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.orgmailto:Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Mon, Jun 30, 2014 at 6:09 PM, Adam Wight awight@wikimedia.org wrote:
Hi, Fundraising would like the ability to snapshot or retrieve a CentralNotice banner exactly as it was rendered at an earlier time, including the old revisions of templates, which is tricky and AFAICT not supported by MediaWiki-core.
For the record: This feature was requested on https://bugzilla.wikimedia.org/show_bug.cgi?id=35066 https://bugzilla.wikimedia.org/show_bug.cgi?id=851
Helder
wikitech-l@lists.wikimedia.org