Help talk:Permanent link

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Wikipedia Help Project (Rated NA-class, Low-importance)
WikiProject icon This page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
 NA  This page does not require a rating on the project's quality scale.
 Low  This page has been rated as Low-importance on the project's importance scale.

Is oldid unique?[edit]

It seems oldid must not be unique, since you have to tell it the fullpagename. Is it unique per namespace at least? I should probably go to MediaWiki for this question.

Oh, BTW, please mention {{permalink}} in the lead? — CpiralCpiral 23:06, 1 April 2013 (UTC)

It is unique. Provided the oldid is valid, the shorter URL has the same effect. The title is needed so that the software can return a better error message if the oldid refers to a page that has been deleted - compare with
I think this page is aimed at readers, not editors, so it wouldn't be appropriate to mention the templates that format oldids. -- John of Reading (talk) 06:29, 2 April 2013 (UTC)
The audience is readers, OK. Great.
The URL missing the ?title parameter says it was "Main page". Maybe the deleted pages always say "Main page". Now I wonder if the software has the oldids in circular files that enact a delayed reuse. (BTW, I found at Help:URL#URLs_of_Wikipedia_pages they say explicitly Note that the version ID is unique across all pages, so the title parameter here has no effect, and can in fact be omitted.) In any case, thank you. — CpiralCpiral 00:12, 3 April 2013 (UTC)
But this page is about inserting permalinks on Wikipedia. It's a guide for people doing something more than reading. [[Special:Permalink]] seems to serve essentially the same purpose as {{permalink}} (i.e. {{oldid}}) or {{oldid2}}, so why discuss the first and not the other two? (Because they're templates?) Actually, I can't find any page that discusses them together. Shouldn't that be done here? There does seem to be some kind of delineation between what's discussed on Help: and Wikipedia: namespace pages for similar topics, so maybe that's better suited for a page in the Wikipedia: namespace. There doesn't seem to be an appropriate Wikipedia: page for that, so maybe one should be created and linked here. But at the moment, if this is the only overview of permalinks we have, shouldn't it at least mention those templates? Even if another, more specialized Wikipedia: page were made, I think at thevery least a couple See also links would be warranted. (We've gotten away from the original topic. Should this be moved to a new section?) Languorrises (talk) 19:02, 11 February 2018 (UTC)

Ok Odilon charles (talk) 22:53, 16 April 2016 (UTC)

URL format[edit]

The actual URLs of permanent links to Wikipedia pages (provided by Wikipedia software) have the following long form (including an example):{some-title}&oldid={some-old-id}

rather than the [short form:]{some-title}?oldid={some-old-id}

The short form saves 13 characters. For instance, I use it in programming documentation because often its lines are limited in length.

I'm sure it's more humanly readable because the page title is found in the main part of the URL instead of in the options part after the question mark. Besides, all other things being equal, short URLs beat long URLs in terms of user experience.

I notice that the short form isn't browser-redirected to the long form. Therefore the short form is no less efficient in terms of HTTP (I'm sure).

There may be URL *rewrites* happening locally in Wikipedia's webserver software (such as Apache) but I'm sure its processing time is *extremely* trivial, relatively speaking. Presumably, furthermore, since most people don't use permanent links, they must only be a *very* tiny fraction of all the web requests to Wikipedia.

Any (hypothetical) extra computer time (spent automatically rewriting the URLs of permanent links) is especially unimportant, relative to the time human beings will spend reading (and cutting and pasting) these permanent link URLs.

Of course, when a person makes a decision to use a permanent link, it is for a special, human purpose such as making a written document. Therefore, many people actually will read these URL strings as text (at least briefly).

Unquestionably, both forms should continue to work when submitted by browsers.

I assume Wikipedia has some good reason to continue to choose the long form when its viewers request new permanent links.

As a programmer, I wonder what that reason is? Please tell me. If there is no advantage, could Wikipedia switch please to supplying the short form?
Georgesawyer (talk) 22:32, 13 December 2013 (UTC)

Ab007 Aamirbond007 (talk) 20:03, 29 July 2017 (UTC)

Semi-protected edit request on 21 September 2015[edit]

Zaanali (talk) 07:48, 21 September 2015 (UTC)

Not done as you are in the wrong place, since this page is only to discuss improvements to Help:Permanent link.
If you want to suggest a change, please request this on the talk page of the relevant article in the form "Please replace XXX with YYY" or "Please add ZZZ between PPP and QQQ".
Please also cite reliable sources to back up your request, without which no information should be added to, or changed in, any article. - Arjayay (talk) 07:52, 21 September 2015 (UTC)

Hi Wolf-121091919 (talk) 15:48, 21 October 2016 (UTC)

Harvesting multiple permids[edit]

Is there some method where I could find a page and get a permid that is saved automatically. I'm trying to get multiple permids to put into another program. See User:Smallbones/1000 random for example. Smallbones(smalltalk) 18:47, 19 April 2016 (UTC)

@Smallbones: I don't know whether it's still relevant but it sounds like you want {{REVISIONID:pagename}} or {{subst:REVISIONID:pagename}}. The former is evaluated each time the page with the code is rendered, so it changes when pagename is edited. {{subst:REVISIONID:pagename}} is permanently replaced by the revision ID pagename had at the time the code was saved. mw:Help:Magic words#Technical metadata of another page says {{REVISIONID:pagename}} is an expensive parser function so per WP:EXPENSIVE you can do at most 500 at a time. If you subst them then you can make multiple edits with up to 500 each time. PrimeHunter (talk) 16:26, 21 October 2016 (UTC)

Semi-protected edit request on 27 July 2017[edit]

Add {{Pp-semi}} template.

-- (talk) 21:22, 27 July 2017 (UTC)

 Done -- John of Reading (talk) 21:29, 27 July 2017 (UTC)