A redirect is a page created so that navigation to a given title will take the reader directly to a different page. A redirect is created using the syntax:
#REDIRECT [[''target'']]
where Target is the name of the target page. It is also possible to add a anchor to make a redirect to a specific section of the target page.
Note that a redirect will work as intended (i.e. take the reader directly to the target page) only if the link is to an existing normal page (not a special page) on the same project (English Wikipedia). In other cases soft redirects are often used – see below.
Examples:
Any text appearing after the redirect link will be 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 magic words, , etc.
When redirecting to a 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 below.) Redirects to image pages also require the colon.
Transport
From Wikipedia, the free encyclopedia
(Redirected from )
To get the canonical URL of the target page in your browser's address bar, click the article tab (or equivalent). 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 (), or a 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 . (Bot 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 URL used to access the page contains the query parameter &redirect=no, looks like this:
Transportation
From Wikipedia, the free encyclopedia
Redirect pageTransport
(Click here to see the actual Transportation redirect page.)
Redirects to articles that begin with a lowercase title, for example the redirect from the page at 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 DISPLAYTITLE. (Usually, the template {{}} is used to implement the DISPLAYTITLE magic word for lowercase titles.)
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 Java script.
Note that it is not necessary to create redirects from every title from which an editor may conceivably wish to link to a given page – piped links can be used as an alternative.
For more details, see Redirect.
A redirect page can be created like any other page (see Creating a new page). Simply type in the wikitext #REDIRECT [[xxx]], 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 ), interwiki links (see ) or HTML comments (<nowiki></nowiki>) are added.
Similarly, any existing page can be edited to turn it into a redirect.
To edit a page which 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 will take you to the redirect page itself. (The 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 "What links here" (in the toolbox on the left of the page). This will show you all the back-links from that page, including redirects. Clicking on a redirect in this list will take you to the redirect page, not the target.
The 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.
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 . Please refer to Wikipedia's for details and instructions.
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.
Soft redirects are created using the templates and .