Last modified: 2014-11-17 10:35:40 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 T2268, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 268 - Short-hand link / URL for referring to specific version
Short-hand link / URL for referring to specific version
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 181
Blocks: 800
  Show dependency treegraph
 
Reported: 2004-09-01 16:00 UTC by Rowan Collins [IMSoP]
Modified: 2014-11-17 10:35 UTC (History)
6 users (show)

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


Attachments

Description Rowan Collins [IMSoP] 2004-09-01 16:00:19 UTC
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.
Comment 1 Rowan Collins [IMSoP] 2005-04-18 17:58:22 UTC
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.
Comment 2 lɛʁi לערי ריינהארט 2005-10-14 16:47:53 UTC
(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
Comment 3 Roan Kattouw 2008-02-03 21:19:56 UTC
How about making [[Special:Oldrevision/15908939]] a 403 (Redirect) to index.php?oldid=15908939 ?
Comment 4 Roan Kattouw 2008-02-03 22:08:08 UTC
(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.
Comment 5 Happy-melon 2010-12-27 00:08:20 UTC
(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.

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


Navigation
Links