Difference between revisions of "Help:Redirect"

From The Utopian Encyclopedia
Jump to: navigation, search
(Created page with 'A '''redirect''' is a Wikipedia page starting with: <nowiki>#REDIRECT [[</nowiki>''Article''<nowiki>]]</nowiki> where ''Article'' is the target page. A redirect is not an artic...')
 
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
A '''redirect''' is a Wikipedia page starting with:
+
{{Help}}
 +
{{verdana}}A Redirect causes a user to be diverted to another page.
  
<nowiki>#REDIRECT [[</nowiki>''Article''<nowiki>]]</nowiki>
+
For example, if you wanted to direct all users from the article '''Swirve''' to '''OMAC''', at the top of the '''Swirve''' page you would insert -
 +
  <nowiki>#REDIRECT [[</nowiki>''OMAC''<nowiki>]]</nowiki>
  
where ''Article'' is the target page. A redirect is not an article, but it sends the reader to an article, usually from an alternative title.
+
Also ensure that the page '''Swirve''' does not contain any other content other than the one line of code above.
 
 
For example, if you type "UK" in the search box, or if you make a wikilink: [[UK]], you will be taken to the article [[United Kingdom]], with a note at the top of the page: "(Redirected from UK)". The article [[UK]] contains no content other than the one line of code shown above, as you can see [http://en.wikipedia.org/w/index.php?title=UK&redirect=no here].
 
 
 
==How to make a redirect (redirect command)==
 
To redirect page A (the '''redirecting page''') to a different page B (the '''target page'''), enter the following '''redirecting command''' at the top of the redirecting page.
 
  
 +
=Create a Redirect Command=
 +
==Redirecting to a Page==
 +
To redirect page A (the '''redirecting page''') to a different page B (the '''target page'''), enter the following '''redirecting command''' at the top of the redirecting page:
 
  '''<nowiki>#REDIRECT [[NAME OF PAGE B]]</nowiki>'''
 
  '''<nowiki>#REDIRECT [[NAME OF PAGE B]]</nowiki>'''
  
For example, to redirect the [{{SERVER}}{{localurl:Cambridge University|redirect=no}} Cambridge University] page (redirecting page) to the [[University of Cambridge]] page (target page), [{{SERVER}}{{localurl:Cambridge University|action=edit}} edit] the Cambridge University page and enter:
+
* Check your spelling
 
+
* Make sure Article name is capitalized exactly like the main article
'''<nowiki>#REDIRECT [[University of Cambridge]]</nowiki>'''
 
 
 
In addition to checking your spelling, make sure you capitalize the article name exactly like the main article is capitalized.  Alternative capitalizations sometimes cause halts in redirects.
 
----
 
You can and should also give a reason for a redirect:
 
 
 
'''<nowiki>#REDIRECT [[University of Cambridge]]{{R from alternative name}}</nowiki>'''
 
 
 
See [[#reasons|below]] for an incomplete list of possible reasons.
 
 
 
===Redirects to page sections===
 
You can also redirect to [[Help:Section|page sections]] within an article.  See [[Meta:Help:Redirect#A redirect to an anchor]]:
 
 
 
'''<nowiki>#REDIRECT [[University of Cambridge#History]]{{R from alternative name}}{{R to section}}</nowiki>'''
 
 
 
Consider that when the target page is displayed, it is likely that the top of the page will not be shown, so the user may not see the helpful "(redirected from... )" text unless they know to scroll back to the top. This is less likely to cause confusion if the redirect is to a heading with the same name as the redirect; see for example "[[Argument from contingency]]".
 
 
 
One option for documenting a redirect to a section heading is to leave a comment using '''<nowiki><!-- ... ---></nowiki>''' to remind others that the title is linked, so that if the title is altered, the redirect can be changed. For example:
 
 
 
<nowiki> ==Evolutionary implications== <!-- This section is linked from redirect "[[Richard Dawkins]]" --> </nowiki>
 
 
 
A redirect to a non-existent section&nbsp;– perhaps due to a misspelling or name change&nbsp;– will simply lead to the top of the target article.
 
 
 
A more resilient approach is to insert an {{tl|Anchor}} inside the heading, copying the heading's current title as a parameter to the template; then, even if the heading is renamed, its original anchor is preserved and the existing anchor links will still work. {{tl|Anchor}} will take multiple parameters, so several names and variations can be accommodated. Documenting terms expected in the subsection without confusing the readers is encouraged. The above example becomes:
 
 
 
<nowiki>==Evolutionary implications {{Anchor|Evolutionary implications}}==</nowiki>
 
 
 
 
This method however has an unwanted side effect: the <nowiki>{{Anchor|parameters}}</nowiki> will appear in section edit summaries:
 
/* Some section title <nowiki>{{Anchor|parameters}}</nowiki> */ ''the user summary''
 
  
The following markup avoids this side effect:
+
==Redirecting to a Section in a Page==
 +
You can also redirect to sections within an article.
 +
'''<nowiki>#REDIRECT [[ARTICLE B#SectionName]]</nowiki>'''
  
<nowiki>==Evolutionary implications ==</nowiki>
+
Consider that when the target page is displayed, it is likely that the top of the page will not be shown, so the user may not see the helpful "(redirected from... )" text unless they know to scroll back to the top.
<nowiki>{{Anchor|Evolutionary implications}}</nowiki>
 
  
or this real example, which does have a convenient nearby section title:
+
A redirect to a non-existent section – perhaps due to a misspelling or name change, will simply lead to the top of the target article.
<nowiki>==Table of AWG wire sizes==</nowiki>
 
<nowiki>{{Anchor|Table of AWG wire sizes}} <!-- redirect target and direct link from other articles --></nowiki>
 
  
{{tlx|Anchor|any text for an anchor link}} will also work in the body text of a long section where one might not want a section or sub-section title, such as above a table referenced by another article.
+
=Undesirable redirects=
 +
==Double redirects==
 +
A '''double redirect''' is a redirect which points to another redirect. Avoid making them; they do not work (to prevent endless looping, a redirect will not "pass through" more than one entry).
  
===Undesirable redirects===
+
If you move or rename a page, it is best to click on ''What Links Here'' to see if any redirects exist, and to change them to redirect straight to the new title.
====Double redirects====
 
A '''double redirect''' is a title that redirects to another redirect. Double redirects are usually created after a move when old redirects are left unchanged and pointing toward an old name. This is one reason good editors check links and observe if the link traversed was a redirect or direct path.
 
  
Avoid making [[Wikipedia:Double redirects|double redirects]] (a redirect that points to another redirect); they do not work (to prevent endless looping, a redirect will not "pass through" more than one entry).
+
==Self-redirect==
 +
A self-redirect is a title that redirects straight to the page on which the link is found. This may occur if a redirect is created from a red link on the page, or if the title once was an article of its own but was merged.  
  
If you [[WP:MOVE|move or rename]] a page, it is best to click on [[WP:WHATLINKSHERE|"What links here"]] to see if any redirects exist, and to change them to redirect straight to the new title.
+
An exception is a redirect to a section within the article, especially in a long article that cannot be viewed all at once on an average-sized computer screen.  
  
====Self-redirect====
+
==Nonfunctional redirects==
A self-redirect is a title that redirects straight to the page on which the link is found. This may occur if a redirect is created from a [[WP:RED|red link]] on the page, or if the title once was an article of its own but was [[WP:MERGE|merged]]. This is particularly common in a series of new inter-related topics moving together from the stub stage. Many editors despise red links, even temporarily in new topics. The team working the articles may well intend to expand such redirects to full articles, so the cyclical links are place holders; in such cases, checking the page histories should make it clear whether to make a corrective edit.
+
Redirects to other Wikimedia projects, other websites, or special pages do not work. These should be avoided or replaced with a soft redirect template.
  
An exception is a redirect to a section within the article, especially in a long article that cannot be viewed all at once on an average-sized computer screen. Essentially, this is comparable to a ''"see above"'' or ''"see below,"'' accomplished by wikilinking <nowiki>[[#Heading]]</nowiki> (no article name, just the heading name prefixed by #).
 
  
====Nonfunctional redirects====
+
[[Category:Help Pages]]
Redirects to other Wikimedia projects, other websites, or [[Special:SpecialPages|special pages]] do not work. These should be avoided or replaced with a [[Template:Softredirect|soft redirect]] template.
 

Latest revision as of 02:08, 6 July 2009

This is part of the Utopia WIKI Help Guide Series.

This Page references Utopia Wiki's official guide to Redirect. Please use common sense.


A Redirect causes a user to be diverted to another page.

For example, if you wanted to direct all users from the article Swirve to OMAC, at the top of the Swirve page you would insert -

  #REDIRECT [[OMAC]]

Also ensure that the page Swirve does not contain any other content other than the one line of code above.

Create a Redirect Command

Redirecting to a Page

To redirect page A (the redirecting page) to a different page B (the target page), enter the following redirecting command at the top of the redirecting page:

#REDIRECT [[NAME OF PAGE B]]
  • Check your spelling
  • Make sure Article name is capitalized exactly like the main article

Redirecting to a Section in a Page

You can also redirect to sections within an article.

#REDIRECT [[ARTICLE B#SectionName]]

Consider that when the target page is displayed, it is likely that the top of the page will not be shown, so the user may not see the helpful "(redirected from... )" text unless they know to scroll back to the top.

A redirect to a non-existent section – perhaps due to a misspelling or name change, will simply lead to the top of the target article.

Undesirable redirects

Double redirects

A double redirect is a redirect which points to another redirect. Avoid making them; they do not work (to prevent endless looping, a redirect will not "pass through" more than one entry).

If you move or rename a page, it is best to click on What Links Here to see if any redirects exist, and to change them to redirect straight to the new title.

Self-redirect

A self-redirect is a title that redirects straight to the page on which the link is found. This may occur if a redirect is created from a red link on the page, or if the title once was an article of its own but was merged.

An exception is a redirect to a section within the article, especially in a long article that cannot be viewed all at once on an average-sized computer screen.

Nonfunctional redirects

Redirects to other Wikimedia projects, other websites, or special pages do not work. These should be avoided or replaced with a soft redirect template.