Last modified: 2005-11-27 10:26:59 UTC
Hallo! sceen dump from http://yi.wiktionary.org/wiki/user_talk:Gangleri follows {{REVISIONID}} is broken. Before {{REVISIONID}} was showing 0 in preview which was fine for me. Now {{REVISIONID}} will not show in preview any more *and* it will not show after saving *unless* the page is purged. This makes no sense to me. Tray to edit http://en.wikipedia.org/wiki/User:Gangleri/tests/REVISIONID or http://test.leuksman.com/view/User:Gangleri/tests/REVISIONID making minor changes. Just add some dots at the end and save. If you see a red {{REVISIONID}} tray to purge the page. regards reinhardt [[user:gangleri]]
Created attachment 1070 [details] screen dump for bug 03979
*note* {{REVISIONID}} originaly designed as a variable see http://meta.wikimedia.org/w/index.php?title=Help:Variable&oldid=222594#Depending_on_revision is now shown in "Templates used on this page:"
This makes {{REVISIONID}} useless until it's fixed.
Created attachment 1100 [details] {{REVISIONID}} fix patch
Patch doesn't appear to fix the bug. It seems to cause it to show '0' instead of a 'Template:REVISIONID' link, but it still is storing the wrong version number in the parser cache: 0 for new pages, and the previous revision for edited pages. A correct fix probably will require updating the article's ID number after the revision is saved and before the text is parsed (which goes to the link cache and, now, gets saved in the parser cache.)
Removing patch keywords for the moment, as patch doesn't fix the problem.
Created attachment 1105 [details] Patch to Parser.php, Article.php, OutputPage.php This patch: * Removes $wgArticle dependency from Parser's {{REVISIONID}} handling * Adds an optional parameter on Parser::parse() for revision id * Wraps that with OutputPage::setRevisionId() * Adds appropriate calls on Article::view and Article::showArticle, which passes the newly inserted id number from page save It seems to properly handle both page creation and update. Also it will be an easy way for special pages which deal with external-page text to poke in a revision id number.
Created attachment 1106 [details] Patch to Parser.php, Article.php, OutputPage.php, DifferenceEngine.php Compared to previous version: * Removes hook for revision ID override, can now set that directly * Removes debugging statements ;) * Sets revision ID in diff rendered-text display
Fixed in HEAD for 1.6.
Thanks a lot!