Help:Redirect: Difference between revisions

From BoyWiki
Created page with "{| style="width: 100%; margin-bottom:7px; border:1px solid #cedff2; padding:2px; background-color:#f5faff" |- bgcolor="#cedff2" |align="center" style="font-size:15pt; font-we..."
 
No edit summary
 
(9 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:Redirect
|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 [[WP:section|section]] header to make a redirect to a specific section of the target page in the following manner:
...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 [[WP:wikitext|wikitext]] begins with <code>#REDIRECT</code> followed by a valid [[Help:Link|wikilink]] or [[Help:Interwiki|interwikilink]]. A space is usually left before the link. (Note that some alternative capitalizations of "REDIRECT" are possible.)
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 [[Help:special page|special page]]) on the same project (English Wikipedia). In other cases soft redirects are often used – see [[#Soft redirects|below]].
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 [[France]]</nowiki></code> (redirects to the [[France]] article)
* <code><nowiki>#REDIRECT [[Apollo (mythology)]]</nowiki></code> (redirects to the [[Apollo (mythology)|Apollo]] article)
* <code><nowiki>#REDIRECT [[France#History]]</nowiki></code> (redirects to the "History" section of the [[France]] article)
* <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 Wikipedia, 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)


Any text appearing after the redirect link will be ignored in the display, but may be used to add categories, interwiki links, comments, etc.
Any text appearing after the redirect link will be ignored in the display, but may be used to add categories, interwiki links, comments, etc.
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 [[Help:category|category]] page, prefix the target pagename with a colon to prevent the redirect from showing up in the category. (Redirects from one category page to another should use soft redirects – see [[#Soft redirects|below]].) Redirects to [[Help:images|image]] pages also require the colon.
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.




==See also==
*[https://en.wikipedia.org/wiki/Help:Redirect Help:Redirect (Wikipedia)]
|}
|}
{{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

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:

#REDIRECT [[target]]

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

#REDIRECT [[target#section header]]

The pound/number sign (#) is also used to link to page anchors.

Syntax

A page will be treated as a redirect page if its wikitext begins with #REDIRECT 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 special page) on the same project (English BoyWiki).

Examples:

  • #REDIRECT [[Apollo (mythology)]] (redirects to the Apollo article)
  • #REDIRECT [[Apollo (mythology)#Hyacinth]] (redirects to the section about Hyacinth in the Apollo article)
  • #REDIRECT [[fr:France]] (appears as a redirect to the France article on French BoyWiki, but will not work as a true redirect)

Any text appearing after the redirect link will be ignored in the display, but may be used to add categories, interwiki links, comments, etc.

Note that the redirect link must be explicit – it cannot contain magic words, templates, etc.

When redirecting to a category page, prefix the target pagename with a colon to prevent the redirect from showing up in the category. Example: #REDIRECT [[:Category:Help]]

Redirects to image pages also require the colon.


See also