Last modified: 2010-05-15 14:36:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3739, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1739 - Make Revision ID available in a variable
Make Revision ID available in a variable
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
PC All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on: 181
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-23 19:19 UTC by Catherine Munro
Modified: 2010-05-15 14:36 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Catherine Munro 2005-03-23 19:19:03 UTC
It would be useful if Revision ID number (see bug 181) could be stored in a variable -- 
{{VERSIONNUMBER}} or the like -- a la the other variables at 
http://meta.wikimedia.org/wiki/Help:Variable.  

This would make it easy to construct templates for citation of the current version (see bug 
800), and other references helpful to readers as well as editors.


(entering as new bug as suggested by Brion Vibber)
Comment 1 Antoine "hashar" Musso (WMF) 2005-03-26 18:25:04 UTC
New magic keyword: {{REVISIONID}}

Implemented in cvs HEAD and need to be tested. The value will
change when viewing an old revision of the article and seems
to correctly display the current revision on article view.
Comment 2 Antoine "hashar" Musso (WMF) 2005-03-26 18:31:55 UTC
Due to bug 181 (no revision id for current article) this bug
will not be implemented in 1.4. Closing.
Comment 3 Brion Vibber 2005-03-26 21:34:32 UTC
There are some inconsistencies in behavior.

* nothing is displayed on preview (should it be? should there be a distinct alternate value?)
* nothing is displayed in diff view (it should be)
Comment 4 Antoine "hashar" Musso (WMF) 2005-03-29 16:40:42 UTC
It's working now.
Because the diffengine is fetching article content directly,
Article::mRevIdFetched was not properly set.

There is still a problem with the diffengine as there is
three ways to show the diff for the last revision :(

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links