Help:Redirect

From IslandWood Education Wiki
Jump to: navigation, search

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.  For example, E1T1, E1t1 and e1t1 are all different pages.  Rather than having three copies floating around, the second two are set up as redirects that point to the first one.  Redirects don't have to be just for possible spelling or case combinations, but can also be conceptual.  For example, "Haliaeetus leucocephalus" is the latin name for "Bald Eagle" so we have a page titled "Haliaeetus leucocephalus" that redirects the viewer to the "Bald Eagle" page.

Creating a redirect

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" button at the top.

Switch to WikiText mode in the editor.

Editor-wikitext.jpg

Insert the following code at the very first text position of the Edit window for the page:

#REDIRECT [[pagename]]

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.

You should use the 'preview' button below the Edit window, or 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  pagename

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.

Viewing a 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; and they do not show up in wiki search results, either. 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.