Revision information not rendered in edit notices
Closed, DeclinedPublic

Description

Since the update, magic words such as {{REVISIONID}} and {{REVISIONUSER}} result in blank strings when they appear in an edit notice. Presumably these ought to report the values for the last saved revision of the page one is about to edit.

Example:

http://en.wikipedia.org/w/index.php?title=User:Dragons_flight/editnotice_test&action=edit

Compared to:

http://en.wikipedia.org/wiki/Template:Editnotices/Page/User:Dragons_flight/editnotice_test

I've included a number of other magic words to show that most of these still render correctly.


Version: 1.18.x
Severity: normal

bzimport added a project: MediaWiki-Page-editing.Via ConduitNov 21 2014, 11:48 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz31398.
Dragons_flight created this task.Via LegacyOct 5 2011, 10:59 PM
Gadget850 added a comment.Via ConduitOct 6 2011, 1:41 AM

This use was always considered incorrect and was fixed per bug 19006.

Dragons_flight added a comment.Via ConduitOct 6 2011, 2:28 AM

No, the prior behavior was to show the name of the current user loading the page. However, the current behavior is to show nothing. If the point of the revision functions is to show information about the last saved revision, then neither behavior is correct.

I'm not looking for a {{CURRENTUSER}}. I'm just looking for revision magic words that actually report information about the saved revision.

Gadget850 added a comment.Via ConduitOct 6 2011, 2:47 AM

You are right- it should not show nothing.

DanielFriesen added a comment.Via ConduitOct 6 2011, 5:51 PM

Note that the behaviour of {{REVISIONID}} and {{REVISIONUSER}} in an edit page
preview IS to return blank. It seams the behaviour has just changed to use the
behaviour of an edit page preview (since you are on the edit page) rather than
the latest revision of the page or some custom behaviour.

MarkAHershberger added a comment.Via ConduitOct 6 2011, 8:36 PM

https://secure.wikimedia.org/wikipedia/en/w/index.php?&diff=prev&oldid=454282519

This has also broken all the policy and guideline editnotices, which use {{tl|policy-guideline-editnotice}}, which uses {{tlc|REVISIONUSER}}

MarkAHershberger added a comment.Via ConduitOct 15 2011, 7:11 PM

We very sorry this could included in 1.18, but this we decided to take care of the long-open bug to remove this feature.

MarkAHershberger added a comment.Via ConduitOct 15 2011, 10:03 PM

tagging bugs for Marcus to look at

Add Comment