te:On 03/11/05, David Gerard <dgerard(a)gmail.com> wrote:
Mindspillage wrote:
On 11/2/05, Gregory Maxwell <gmaxwell at
gmail.com> wrote:
> Might I suggest an additional feature for
mediawiki? How about
> [{here}] which becomes a difflink to the edit where that tag was
> inserted? People could add that to their signatures and thus every
> post of their would be equipped to a handy difflink to an original
> version.
I wouldn't mind seeing the timestamp on
signatures be a diff link ,
actually: makes it easy to see what was originally posted and doesn't
add more to the standard sig.
Thoroughly excellent idea! (Does an edit know what its revision ID is
going to be while it's saving?)
I'd been pondering this myself recently, but it looks like it doesn't
- and probably can't - know its ID soon enough. Not only does the
Revision object not get an ID until the insert function (obviously too
late for text manipulation) but it has to actually be saved in MySQL
for the autoincrement field to autoincrement.
But having spent ages looking at that, I remember that we have
functions for doing diffs based on "next revision after this". So,
it's not pretty, but presumably a pre save transform (e.g. a
signature) could embed a link to a diff between the revision *before*
itself and "whatever revision comes next" - which in all but the
oddest cases will be the revision you're in the middle of saving...
So, sort of like "/index.php?oldid=$lastrevision&direction=next" where
$lastrevision is the latest revision actually *saved* of that page.
--
Rowan Collins BSc
[IMSoP]