Help:Redirects/sv

Omdirigeringar används för att hänvisa användare från en sida till en annan. De är användbara om en specifik artikel är känt under flera namn eller inte har en allmänt accepterad stavning.

Sorters omdirigeringar
Det finns två sorters omdirigeringar:


 * Hårda omdirigeringar: Läsare som tagit sig till omdirigeringssidan tas direkt till målsidan (oftast andra sidor på samma wiki). Endast hårda omdirigeringar beskrivs i den här artikeln.
 * Mjuka omdirigeringar: Läsare stannar kvar på omdirigeringssidan men får valet att klicka på länken till målsidan. Det här uppnås oftast med mallar; läs motsvarande artikel på Meta.

Skapa en omdirigering
You may start a new page with the name you want to direct from (see ). 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:


 * 1) REDIRECT sidnamn

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.

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

Examples of valid operational redirections:


 * #REDIRECTHelp:Magic_words
 * #redirect Help:Magic_words
 * #Redirect Manual:$wgConf
 * #REDIRECT MediaWiki/fr the translated page is imposed

Example of redirection not allowed (not operational):
 * #REDIRECT although  is operational.

You should 'preview' (using the button below the Edit window, or use Alt) 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 (image) for example as follows: &#x021B3; Help:Magic words#URL encoded page names This is what you must get.

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):

1. REDIRECT sidnamn

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.

Visa en omdirigering
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.

Radera en omdirigering
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.

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.

Dubbla omdirigeringar
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 job queue. However, it tends to aggravate page move vandalism, so it is disabled by default. The __STATICREDIRECT__ magic word can be used to skip the double-redirect fix on a particular page.

En omdirigering till en sida i kategorinamnrymden
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:


 * 1) REDIRECT Category:Glossary

Suppressing a redirect
Users with the " " right may move a page without creating a redirect. By default this right is assigned to sysops and bots.

Se även

 * — för mjuka omdirigeringar.
 * — för att tillåta flera omdirigeringar efter varandra.
 * — för att omdirigera godtyckliga URL:er inifrån PHP.
 * — för att omdirigera godtyckliga URL:er inifrån PHP.