Jump to content

විකිපීඩියා:Double redirects

විකිපීඩියා වෙතින්
(විකිපීඩියා:2REDIR වෙතින් යළි-යොමු කරන ලදි)
Special pages Other versions
Broken redirects ...
Cross-namespace links ...
Dead-end pages Dead-end pages
Dormant pages Dusty articles
DoubleRedirects Double redirects
Lonely pages Orphaned articles
Long pages ...
New pages ...
Protected pages ...
Short pages User:Zorglbot/Shortpages
Uncategorized Category needed
Uncategorized cats ...
Uncategorized templates Uncategorized templates
Unused categories ...
Unused files (images) ...
Unused templates ...
Without interwiki links ...
See also: Maintenance Reports

A redirect is a special type of page that automatically causes another page to be displayed in its place. A redirect that points to another redirect is called a double redirect. These pages are unwanted, because Wikipedia's MediaWiki software is currently configured to not follow the second redirect. The MediaWiki feature which would have allowed it is declined as too hard to implement. If someone is redirected to a redirect, the chain stops after the first redirect, like in the example. These situations create unpleasant experiences for the reader and make the navigational structure of the site confusing.

Double redirects are usually created after a page move, when old redirects are left unchanged and pointing towards an old name. Although bots fix most of these within a few days from creation automatically, editors should take care not to manually create double redirects.

How to fix a double redirect

[සංස්කරණය]
An example double redirect, which has since been corrected by redirecting Morchella esculenta directly to Morchella without using Morel as a half-way point.
  • Suppose page title A (Morchella esculenta in the example to the right) redirects to B (Morel), which in turn redirects to C (Morchella).
  • Upon following the link to A, you will see, as illustrated, a page containing:
    • the page title B;
    • a large link to C;
    • a small notice saying "Redirected from A"
  • Click the "A" in "redirected from A".
  • You will see a page containing:
    • the page title A;
    • a large link to B.
  • Click "Edit source" (or "Edit", if no "Edit source" tab is available) and change B to C.
  • Consider using Template:R avoided double redirect to categorize A and inform other editors about its relation to B.

Double redirects and bots

[සංස්කරණය]

Double redirects are easily and automatically fixed by bots, and most are fixed within a few days of creation. Because of this, human editors would be best-off putting their time on other tasks that can't be automated. However, bots can't fix a double redirect if the redirect page is fully protected. The following bots fix double redirects:

සැකිල්ල:BotS/Top සැකිල්ල:BotS සැකිල්ල:BotS සැකිල්ල:BotS සැකිල්ල:BotS සැකිල්ල:BotS/Bottom

This list was compiled from Wikipedia:Bots/Status.

Current list:

Old lists:

Checking for double redirects

[සංස්කරණය]

Suppose you want to check whether there are any double redirects to page C. Go to page C and click "What links here" (usually the first link in the "Toolbox" on the left-hand side of the page). Double (or multiple) redirects are those pages which appear in the list with both of these properties:

  • Indented at least one level in comparison to the page at the top of the list, AND
  • Labelled "(redirect page)".

Note that if you've just moved page C, then there might be only one page which is not indented, (the page at the top of the list), and everything else might be indented at least one level.

Once all double redirects have been fixed, the "What links here" page will have only three types of pages listed:

  1. Direct links from ordinary pages (not indented, not labelled "(redirect page)").
  2. Direct links from redirect pages (not indented; labelled "(redirect page)").
  3. Indirect links from ordinary pages (indented one level, not labelled "(redirect page)").

The first and third categories do not need to be fixed – see Wikipedia:Redirect#Do not "fix" links to redirects that are not broken § Notes.

When MediaWiki won't automatically follow a redirect

[සංස්කරණය]

MediaWiki will not follow a redirect if:

  • there are double redirects
  • it is a redirect to a Special page
  • it is a redirect to a non-existent page
  • it is a redirect to an interwiki page[1]
  1. ^ In Foundation Wiki, it could redirect to an interwiki pages in the past, but it cannot do so anymore.
"https://si.wikipedia.org/w/index.php?title=විකිපීඩියා:Double_redirects&oldid=670939" වෙතින් සම්ප්‍රවේශනය කෙරිණි