Help:Redirect: Difference between revisions
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| style="width: 100%; margin-bottom:7px; border:1px solid #cedff2; padding:2px; background-color:#f5faff" | {| style="width: 100%; margin-bottom:7px; border:1px solid #cedff2; padding:2px; background-color:#f5faff" | ||
|- bgcolor="#cedff2" | |- bgcolor="#cedff2" | ||
|align="center" style="font-size:15pt; font-weight:bold; padding:5px"|Help | |align="center" style="font-size:15pt; font-weight:bold; padding:5px"|Help creating redirect pages | ||
|- | |- | ||
| | | | ||
{{box1 start}} | {{box1 start}} | ||
A '''redirect''' is a page created so that navigation to a given title will take the reader directly to a different page. A redirect is created using the syntax: | A '''redirect''' is a page created so that navigation to a given title will take the reader directly to a different page. A redirect is automatically created when a page is moved and may need to be deleted if appropriate. Redirect pages take up very little server space and are useful for the search function in aiding navigation to the correct page. | ||
A redirect is created using the syntax: | |||
<pre> | <pre> | ||
#REDIRECT [[target]] | #REDIRECT [[target]] | ||
</pre> | </pre> | ||
...where "target" is the name of the target page. It is also possible to add a | ...where "target" is the name of the target page. It is also possible to add a section header to make a redirect to a specific section of the target page in the following manner: | ||
<pre> | <pre> | ||
#REDIRECT [[target#section header]] | #REDIRECT [[target#section header]] | ||
Line 17: | Line 19: | ||
==Syntax== | ==Syntax== | ||
A page will be treated as a redirect page if its | A page will be treated as a redirect page if its wikitext begins with <code>#REDIRECT</code> followed by a valid wikilink or interwikilink. A space is usually left before the link. (Note that some alternative capitalizations of "REDIRECT" are possible.) | ||
Note that a redirect will work as intended (i.e. take the reader directly to the target page) only if the link is to an existing normal page (not a | Note that a redirect will work as intended (i.e. take the reader directly to the target page) only if the link is to an existing normal page (not a special page) on the same project (English BoyWiki). | ||
Examples: | Examples: | ||
* <code><nowiki>#REDIRECT [[ | * <code><nowiki>#REDIRECT [[Apollo (mythology)]]</nowiki></code> (redirects to the [[Apollo (mythology)|Apollo]] article) | ||
* <code><nowiki>#REDIRECT [[ | * <code><nowiki>#REDIRECT [[Apollo (mythology)#Hyacinth]]</nowiki></code> (redirects to the section about [[Apollo (mythology)#Hyacinth|Hyacinth]] in the Apollo article) | ||
* <code><nowiki>#REDIRECT [[fr:France]]</nowiki></code> (appears as a redirect to the [[France]] article on French BoyWiki, but will not work as a true redirect) | * <code><nowiki>#REDIRECT [[fr:France]]</nowiki></code> (appears as a redirect to the [[France]] article on French BoyWiki, but will not work as a true redirect) | ||
Line 30: | Line 32: | ||
Note that the redirect link must be explicit – it cannot contain [[Help:Magic words|magic words]], templates, etc. | Note that the redirect link must be explicit – it cannot contain [[Help:Magic words|magic words]], templates, etc. | ||
When redirecting to a | When redirecting to a category page, prefix the target pagename with a colon to prevent the redirect from showing up in the category. Example: <code><nowiki>#REDIRECT [[:Category:Help]]</nowiki></code> | ||
Redirects to [[Help:images|image]] pages also require the colon. | |||
Line 37: | Line 41: | ||
|} | |} | ||
{{Boxes end}} | {{Boxes end}} | ||
{{Navbox Help pages|collapsed}} | |||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
[[Category:Help|Help]] | [[Category:Help|Help]] | ||
__NOTOC__ | __NOTOC__ |
Latest revision as of 18:37, 1 November 2015
Help creating redirect pages | |
|