Page MenuHomePhabricator

{{REVISIONTIMESTAMP}} should return the same as {{REVISIONTIMESTAMP: {{FULLPAGENAME}} }} on preview and on [[Special:ExpandTemplates]]
Open, LowPublic

Description

Currently, {{REVISIONTIMESTAMP}} returns the current timestamp (i.e., the same as {{CURRENTTIMESTAMP}}) while {{REVISIONTIMESTAMP: {{FULLPAGENAME}} }} returns the timestamp of the last edit of the page being edited.

See:
https://en.wikipedia.org/wiki/Wikipedia:Sandbox?oldid=595173679&action=edit&preview=yes


Version: unspecified
Severity: normal
URL: https://en.wikipedia.org/wiki/Special:ExpandTemplates?wpInput=*%7B%7BCURRENTTIMESTAMP%7D%7D%0A*%7B%7BREVISIONTIMESTAMP%7D%7D%0A*%7B%7BREVISIONTIMESTAMP%3A+%7B%7BFULLPAGENAME%7D%7D+%7D%7D%0A&wpContextTitle=Foo

Details

Reference
bz61276

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:05 AM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz61276.
bzimport added a subscriber: Unknown Object (MLST).

This was intent, see gerrit 76534:

"When the given param is equal to the current title of the parser, the
parser function will yield the previous versions on preview and on
substitution, that includes empty strings when used on page creation,
but using the values from the current version for page view, including
viewing old revisions."

Supporting WONTFIX

Whether originally intentional or not, there's no reason {{REVISIONTIMESTAMP}} and {{REVISIONTIMESTAMP:{{FULLPAGENAME}}}} (or the others) should ever differ.