Changes
Jump to navigation
Jump to search
→Creating and editing redirects: The trial period is over with the decision being to make permanent that a user needs to be autoconfirmed to create redirects
{{about|directing a search term to a Wikipedia article|clarifying redirected search terms at the article itself|Template:Redirect}}
{{for|guidance on the use of redirects|Wikipedia:Redirect}}
{{Wikipedia how-to|H:R|H:REDIR}}
A '''redirect''' is a page created so that navigation to a given title takes the reader directly to a different page. A redirect is created using the syntax:
<pre>
#REDIRECT [[Target]]
</pre>
...where "target" is the name of the target page. It is also possible to add a [[WP:section|section]] header to make a redirect to a specific section of the target page in the following manner:
<pre>
#REDIRECT [[Target#Section header]]
</pre>
The pound/number/hash sign (#) is also used to link to [[WP:anchor|page anchors]].
==Syntax==
{{Shortcut|Wikipedia:Hard redirect}}
A page is treated as a redirect page if its [[WP:wikitext|wikitext]] begins with <code>#REDIRECT</code> followed by a valid [[Help:Link|wikilink]] or [[Help:Interwiki|interwikilink]]. A space is usually left before the link. (Note that some alternative capitalizations of "REDIRECT" are possible.)
Note that a redirect works as intended (takes the reader directly to the target page) only if the link is to an existing normal page (not a [[Help:special page|special page]]) on the same project (English Wikipedia). In other cases soft redirects are often used – see [[#Soft redirects|below]].
Examples:
* <code><nowiki>#REDIRECT [[France]]</nowiki></code> (redirects to the [[France]] article)
* <code><nowiki>#REDIRECT [[France#History]]</nowiki></code> (redirects to the "History" section of the [[France]] article)
* <code><nowiki>#REDIRECT [[fr:France]]</nowiki></code> (appears as a redirect to the [[France]] article on French Wikipedia, but does not work as a true redirect)
Any text appearing after the redirect link is ignored in the display, but may be used to add categories, interwiki links, comments, etc.
Note that the redirect link must be explicit – it cannot contain [[Help:Magic word|magic words]], [[WP:template|templates]], etc.
When redirecting to a [[Help:category|category]] page, prefix the target pagename with a colon to prevent the redirect from showing up in the category. (Redirects from one category page to another should use soft redirects – see [[#Soft redirects|below]].) Redirects to [[Help:image|image]] pages also require the colon.
==How it appears to the user==
If the redirect target is an existing page on English Wikipedia and a reader navigates to the redirect page – by [[Help:Link|wikilink]], the search box, or a [[Help:URL|URL]] – the reader is taken directly to the target page. A small notice below the top title indicates that the user arrived via a redirect. For example, if you click [[Transportation]], you are redirected to the [[Transport]] article, and the top of the page looks like:
<blockquote style="background-color: white; color: black; border:1px solid black; padding: 1em;">
{{fake heading|Transport}}
<small>From Wikipedia, the free encyclopedia</small>
<div>(Redirected from <span class="plainlinks">[{{fullurl:Transportation|redirect=no}} Transportation]</span>)</div>
</blockquote>
To go to the redirect page itself (to edit it, view its history, etc.), click the link in the "(Redirected from...)" notice.
If the redirect target is a non-existing page ([[WP:redlink|redlink]]), or a [[Help:special page|special page]], or a page in another project, then the redirect is not followed, and the reader sees the display of the redirect page (as illustrated below). If the target is a non-existent section of an existing page, then the redirect will take the reader to the top of the target page.
Chains of redirects are not followed. If title ''A'' redirects to ''B'', and ''B'' is itself a redirect page, then a reader navigating to ''A'' will see the display of the redirect page ''B'' (as illustrated). See [[WP:Double redirects|Double redirects]]. ([[Help:Bot|Bots]] fix such chains so that each redirect points directly to the final target page.)
A redirect page viewed directly, either in the situations described above, or when the [[Help:URL|URL]] used to access the page contains the query parameter <code>&redirect=no</code>, looks like this:
<blockquote style="background-color: white; color: black; border:1px solid black; padding: 1em;">
{{fake heading|Transportation}}
<small>From Wikipedia, the free encyclopedia</small>
<div>Redirect page</div>
[[Image:Redirectltr.png]] <span class="redirectText">[[Transport]]</span>
</blockquote>
(See the actual {{no redirect|Transportation}} redirect page.)
Redirects to articles that begin with a lowercase title, for example the redirect from the page at [//en.wikipedia.org/w/index.php?title=EBay.com&redirect=no Ebay.com] to the article at [[eBay]], will display the target page with a capitalized first letter, even though the article displays the title with a lowercase title. This is because the true title of the target page is actually capitalized — it just appears lowercase because of the use of the magic word [[Help:Magic words#Behavior switches|DISPLAYTITLE]]. (Usually, the template <nowiki>{{</nowiki>[[Template:Lowercase title|Lowercase title]]<nowiki>}}</nowiki> is used to implement the DISPLAYTITLE magic word for lowercase titles.)
===Section redirects===
When the redirect target is a [[Help:section link|section link]], following a redirected link should lead to the section or other element identified by the link. Normally the redirected page includes the entire contents of the target page as if the section fragment wasn't specified, and uses [[JavaScript]] to jump to the section after the page is loaded. If JavaScript is disabled, this jump does not happen.
When a redirect page is viewed directly without following the target link, the link is shown as an ordinary section link, and works as usual without the use of JavaScript.
==Purposes of a redirect==
{{detail|Wikipedia:Redirect#Purposes of redirects}}
Redirects are usually created because readers may search for an article under different names (or editors may wish to link to it from different names). Examples are:
* Alternative names for the same thing
* Alternative spellings, capitalizations etc. (although it is not necessary to create redirects from different capitalizations just because readers may enter them in the search box - the Go button in the Monobook skin resolves this automatically)
* Common misspellings
* Plurals
* Subtopics that don't have their own article (in this case, you may redirect to a section of the target page)
* [[WP:Shortcut|shortcuts]] to a page, used mainly in project space (such as [[WP:AFD]])
* Redirects that keep links to a page active after it has been renamed (even if internal links are updated—this still applies for links from outside and [[Help:Edit summary#Internal and interwiki links in edit summaries|links in edit summaries]])
Note that it is not necessary to create redirects from every title an editor may conceivably wish to link to a given page – [[Help:Piped link|piped links]] can be used as an alternative.
==Creating and editing redirects==
:''Unregistered users, and those not yet [[Wikipedia:User access levels#Autoconfirmed and confirmed users|autoconfirmed]], can request a redirect be created at [[Wikipedia:Articles for creation/Redirects]].''
A redirect page can be created like any other page (see [[Help:Creating a new page|Creating a new page]]). Simply type in the wikitext <code><nowiki>#REDIRECT [[</nowiki>xxx]]</code>, replacing "xxx" with the title of the target page (optionally followed by a "#" sign and the section title).
Make sure that there is no text ''before'' the #REDIRECT keyword, or the redirect will not work. There is not usually any reason to place any text after the link either, although sometimes categories (or categorizing templates—see [[WP:Categorizing redirects|Categorizing redirects]]), interwiki links (see [[WP:Interlanguage links|Interlanguage links]]) or HTML comments (<code><nowiki><!-- comment --></nowiki></code>) are added.
Similarly, any existing page can be edited to turn it into a redirect.
To edit a page that is already a redirect (or to view its history, talk page, etc.), follow the redirect to the target page, then click on the link in the "(Redirected from ...)" notice at the top of the page. This takes you to the redirect page itself. (The [[Help:URL|URL]] for accessing a redirect page without following the redirect contains the query parameter ''redirect=no''.)
Another way to get to a redirect page is to go to the target page, and click "[[Help:What links here|What links here]]" (in the toolbox on the left of the page). This will show you all the [[backlink]]s to that page, including redirects. Clicking on a redirect in this list will take you to the redirect page, not the target.
The [[Help:edit summary|edit summary]] box can be left blank; the summary will then be automatically generated stating that the page has been redirected to the given target. (This applies for: a new redirect page; an existing article page turned into a redirect page; and a change to the target of an existing redirect.) The generated summary is overridden if the editor supplies their own summary.
[[WP:Administrator|Administrators]] can delete redirects in the same way as any other page. Deletion or other potentially controversial treatment of redirects can be proposed by any editor at [[WP:Redirects for discussion|Redirects for discussion]]. Please refer to Wikipedia's [[WP:deletion policy|deletion policy]] for details and instructions.
==Moving pages==
When a page is [[Help:Moving a page|moved]] (renamed), a redirect is automatically created from the old to the new name, and also one for the corresponding talk page (if that was moved as well). [[WP:Administrator|Administrators]] and [[WP:PGM|Page movers]] can choose to [[Wikipedia:Redirect#Suppressing redirects|suppress]] creation of the redirect.
If the new page name is occupied by a redirect that has only one edit in its history and targeted to the old page name, it is replaced by the page being moved. If the redirect has more than one history entry, or has a different target page, then the move must be made by an administrator or pagemover.
==Transclusion==
When a page called for [[WP:transclusion|transclusion]] is a redirect page, the redirect target is included instead, with the same parameters, without any redirect message. Hence if [[Template:AFD]] is redirected to [[Template:Afd]], then <code><nowiki>{{AFD|...}}</nowiki></code> will have the same effect as <code><nowiki>{{Afd|...}}</nowiki></code> As usual, [[WP:double redirects|double redirects]] are not followed.
==Soft redirects==
As an alternative to the normal "hard" redirects (which take the reader directly to the target page), it is possible to create [[Wikipedia:Soft redirect|"soft" redirects]], which leave the reader on the redirect page, giving them the option of clicking the link to the target page. This is usually done in the following situations:
* When the target is on another project ([[Wiktionary]], [[MetaWiki|Meta]], other language Wikipedias, etc.) or is a [[Help:special page|special page]]. (In these situations a hard redirect would behave as a soft one in any case.)
* For [[Help:Category#Moving and redirecting category pages|redirects between categories]]. (Hard redirects work for category pages, but soft ones are preferred because of the software's inability to recategorize pages from redirected categories.)
Soft redirects are created using the templates {{tl|soft redirect}} and {{tl|category redirect}}.
==See also==
{{Wikipedia glossary}}
* [[:Category:Redirect templates]]
* [[WP:HAT|Hatnote]] and [[Wikipedia:HATTEST#Redirect|examples]] for page hatnotes
* [[meta:Help:Redirect|Redirect technical help at Meta-Wiki]]
* [[Wikipedia:Printability]]
* [[Wikipedia:Template messages/Redirect pages]]
* [[Wikipedia:Visualizing redirects]], for how to make links to redirects stand out (based on the <code>mw-redirect</code> CSS class)
{{Help navigation}}
{{Wikipedia technical help|collapsed}}
[[Category:Wikipedia article title help|Redirect]]
[[Category:Wikipedia redirecting| ]]
[[Category:Wikipedia features|Redirect]]
[[Category:Wikipedia page help|Redirect]]
{{for|guidance on the use of redirects|Wikipedia:Redirect}}
{{Wikipedia how-to|H:R|H:REDIR}}
A '''redirect''' is a page created so that navigation to a given title takes the reader directly to a different page. A redirect is created using the syntax:
<pre>
#REDIRECT [[Target]]
</pre>
...where "target" is the name of the target page. It is also possible to add a [[WP:section|section]] header to make a redirect to a specific section of the target page in the following manner:
<pre>
#REDIRECT [[Target#Section header]]
</pre>
The pound/number/hash sign (#) is also used to link to [[WP:anchor|page anchors]].
==Syntax==
{{Shortcut|Wikipedia:Hard redirect}}
A page is treated as a redirect page if its [[WP:wikitext|wikitext]] begins with <code>#REDIRECT</code> followed by a valid [[Help:Link|wikilink]] or [[Help:Interwiki|interwikilink]]. A space is usually left before the link. (Note that some alternative capitalizations of "REDIRECT" are possible.)
Note that a redirect works as intended (takes the reader directly to the target page) only if the link is to an existing normal page (not a [[Help:special page|special page]]) on the same project (English Wikipedia). In other cases soft redirects are often used – see [[#Soft redirects|below]].
Examples:
* <code><nowiki>#REDIRECT [[France]]</nowiki></code> (redirects to the [[France]] article)
* <code><nowiki>#REDIRECT [[France#History]]</nowiki></code> (redirects to the "History" section of the [[France]] article)
* <code><nowiki>#REDIRECT [[fr:France]]</nowiki></code> (appears as a redirect to the [[France]] article on French Wikipedia, but does not work as a true redirect)
Any text appearing after the redirect link is ignored in the display, but may be used to add categories, interwiki links, comments, etc.
Note that the redirect link must be explicit – it cannot contain [[Help:Magic word|magic words]], [[WP:template|templates]], etc.
When redirecting to a [[Help:category|category]] page, prefix the target pagename with a colon to prevent the redirect from showing up in the category. (Redirects from one category page to another should use soft redirects – see [[#Soft redirects|below]].) Redirects to [[Help:image|image]] pages also require the colon.
==How it appears to the user==
If the redirect target is an existing page on English Wikipedia and a reader navigates to the redirect page – by [[Help:Link|wikilink]], the search box, or a [[Help:URL|URL]] – the reader is taken directly to the target page. A small notice below the top title indicates that the user arrived via a redirect. For example, if you click [[Transportation]], you are redirected to the [[Transport]] article, and the top of the page looks like:
<blockquote style="background-color: white; color: black; border:1px solid black; padding: 1em;">
{{fake heading|Transport}}
<small>From Wikipedia, the free encyclopedia</small>
<div>(Redirected from <span class="plainlinks">[{{fullurl:Transportation|redirect=no}} Transportation]</span>)</div>
</blockquote>
To go to the redirect page itself (to edit it, view its history, etc.), click the link in the "(Redirected from...)" notice.
If the redirect target is a non-existing page ([[WP:redlink|redlink]]), or a [[Help:special page|special page]], or a page in another project, then the redirect is not followed, and the reader sees the display of the redirect page (as illustrated below). If the target is a non-existent section of an existing page, then the redirect will take the reader to the top of the target page.
Chains of redirects are not followed. If title ''A'' redirects to ''B'', and ''B'' is itself a redirect page, then a reader navigating to ''A'' will see the display of the redirect page ''B'' (as illustrated). See [[WP:Double redirects|Double redirects]]. ([[Help:Bot|Bots]] fix such chains so that each redirect points directly to the final target page.)
A redirect page viewed directly, either in the situations described above, or when the [[Help:URL|URL]] used to access the page contains the query parameter <code>&redirect=no</code>, looks like this:
<blockquote style="background-color: white; color: black; border:1px solid black; padding: 1em;">
{{fake heading|Transportation}}
<small>From Wikipedia, the free encyclopedia</small>
<div>Redirect page</div>
[[Image:Redirectltr.png]] <span class="redirectText">[[Transport]]</span>
</blockquote>
(See the actual {{no redirect|Transportation}} redirect page.)
Redirects to articles that begin with a lowercase title, for example the redirect from the page at [//en.wikipedia.org/w/index.php?title=EBay.com&redirect=no Ebay.com] to the article at [[eBay]], will display the target page with a capitalized first letter, even though the article displays the title with a lowercase title. This is because the true title of the target page is actually capitalized — it just appears lowercase because of the use of the magic word [[Help:Magic words#Behavior switches|DISPLAYTITLE]]. (Usually, the template <nowiki>{{</nowiki>[[Template:Lowercase title|Lowercase title]]<nowiki>}}</nowiki> is used to implement the DISPLAYTITLE magic word for lowercase titles.)
===Section redirects===
When the redirect target is a [[Help:section link|section link]], following a redirected link should lead to the section or other element identified by the link. Normally the redirected page includes the entire contents of the target page as if the section fragment wasn't specified, and uses [[JavaScript]] to jump to the section after the page is loaded. If JavaScript is disabled, this jump does not happen.
When a redirect page is viewed directly without following the target link, the link is shown as an ordinary section link, and works as usual without the use of JavaScript.
==Purposes of a redirect==
{{detail|Wikipedia:Redirect#Purposes of redirects}}
Redirects are usually created because readers may search for an article under different names (or editors may wish to link to it from different names). Examples are:
* Alternative names for the same thing
* Alternative spellings, capitalizations etc. (although it is not necessary to create redirects from different capitalizations just because readers may enter them in the search box - the Go button in the Monobook skin resolves this automatically)
* Common misspellings
* Plurals
* Subtopics that don't have their own article (in this case, you may redirect to a section of the target page)
* [[WP:Shortcut|shortcuts]] to a page, used mainly in project space (such as [[WP:AFD]])
* Redirects that keep links to a page active after it has been renamed (even if internal links are updated—this still applies for links from outside and [[Help:Edit summary#Internal and interwiki links in edit summaries|links in edit summaries]])
Note that it is not necessary to create redirects from every title an editor may conceivably wish to link to a given page – [[Help:Piped link|piped links]] can be used as an alternative.
==Creating and editing redirects==
:''Unregistered users, and those not yet [[Wikipedia:User access levels#Autoconfirmed and confirmed users|autoconfirmed]], can request a redirect be created at [[Wikipedia:Articles for creation/Redirects]].''
A redirect page can be created like any other page (see [[Help:Creating a new page|Creating a new page]]). Simply type in the wikitext <code><nowiki>#REDIRECT [[</nowiki>xxx]]</code>, replacing "xxx" with the title of the target page (optionally followed by a "#" sign and the section title).
Make sure that there is no text ''before'' the #REDIRECT keyword, or the redirect will not work. There is not usually any reason to place any text after the link either, although sometimes categories (or categorizing templates—see [[WP:Categorizing redirects|Categorizing redirects]]), interwiki links (see [[WP:Interlanguage links|Interlanguage links]]) or HTML comments (<code><nowiki><!-- comment --></nowiki></code>) are added.
Similarly, any existing page can be edited to turn it into a redirect.
To edit a page that is already a redirect (or to view its history, talk page, etc.), follow the redirect to the target page, then click on the link in the "(Redirected from ...)" notice at the top of the page. This takes you to the redirect page itself. (The [[Help:URL|URL]] for accessing a redirect page without following the redirect contains the query parameter ''redirect=no''.)
Another way to get to a redirect page is to go to the target page, and click "[[Help:What links here|What links here]]" (in the toolbox on the left of the page). This will show you all the [[backlink]]s to that page, including redirects. Clicking on a redirect in this list will take you to the redirect page, not the target.
The [[Help:edit summary|edit summary]] box can be left blank; the summary will then be automatically generated stating that the page has been redirected to the given target. (This applies for: a new redirect page; an existing article page turned into a redirect page; and a change to the target of an existing redirect.) The generated summary is overridden if the editor supplies their own summary.
[[WP:Administrator|Administrators]] can delete redirects in the same way as any other page. Deletion or other potentially controversial treatment of redirects can be proposed by any editor at [[WP:Redirects for discussion|Redirects for discussion]]. Please refer to Wikipedia's [[WP:deletion policy|deletion policy]] for details and instructions.
==Moving pages==
When a page is [[Help:Moving a page|moved]] (renamed), a redirect is automatically created from the old to the new name, and also one for the corresponding talk page (if that was moved as well). [[WP:Administrator|Administrators]] and [[WP:PGM|Page movers]] can choose to [[Wikipedia:Redirect#Suppressing redirects|suppress]] creation of the redirect.
If the new page name is occupied by a redirect that has only one edit in its history and targeted to the old page name, it is replaced by the page being moved. If the redirect has more than one history entry, or has a different target page, then the move must be made by an administrator or pagemover.
==Transclusion==
When a page called for [[WP:transclusion|transclusion]] is a redirect page, the redirect target is included instead, with the same parameters, without any redirect message. Hence if [[Template:AFD]] is redirected to [[Template:Afd]], then <code><nowiki>{{AFD|...}}</nowiki></code> will have the same effect as <code><nowiki>{{Afd|...}}</nowiki></code> As usual, [[WP:double redirects|double redirects]] are not followed.
==Soft redirects==
As an alternative to the normal "hard" redirects (which take the reader directly to the target page), it is possible to create [[Wikipedia:Soft redirect|"soft" redirects]], which leave the reader on the redirect page, giving them the option of clicking the link to the target page. This is usually done in the following situations:
* When the target is on another project ([[Wiktionary]], [[MetaWiki|Meta]], other language Wikipedias, etc.) or is a [[Help:special page|special page]]. (In these situations a hard redirect would behave as a soft one in any case.)
* For [[Help:Category#Moving and redirecting category pages|redirects between categories]]. (Hard redirects work for category pages, but soft ones are preferred because of the software's inability to recategorize pages from redirected categories.)
Soft redirects are created using the templates {{tl|soft redirect}} and {{tl|category redirect}}.
==See also==
{{Wikipedia glossary}}
* [[:Category:Redirect templates]]
* [[WP:HAT|Hatnote]] and [[Wikipedia:HATTEST#Redirect|examples]] for page hatnotes
* [[meta:Help:Redirect|Redirect technical help at Meta-Wiki]]
* [[Wikipedia:Printability]]
* [[Wikipedia:Template messages/Redirect pages]]
* [[Wikipedia:Visualizing redirects]], for how to make links to redirects stand out (based on the <code>mw-redirect</code> CSS class)
{{Help navigation}}
{{Wikipedia technical help|collapsed}}
[[Category:Wikipedia article title help|Redirect]]
[[Category:Wikipedia redirecting| ]]
[[Category:Wikipedia features|Redirect]]
[[Category:Wikipedia page help|Redirect]]