Last modified: 2009-09-25 05:21:54 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 T13964, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11964 - REVISIONID won't subst
REVISIONID won't subst
Status: RESOLVED DUPLICATE of bug 6181
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Normal trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-13 18:22 UTC by Random832
Modified: 2009-09-25 05:21 UTC (History)
1 user (show)

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


Attachments

Description Random832 2007-11-13 18:22:21 UTC
I want to be able to use code like "{{fullurl:{{subst:PAGENAME}}|diff=last&oldid={{subst:REVISIONID}}}}" to generate a diff of the current edit (same edit i enter that code in), but {{SUBST:REVISIONID}} comes up as blank.

See http://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&diff=171246052&oldid=171245824
Comment 1 Random832 2007-11-13 18:23:26 UTC
It's not clear if it should expand to the previous current revision, or the newly-saved one (the code i was trying to use assumes it is the newly-saved one) - maybe different keywords should be used for both.
Comment 2 Brion Vibber 2007-12-05 21:06:42 UTC
Fundamentally you can't subst the revision id, as the revision id is not known until after the revision is recorded in the database.

Sorry!
Comment 3 Random832 2007-12-07 04:33:45 UTC
What about a way to subst with the _current_ revision id (the one that already exists) - that might make less sense logically, but would allow for what I want to use it for.
Comment 4 Brion Vibber 2007-12-07 15:29:48 UTC
Well, that would be pretty horrifyingly ugly IMHO. ;)

An additional problem is that a SUBST'ed revision ID would point to the wrong revision after certain types of operations, such as transferring a page between wikis. Since the correct value may change, subst seems inappropriate even if it did work.
Comment 5 Anon Sricharoenchai 2009-02-23 08:06:42 UTC
(In reply to comment #4)
> Well, that would be pretty horrifyingly ugly IMHO. ;)
> 
> An additional problem is that a SUBST'ed revision ID would point to the wrong
> revision after certain types of operations, such as transferring a page between
> wikis. Since the correct value may change, subst seems inappropriate even if it
> did work.
> 

One may use {{subst:fullurl:...|...{{subst:REVISIONID}}...}} so that the page can be transferred to other wikis.


*** This bug has been marked as a duplicate of bug 6181 ***
Comment 6 Anon Sricharoenchai 2009-09-25 05:21:54 UTC
(In reply to comment #5)
> 
> One may use {{subst:fullurl:...|...{{subst:REVISIONID}}...}} so that the page
> can be transferred to other wikis.
> 

Sorry, I'm wrong.

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


Navigation
Links