Page MenuHomePhabricator

New subst-only magic word: revision id going to be used
Closed, DeclinedPublic

Description

Assume the new magic word is R.

When a new revision is being saved, replace {{subst:R}} in the page with the revision id of the revision being written. It will be more convenient to make pages like [[meta:Identification noticeboard]] if that is implemented.


Version: 1.17.x
Severity: enhancement

Details

Reference
bz23875

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:59 PM
bzimport set Reference to bz23875.
bzimport added a subscriber: Unknown Object (MLST).

conrad.irwin wrote:

This is not realistically possible as you can't know what the revision ID will be until after it has been saved to the database - at which point you can't change the text of the revision.

Perhaps acceptable would be to have an index.php parameter for "the revision after" that you could use if bug 23876 were fixed, or for "revision at timestamp". Both would have marginal failure cases with simultaneous edits (which you could further refine by filtering by revisionuser too).

I think we WONTFIX this bug as described - it'd be vastly easier to write a bot that does what you want in the exceedingly few cases this behaviour would be useful.