From Celeste Wiki
Jump to navigation Jump to search

<languages/> Template:PD Help Page <translate> Redirects are used to forward users from one page name to another.</translate> <translate> They can be useful if a particular article is referred to by multiple names, or has alternative punctuation, capitalization or spellings.</translate>


Types of redirects[edit source]

Two types of redirections exist:

  • Hard redirection: Readers navigated to the redirect page are taken directly to the target page (usually other pages of the same wiki).</translate> <translate> Only hard redirection is described in this current article.</translate>


  • Soft redirection: Readers are left on the redirect page but given the option of clicking the link to the target page.</translate> <translate> Usually this is achieved via a template; see corresponding [[<tvar|1>m:Special:MyLanguage/Soft redirect</>|article on Meta]].</translate>

Template:Ll</> enabled (such as most public Wikimedia projects), it's not possible to create a hard redirect to special pages (e.g. <tvar">[[#ref_1>Template:Ll</> enabled (such as most public Wikimedia projects), it's not possible to create a hard redirect to special pages (e.g. <tvar|^2>Special:MyLanguage</>) or pages located on another wiki; they will be automatically "softened".</translate>]] 


Creating a redirect[edit source]

</translate> <translate> You may start a new page with the name you want to direct from (see <tvar|1>Template:Ll</>).</translate> <translate> 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.</translate> <translate> In either case, you will be inserting the following code at the very first text position of the Edit window for the page:</translate>

#REDIRECT [[<translate> pagename</translate>]]

<translate> where pagename is the name of the destination page.</translate> <translate> The word "<tvar|1>redirect</>" is not case-sensitive, but there must be no space before the "<tvar|2>#</>" symbol.</translate> <translate> Any text before the code will disable the code and prevent a redirect.</translate> <translate> Any text or regular content code after the redirect code will be ignored (and should be deleted from an existing page).</translate> <translate> 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.</translate>

<translate> Redirections can be simple page names or specified using a namespace.</translate> <translate> They can be suffixed with a section name if you have the corresponding anchor defined on the target page.</translate>

<translate> Examples of valid operational redirections: </translate>

  • #REDIRECT[[Help:Magic_words#Page_names]]
  • #redirect [[Help:Magic_words#URL_encoded_page_names]]
  • #Redirect [[Manual:$wgConf]]
  • #REDIRECT [[MediaWiki/fr]] <translate> the translated page is imposed</translate>

<translate> Example of redirection not allowed (not operational):

  • <tvar|1>#REDIRECT [[{{ll|Help:Magic_words#Page_names}}]]</> although <tvar|2>Template:Ll</> is operational.

You should 'preview' (using the button below the Edit window, or use <tvar|1>Template:Key press</>) to check that you have entered the correct destination page name.

When redirection is valid (and operational) you will see in the previewed text the name of the target you have provided, following a 'next line' icon ([<tvar|url>redirect-ltr.png</> image]) for example as follows:</translate>

 Help:Magic words#URL encoded page names

<translate> This is what you must get.</translate>

<translate> When redirection is not valid, the previewed text looks like a numbered list item with the destination page in blue: (it will also be the contents of the redirection page if you save as it is): </translate>

1. REDIRECT  <translate> pagename</translate>

<translate> If the pagename as you typed it is not a valid page, it will show in red.</translate> <translate> Until there is a valid destination page, you should not make the redirect.</translate>


Viewing a redirect[edit source]

</translate> <translate> 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.</translate> <translate> 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.</translate> <translate> Click this to get back to the redirected page, showing the large bent arrow symbol and the destination for the redirect.</translate>

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


Deleting a redirect[edit source]

</translate> <translate> There's generally no need to delete redirects.</translate> <translate> They do not occupy a significant amount of database space.</translate> <translate> 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.</translate>

<translate> If you do need to delete a redirect, e.g. if the page name is offensive, or you wish to discourage people from referring to a concept by that name, then you simply go to the redirect page as mentioned above, and follow the procedures at <tvar|1>Template:Ll</>.

Double redirects[edit source]

</translate> <translate> A double redirect is a page redirecting to a page which is itself a redirect, and it will not work.</translate>[1] <translate> Instead, people will be presented with a view of the next redirect page.</translate> <translate> This is a deliberate restriction, partly to prevent infinite loops, and partly to keep things simple.</translate>

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

<translate> There is an option, <tvar|1>Template:Ll</>, to automatically fix double redirects with a [[<tvar|2>Special:MyLanguage/Manual:Job queue</>|job queue]].</translate> <translate> However, it tends to aggravate page move vandalism, so it is disabled by default.</translate> <translate> The <tvar|1>__STATICREDIRECT__</> [[<tvar|2>Special:MyLanguage/Help:Magic words#Behavior switches</>|magic word]] can be used to skip the double-redirect fix on a particular page.</translate>


A redirect to a page in the category namespace[edit source]

To redirect to a category page and prevent the redirect appearing in this category, precede the word "Category" with a colon, otherwise the redirect page will also be categorized to the category itself: </translate>

#REDIRECT [[:Category:Glossary]]


Suppressing a redirect[edit source]

</translate> <translate> Users with the "<tvar|1>suppressredirect</>" [[<tvar|2>Special:MyLanguage/Manual:User rights</>|right]] may move a page without creating a redirect.</translate> <translate> By default this right is assigned to sysops and bots.</translate>


See also[edit source]



References[edit source]


  1. <translate> This may be controlled by <tvar|1>Template:Ll</>.</translate>

[[Category:Help{{#translation:}}|Redirects]] [[Category:Redirect{{#translation:}}]]