PGI logo cropped.png
Congressional Millionaire’s Club
The Personal Gain Index shines a light on how members of Congress benefit during their tenure.





Difference between revisions of "Help:Redirecting a page"

From Ballotpedia
Jump to: navigation, search
m
(added section in double redirects)
Line 41: Line 41:
  
 
If this is the case with a duplicate page, as in situations '''1''' and '''2''' above, then the only way to preserve page views is to delete the page with the name you want to use, then move the less desirable page name to the formerly deleted page, leaving behind a redirect in the moving process. As is the case with redirecting any duplicate pages, you will want to be sure to merge the content from these two pages before deleting and moving.
 
If this is the case with a duplicate page, as in situations '''1''' and '''2''' above, then the only way to preserve page views is to delete the page with the name you want to use, then move the less desirable page name to the formerly deleted page, leaving behind a redirect in the moving process. As is the case with redirecting any duplicate pages, you will want to be sure to merge the content from these two pages before deleting and moving.
 +
 +
==Double redirects==
 +
Redirects that lead to other redirect pages are not automatically followed; this type of redirect chain is known as a double redirect. Double redirects are often created in the [[Help:Moving a page|moving]] process. For that reason, any time a page is moved, you should check to ensure that your move did not create one or more double redirects.
 +
 +
To check to see if a double redirect has been created from a move, check the "What links here" option for the page, which can be found under the tools menu on the left side of page.
 +
 +
:[[File:What links here.png|125px|border]]
 +
 +
If there are multiple levels of redirects, as in the image below, you need to fix that situation. To correct the redirects, open all redirects that are not directed into the content page, and point to the new location directly.
 +
 +
:[[File:Double redirect example.png|350px|border]]
 +
 +
You can also see a list of all double redirects across the wiki by checking [[Special:DoubleRedirects]]. This list can be found under the [[Special:SpecialPages|special pages]]. To correct double redirects found in this list, open the first page in the redirect chain, copy the page name of the last page in the chain, and update the first redirect with your copied text.
 +
 +
:[[File:Double redirects.png|750px|border]]
  
 
==See also==
 
==See also==

Revision as of 12:21, 21 February 2014

Editing Help
1328101905 Help.png
Index
Editing guide
Cheatsheet
Policies
Copyright
Textual standards
Visual standards
Glossary of terms
Edit review process

A redirect is a page with no content other than:

#REDIRECT [[pagename]]

Where pagename is the article or page to redirect to.

This page explains why you might want to create a re-direct and how to do it.

Why create a redirect?

You may create a redirect when:

  1. There are two pages on Ballotpedia about the same subject. For example, two pages about same judge, one named Michael Corson and another named Michael N. Corson.
    1. In this case, when there are two articles about the same subject on Ballotpedia, you could just delete one of the articles, but it is preferred that you instead redirect one of the repetitive articles to the other article. To do so, you will need to first merge the content from both of the pages onto the page with the name you intend to use as your content page. The page you select as your content page should be properly named according to the naming conventions. If both pages are properly named, you should select the repetitive page that has the most commonly used name for the subject.
  2. A stub article exists on Ballotpedia about an organization or subject that is part of a larger issue that is explored elsewhere on Ballotpedia in a larger, more comprehensive article.
    1. When this occurs, an editor may have started an article about a subdivision of a larger organization, but the article is short, only mildly informative and you expect it to remain that way (that is, you don't expect that you or anyone else will expand or improve upon it). In that case, it is advisable to create a redirect from the article about the subdivision to an article about its national organization.
      If this occurs, redirect the less informative, more poorly written article to the better article. However, if the less informative article has the correct title for the subject, according to Ballotpedia's naming conventions, you should redirect the article that is currently better to the article that has the better title. When so doing, make sure to merge the text from the article you are going to redirect and add it to the selected article.
  3. A page could be called by two or more names, and you want to make the subject easier to locate for visitors.
    1. With some subjects, there may be multiple pages that people know the subject by. For example, help with moving a page on Ballotpedia could reasonably be called Help:Moving a page or Help:Renaming a page. In cases like this,

Creating a redirect

Merging pages

In the case of situations 1 and 2 above:

  1. Open several tabs on your browser
  2. Set one tab to the article you are going to redirect
  3. Set another tab to the article you are going to redirect to
  4. Open the editing screen on the article you are going to redirect
  5. Copy and save the text in that article, because you need to integrate it with the text on the other article, if that will improve the other article
  6. Delete the text from the page you are about to redirect
  7. In the now-empty editing screen, type #REDIRECT [[pagename]]
  8. Click "save"

Creating a page for redirect

In the case of situation 3 above:

  1. Create the page name you want to redirect
  2. In the new, empty editing screen, type #REDIRECT [[pagename]]
  3. Click "save"

Preserving page views

When you redirect a page, the page views will stay on the redirected page. For high profile pages or pages with many views, it is preferable to move the page views with the content. If you need to redirect a page and preserve the page views, you can move the page.

If this is the case with a duplicate page, as in situations 1 and 2 above, then the only way to preserve page views is to delete the page with the name you want to use, then move the less desirable page name to the formerly deleted page, leaving behind a redirect in the moving process. As is the case with redirecting any duplicate pages, you will want to be sure to merge the content from these two pages before deleting and moving.

Double redirects

Redirects that lead to other redirect pages are not automatically followed; this type of redirect chain is known as a double redirect. Double redirects are often created in the moving process. For that reason, any time a page is moved, you should check to ensure that your move did not create one or more double redirects.

To check to see if a double redirect has been created from a move, check the "What links here" option for the page, which can be found under the tools menu on the left side of page.

What links here.png

If there are multiple levels of redirects, as in the image below, you need to fix that situation. To correct the redirects, open all redirects that are not directed into the content page, and point to the new location directly.

Double redirect example.png

You can also see a list of all double redirects across the wiki by checking Special:DoubleRedirects. This list can be found under the special pages. To correct double redirects found in this list, open the first page in the redirect chain, copy the page name of the last page in the chain, and update the first redirect with your copied text.

Double redirects.png

See also