WikiIndex:Redirect: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
m (Redirect moved to WikIndex:Redirect: this is part of the WikiIndex project - basically a help page)
(clarity, wikilink, category info)
Line 1: Line 1:
If you want to redirect one page to another,
If you want to '''redirect''' one page to another existing page:


Click the word "REDIRECT" at the bottom of the edit screen, then put the page to be redirected to inside the brackets.
Click the word "REDIRECT" at the bottom of the edit screen (below the [[wp:Help:Edit summary|edit summary]] box), then put the target page to be redirected to inside the square brackets.


That puts
That puts
Line 8: Line 8:
(Or you could manually type that in yourself -- it makes no difference).
(Or you could manually type that in yourself -- it makes no difference).


the redirect keyword is case-insensitive, you can also write
the redirect ''keyword'' is case-<u>insensitive</u> (but the target page ''is'' case-sensitive), you can also write
  <nowiki>#redirect [[Destination Page]]</nowiki>
  <nowiki>#redirect [[Destination Page]]</nowiki>
Make sure that single line is the only thing on the page -- it doesn't work if even a single blank line or space comes before it in the edit box.
Make sure that this line is at the TOP of the edit box -- it will not work if even a single blank line or space comes before it in the edit box.


''(It may technically "work" if you add a few lines after it -- comments or categories -- but why would you put that information on the redirect page, where no one will see it, rather than on the destination page?)''
''(It may technically "work" if you add a few lines after it -- comments or categories -- but why would you put that information on the redirect page, where no one will see it, rather than on the destination page?)''


Chained redirects do not function automatically.  The first redirect will execute, but the process stops after one step.  The next page, containing another redirect, is shown as a link.  The user must click on the link to follow the chain.  So, each redirect should be constructed to point directly to the proper ultimate page (see also the list at [[Special:DoubleRedirects]] -- pitch in and help us get these cleaned up).
You can also add a [[Special:Categories|category]] to the redirect page, and it will then be listed in said category – but will be displayed in ''italics''.
:I can do that automatically with a bot script, so we never need to worry about it. &mdash;&nbsp;<span style="font-family: Kristen ITC, Arial;">[[User:Sean Fennel]][[User talk:Sean Fennel|@]]</span> 16:00, 6 February 2007 (PST)


For an example of a properly-done redirect, see [[wikiinfo]].
Chained redirects (also known as 'DoubleRedirects') will not function automatically.  The first redirect will execute correctly, but any subsequent redirects - the process stops after one step.  The next page, containing another redirect, is shown as a link.  The user must click on the link to follow the chain.  So, each redirect should be constructed to point directly to the proper ultimate target page (see also the list at [[Special:DoubleRedirects]] -- pitch in and help us get these cleaned up).
That mis-spelling takes you to the (properly-spelled) "Wikinfo.org" page, with a tiny note "(Redirected from Wikiinfo)".
:I can do that automatically with a [[:Category:User Bot|bot]] script, so we never need to worry about it. &mdash;&nbsp;<span style="font-family: Kristen ITC, Arial;">[[User:Sean Fennel]][[User talk:Sean Fennel|@]]</span> 16:00, 6 February 2007 (PST)


For an example of a properly-done redirect, see [[wikiinfo]].  That mis-spelling takes you to the (properly-spelled) "Wikinfo.org" page, with a tiny note "(Redirected from Wikiinfo)".


[[category:help]]
[[Category:Help|Redirect]]
[[category:FAQ]]
[[Category:FAQ|Redirect]]
[[Category:Glossary]]
[[Category:Glossary|Redirect]]
[[Category:Terms]]
[[Category:Terms|Redirect]]

Revision as of 14:49, 24 December 2011

If you want to redirect one page to another existing page:

Click the word "REDIRECT" at the bottom of the edit screen (below the edit summary box), then put the target page to be redirected to inside the square brackets.

That puts

#REDIRECT [[Destination Page]]

on the page. (Or you could manually type that in yourself -- it makes no difference).

the redirect keyword is case-insensitive (but the target page is case-sensitive), you can also write

#redirect [[Destination Page]]

Make sure that this line is at the TOP of the edit box -- it will not work if even a single blank line or space comes before it in the edit box.

(It may technically "work" if you add a few lines after it -- comments or categories -- but why would you put that information on the redirect page, where no one will see it, rather than on the destination page?)

You can also add a category to the redirect page, and it will then be listed in said category – but will be displayed in italics.

Chained redirects (also known as 'DoubleRedirects') will not function automatically. The first redirect will execute correctly, but any subsequent redirects - the process stops after one step. The next page, containing another redirect, is shown as a link. The user must click on the link to follow the chain. So, each redirect should be constructed to point directly to the proper ultimate target page (see also the list at Special:DoubleRedirects -- pitch in and help us get these cleaned up).

I can do that automatically with a bot script, so we never need to worry about it. — User:Sean Fennel@ 16:00, 6 February 2007 (PST)

For an example of a properly-done redirect, see wikiinfo. That mis-spelling takes you to the (properly-spelled) "Wikinfo.org" page, with a tiny note "(Redirected from Wikiinfo)".