Page MenuHomePhabricator

Short-hand link / URL for referring to specific version
Closed, ResolvedPublic

Description

Author: rowan.collins

Description:
As mentioned in Bug 181, it is a good idea for citations to be able to refer to
a particular version of an article. While this is already possible for all but
the latest version, the required URL is somewhat unwieldy. There is also no way
of doing this with an internal link - i.e. in discussing a page, you have to use
the [URL label] syntax, as though it was an outside page.

One scheme which would seem fairly simple would be for the system to take a page
title of [[Foo@123]] to mean "Article name: Foo; Revision: 123". Obviously, it
would be even nicer if we could refer to dates somehow, but that would require
some kind of fuzzy search to find the nearest matching revision. If bug 181 is
closed, we would be able to use this style of URL throughout for referring to a
particular revision.

I think there is a Feature Request matching this in Sourceforge somewhere: if I
have time, I'll copy it to here.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=26147

Details

Reference
bz268

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:47 PM
bzimport added a project: MediaWiki-Page-Diffs.
bzimport set Reference to bz268.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Sep 1 2004, 4:00 PM

rowan.collins wrote:

It occurs to me that the permanent reference doesn't actually need a title - if
the page has been moved, it won't match anyway, even though the revision_id is
still valid. Obviously a date-based link would have to have the title in, and
just fail if the page had been moved, but I'm not sure that's so useful anyway.

It looks, though, like "@" is (now?) allowed in page titles, so we can't use
that for our special references after all. Maybe a special (namespage/interwiki
style) prefix, like "revision:" or "old:". Something like [[Foo::123]] might
also work, presumably with [[::123]] being the same.

gangleri wrote:

(In reply to comment #1)

It occurs to me that the permanent reference doesn't actually need a title - if
the page has been moved, it won't match anyway, even though the revision_id is
still valid. Obviously a date-based link would have to have the title in, and
just fail if the page had been moved, but I'm not sure that's so useful anyway.

http://en.wikipedia.org/w/index.php?oldid=15908939 works
*title* in http://en.wikipedia.org/w/index.php?title=Foo&oldid=15908939 is more
or less an indication

How about making [[Special:Oldrevision/15908939]] a 403 (Redirect) to index.php?oldid=15908939 ?

(In reply to comment #3)

a 403 (Redirect) to

As pointed out on IRC, that should be 203. I obviously know nothing about HTTP response codes.

happy.melon.wiki wrote:

(In reply to comment #3)

How about making [[Special:Oldrevision/15908939]] a 403 (Redirect) to
index.php?oldid=15908939 ?

Done as [[Special:PermanentLink]] in r79036.