Help:Redirects/zh

Redirects are used to forward users from one page name to another. They can be useful if a particular article is referred to by multiple names, or has alternative punctuation, capitalization or spellings.

建立重定向
You may start a new page with the name you want to direct from (see Help:Starting a new page). You can also use an existing page that you are making inactive as a page by going to that page and using the "edit" tab at the top. In either case, you will be inserting the following code at the very first text position of the Edit window for the page: where pagename is the name of the destination page. The word "redirect" is not case-sensitive, but there must be no space before the "#" symbol. Any text before the code will disable the code and prevent a redirect. Any text or regular content code after the redirect code will be ignored (and should be deleted from an existing page). However, to put or keep the current page name listed in a Category, the usual tag for that category is entered or kept on a line after the redirect code entry.
 * 1) REDIRECT 页面名称

You should 'preview' (using the button below the Edit window, or use Alt-P) to check that you have entered the correct destination page name. The preview page will not look like the resulting redirect page, it will look like a numbered list, with the destination page in blue: 1. REDIRECT 页面名称 If the pagename as you typed it is not a valid page, it will show in red. Until there is a valid destination page, you should not make the redirect.

觀看重定向
After making a redirect at a page, you can no longer get to that page by using its name or by any link using that name. However, near the top of the destination page, a notice that you have been forwarded appears, with the source pagename as an active link to it. Click this to get back to the redirected page, showing the large bent arrow symbol and the destination for the redirect.

By doing this, you can do all the things that any wiki page allows. You can go to the associated discussion page to discuss the redirect. You can view the history of the page, including a record of the redirect. You can edit the page if the redirect is wrong, and you can revert to an older version to remove the redirect.

刪除重定向
There's generally no need to delete redirects. They do not occupy a significant amount of database space. If a page name is vaguely meaningful, there's no harm, and some benefit, in having it as a redirect to the more relevant or current page.

如果你真的需要刪除重定向(ex.假如該名字具有誹謗性)，或是你希望減少人們從該名字切入文章的機會，那麼就照之前的方法進入後，跟著Help:Deleting a page步驟做即可.

雙重重定向
A double redirect is a page redirecting to a page which is itself a redirect, and it will not work. Instead, people will be presented with a view of the next redirect page. This is a deliberate restriction, partly to prevent infinite loops, and partly to keep things simple.

However, you could look out for double redirects and eliminate them by changing them to be 1-step redirects instead. You are most likely to need to do this after a significant page move. Use the "what links here" toolbox link to find double redirects to a particular page, or use Special:DoubleRedirects to find them throughout the whole wiki.

There is an option,, to automatically fix double redirects with a. However, it tends to aggravate page move vandalism, so it is disabled by default. The __STATICREDIRECT__ can be used to skip the double-redirect fix on a particular page.

重定向到分类名字空间中的页面
要重定向到一个分类页并阻止该分类中显示这个重定向，请在“Category”前加个冒号，否则该重定向页也会被归类到该分类.
 * 1) REDIRECT Category:Glossary

指向分類的重定向
Users with the suppressredirect right may move a page without creating a redirect. By default this right is assigned to sysops and bots.

参见

 * Template:softredirect
 * Manual:Redirect table
 * Manual:$wgMaxRedirects——允许多个连续重定向
 * Category:Redirect extensions