সহায়:পূননিৰ্দেশনা
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 section anchor to make a redirect to a specific section of the target page.
Syntax
[সম্পাদনা কৰক]A page will be treated as a redirect page if its wikitext begins with #REDIRECT followed by a valid wikilink or interwikilink. A space is usually left before the link. (Note that some alternative capitalizations of "REDIRECT" are possible.) The #R button above the edit box can be used to produce this syntax.
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:
- #REDIRECT [[France]] (redirects to the France article)
- #REDIRECT [[France#History]] (redirects to the "History" section of the France article)
- #REDIRECT [[fr:France]] (appears as a redirect to the France article on French Wikipedia, but will not work as a true redirect)
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, templates, 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.
How it appears to the user
[সম্পাদনা কৰক]If the redirect target is an existing page on English Wikipedia, then if a reader navigates to the redirect page – by means of a wikilink, the Go button or a URL – the reader will be taken directly to the target page. However, the browser still shows the URL of the redirect page, and the target page shows a small notice below the top title to indicate that you arrived by means of a redirect. For example, if you click Transportation, you will be redirected to the Transport article, and the top of the page will look like:
Transport
From Wikipedia, the free encyclopedia
(Redirected from Transportation)
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 (redlink), 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 Double redirects. (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 URL used to access the page contains the query parameter &redirect=no
, looks like this:
http://en.wikipedia.org/w/index.php?title=Transportation&redirect=no
Transportation
From Wikipedia, the free encyclopedia
Redirect page
Section redirects
When the redirect target is a 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 Java script 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 Java script.
Purposes of a redirect
[সম্পাদনা কৰক]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 resolves this automatically)
- common misspellings
- subtopics which do not have their own article (in this case you may redirect to a section of the target page)
- shortcuts to a page, used mainly in project space (such as WP:AFD)
- redirects serving to 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 links in edit summaries)
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 Wikipedia:Redirect.
Creating and editing redirects
[সম্পাদনা কৰক]- Unregistered users can request a redirect be created at the article wizard.
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). The #R button above the edit window can be used to save typing (either click it and then insert the desired target, or else type the target, select it with the mouse, then click the button).
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 Categorizing redirects), interwiki links (see Interlanguage links) or HTML comments (<!-- comment -->
) 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.
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 Redirects for discussion. Please refer to Wikipedia's deletion policy for details and instructions.
Moving pages
[সম্পাদনা কৰক]When a page is 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). Administrators can choose to 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.
Transclusion
[সম্পাদনা কৰক]When a page called for 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 {{AFD|...}} will have the same effect as {{Afd|...}} As usual, 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 "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, Meta, other language Wikipedias, etc.) or is a special page. (In these situations a hard redirect would behave as a soft one in any case.)
- For redirects between categories. (Hard redirects will 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 {{soft redirect}} and {{category redirect}}.
See also
[সম্পাদনা কৰক]This page is referenced from the Wikipedia:Glossary. |
- Wikipedia:Visualizing redirects, for how to make links to redirects stand out (based on the
mw-redirect
CSS class) - Category:Redirect templates
- Wikipedia:Template messages/Redirect pages
- Redirect technical help at Meta-Wiki
- Hatnote examples for Redirect target pages