Help:Redirect: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Removing documentation → to MediaWiki.org
m Reverted changes by 204.108.212.220 (talk) to last version by Mtarch11
 
(25 intermediate revisions by 21 users not shown)
Line 1: Line 1:
<languages />
<languages />
{{ambox|text=<translate>For technical documentation about redirects, please visit [[<tvar name=1>Special:MyLanguage/Help:Redirects</tvar>|dedicated help page on Mediawiki.org]].</translate>}}
{{ambox|text=<translate><!--T:1--> For technical documentation about redirects, please visit [[<tvar name=1>mw:Special:MyLanguage/Help:Redirects</tvar>|dedicated help page on Mediawiki.org]].</translate>}}


<translate>
<translate>
<!--T:2-->
'''Redirects''' have different use cases through Wikimedia wikis.
'''Redirects''' have different use cases through Wikimedia wikis.


== Local policies ==
== Local policies == <!--T:3-->


<!--T:4-->
Some projects have policies on ''what'' redirects should exist. For example, on the [[<tvar name="1">wiktionary:</tvar>|English Wiktionary]], most redirects are prohibited by policy.
Some projects have policies on ''what'' redirects should exist. For example, on the [[<tvar name="1">wiktionary:</tvar>|English Wiktionary]], most redirects are prohibited by policy.


=== Broken redirects ===
=== Broken redirects === <!--T:5-->


<!--T:6-->
On many wikis administrators simply delete them, but it is sometimes useful to keep a broken redirect and wait for the creation of the target, or to set a new target.
On many wikis administrators simply delete them, but it is sometimes useful to keep a broken redirect and wait for the creation of the target, or to set a new target.


== Purposes of a redirect ==
== Purposes of a redirect == <!--T:7-->
</translate>
</translate>
* <translate>Allow access in the case that a page name is provided:</translate>
* <translate><!--T:8--> Allow access in the case that a page name is provided:</translate>
** <translate>which is an alternative name for the subject</translate>
** <translate><!--T:9--> which is an alternative name for the subject</translate>
** <translate>which is a name for a subtopic (in this case one may use a redirect to a section)</translate>
** <translate><!--T:10--> which is a name for a subtopic (in this case one may use a redirect to a section)</translate>
** <translate>which uses alternative capitalization and hyphenation</translate>
** <translate><!--T:11--> which uses alternative capitalization and hyphenation</translate>
** <translate>which uses alternative spelling</translate>
** <translate><!--T:12--> which uses alternative spelling</translate>
** <translate>which has a common misspelling</translate>
** <translate><!--T:13--> which has a common misspelling</translate>
* <translate>Provide a way of conveniently going to a page (shortcut).</translate>
* <translate><!--T:14--> Provide a way of conveniently going to a page (shortcut).</translate>
* <translate>Keep links to a page active after it has been moved (even if internal links are updated, this still applies for links from outside; also for [[<tvar name="1">Special:MyLanguage/Help:Edit summary#Internal and interwiki links in edit summaries</tvar>|links in edit summaries]]).</translate>
* <translate><!--T:15--> Keep links to a page active after it has been moved (even if internal links are updated, this still applies for links from outside; also for [[<tvar name="1">Special:MyLanguage/Help:Edit summary#Internal and interwiki links in edit summaries</tvar>|links in edit summaries]]).</translate>


<translate>
<translate>
=== Special purposes ===
=== Special purposes === <!--T:16-->
</translate>
</translate>
* <translate>Conveniently linking indirectly to a page, without the need for a [[<tvar name="1">Special:MyLanguage/Help:Piped link</tvar>|piped link]]. However, a piped link is in some respects even better than relying on a redirect.</translate>
* <translate><!--T:17--> Conveniently linking indirectly to a page, without the need for a [[<tvar name="1">Special:MyLanguage/Help:Piped link</tvar>|piped link]]. However, a piped link is in some respects even better than relying on a redirect.</translate>
* <translate>Allowing a link title independent of the final link target; one creates a page whose name is the desired link title, and which redirects to the desired target page. See e.g. <tvar name="q">[[w:Template:Ft]]</tvar>, containing <tvar name="2"><nowiki>[[30.48 cm|ft]]</nowiki></tvar>, with the page <tvar name="3">[[w:30.48 cm]]</tvar> redirecting to <tvar name="4">[[w:Foot (unit of length)]]</tvar>. The link title "<tvar name="5">30.48 cm</tvar>" informs in the hover box about the unit "ft" even without following the link to the article about this unit. See also <tvar name="6">{{ll|Help:Advanced editing}}</tvar> for another technique with a similar result.</translate>
* <translate><!--T:18--> Allowing a link title independent of the final link target; one creates a page whose name is the desired link title, and which redirects to the desired target page. See e.g. <tvar name="q">[[w:Template:Ft]]</tvar>, containing <tvar name="2"><nowiki>[[30.48 cm|ft]]</nowiki></tvar>, with the page <tvar name="3">[[w:30.48 cm]]</tvar> redirecting to <tvar name="4">[[w:Foot (unit of length)]]</tvar>. The link title "<tvar name="5">30.48 cm</tvar>" informs in the hover box about the unit "ft" even without following the link to the article about this unit. See also <tvar name="6">{{ll|Help:Advanced editing}}</tvar> for another technique with a similar result.</translate>


<translate>
<translate>
<!--T:19-->
When creating new redirects, bear in mind that creating too many redirects can clutter up the [[<tvar name="1">Special:MyLanguage/Help:Searching</tvar>|search results page]], which can hinder users. Also, don't spend too much time creating redirects. Often it's more important to spend time improving the quality of the target page. A piped link is another way to make a link to a page with a name which does not occur in the first page.
When creating new redirects, bear in mind that creating too many redirects can clutter up the [[<tvar name="1">Special:MyLanguage/Help:Searching</tvar>|search results page]], which can hinder users. Also, don't spend too much time creating redirects. Often it's more important to spend time improving the quality of the target page. A piped link is another way to make a link to a page with a name which does not occur in the first page.


== Using redirects for inexisting but expected pages ==
== Using redirects for inexisting but expected pages == <!--T:20-->


<!--T:21-->
When an inexisting page Subtopic could be created as a subtopic of Topic page, there are the following possibilities:
When an inexisting page Subtopic could be created as a subtopic of Topic page, there are the following possibilities:
</translate>
</translate>
# <translate>Redirect Subtopic to Topic, use the [[<tvar name="1">mw:Special:MyLanguage/Help:What links here</tvar>|backlink]] to go from A to B (disadvantage: not very inviting to create a new content page B; inconvenient if A has many backlinks).</translate>
# <translate><!--T:22--> Redirect Subtopic to Topic, use the [[<tvar name="1">mw:Special:MyLanguage/Help:What links here</tvar>|backlink]] to go from A to B (disadvantage: not very inviting to create a new content page B; inconvenient if A has many backlinks).</translate>
# <translate>Insert a red link in Topic to Subtopic as invitation or preparation for creating page Subtopic; use the backlink to go from Subtopic to Topic (disadvantage: not obvious for newbie, much less convenient than automatic redirect, especially if B has many backlinks).</translate>
# <translate><!--T:23--> Insert a red link in Topic to Subtopic as invitation or preparation for creating page Subtopic; use the backlink to go from Subtopic to Topic (disadvantage: not obvious for newbie, much less convenient than automatic redirect, especially if B has many backlinks).</translate>
# <translate>Both (indirect self-link on Topic). To go from Topic to Subtopic, click the link from Topic to Subtopic, which brings you back to Topic, and use the link in the redirect message (for detecting a redirect see hereinbefore; however, there is no distinction between a redirect back, and an onward redirect) (disadvantage, as far as not yet mentioned: not obvious for newbie).</translate>
# <translate><!--T:24--> Both (indirect self-link on Topic). To go from Topic to Subtopic, click the link from Topic to Subtopic, which brings you back to Topic, and use the link in the redirect message (for detecting a redirect see hereinbefore; however, there is no distinction between a redirect back, and an onward redirect) (disadvantage, as far as not yet mentioned: not obvious for newbie).</translate>
# <translate>Ditto but with a soft redirect from Subtopic to Topic, i.e. a page only containing something like "See [<nowiki/>[Topic]]"; one can see at Topic that Subtopic is very short using the [[<tvar name="1">Special:MyLanguage/Help:Link#Stub feature</tvar>|stub feature]] (disadvantages: a soft redirect is non-standard; people who do not know about its reason may change it in a regular redirect; is a little less convenient than automatic redirect; requires stub feature setting)</translate>
# <translate><!--T:25--> Ditto but with a soft redirect from Subtopic to Topic, i.e. a page only containing something like "See [<nowiki/>[Topic]]"; one can see at Topic that Subtopic is very short using the [[<tvar name="1">Special:MyLanguage/Help:Link#Stub feature</tvar>|stub feature]] (disadvantages: a soft redirect is non-standard; people who do not know about its reason may change it in a regular redirect; is a little less convenient than automatic redirect; requires stub feature setting)</translate>
# <translate>Subtopic is a redirect, link from Topic to Subtopic with "<tvar name="code"><code>redirect=no</code></tvar>" parameter, or link to Subtopic's edit page, e.g. [<tvar name="url">https://meta.wikimedia.org/w/index.php?title=Template&redirect=no</tvar> Template] and [<tvar name="url2">https://meta.wikimedia.org/w/wiki.phtml?title=Template&action=edit</tvar> start page Template], respectively.</translate>
# <translate><!--T:26--> Subtopic is a redirect, link from Topic to Subtopic with "<tvar name="code"><code>redirect=no</code></tvar>" parameter, or link to Subtopic's edit page, e.g. [<tvar name="url">https://meta.wikimedia.org/w/index.php?title=Template&redirect=no</tvar> Template] and [<tvar name="url2">https://meta.wikimedia.org/w/wiki.phtml?title=Template&action=edit</tvar> start page Template], respectively.</translate>


<translate>
<translate>
<!--T:27-->
In the 3rd and 4th cases, especially if Topic has a list of links to pages Subtopic, one can mark the links with more info, e.g. by bolding, and explain the marking.
In the 3rd and 4th cases, especially if Topic has a list of links to pages Subtopic, one can mark the links with more info, e.g. by bolding, and explain the marking.


== See also ==
== See also == <!--T:28-->
</translate>
</translate>
* [[Special:MyLanguage/Help:Link#Stub feature|<translate>Detecting links to redirects using the stub feature</translate>]]
* [[Special:MyLanguage/Help:Link#Stub feature|<translate><!--T:29--> Detecting links to redirects using the stub feature</translate>]]
* {{ll|Don't delete redirects}}
* {{ll|Don't delete redirects}}
* [[Redirects in search results - proposed software changes|<translate>Redirects in search results - proposed software changes</translate>]]
* [[Redirects in search results - proposed software changes|<translate><!--T:30--> Redirects in search results - proposed software changes</translate>]]
* [[Redirected user pages considered harmful|<translate>Redirected user pages considered harmful</translate>]]
* [[Redirected user pages considered harmful|<translate><!--T:31--> Redirected user pages considered harmful</translate>]]
* <translate>[[w:Wikipedia:Redirect]]</translate>
* <translate><!--T:32--> [[w:Wikipedia:Redirect]]</translate>
** [[w:Wikipedia:Redirects for discussion#When_should_we_delete_a_redirect.3F|<translate>Deletion policy on Wikipedia for redirects</translate>]]
** [[w:Wikipedia:Redirects for discussion#When_should_we_delete_a_redirect.3F|<translate><!--T:33--> Deletion policy on Wikipedia for redirects</translate>]]
* [https://lists.wikimedia.org/pipermail/wikitech-l/2008-July/038751.html <translate>Double redirect fixer</translate>]
* [https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/37LKF4KXSTCTO4ZLHDWY3XDQWSBWBDF4/ <translate><!--T:34--> Double redirect fixer</translate>]
* [[mw:Special:MyLanguage/Manual:Page table|<translate><!--T:35--> Page database table manual for how redirects are stored</translate>]]
* {{ll|Help:Setting up client-side redirects}}
* [[mw:Special:MyLangauge/Manual:Page table|<translate>Page database table manual for how redirects are stored</translate>]]


[[Category:Redirects{{#translation:}}| ]]
[[Category:Redirects{{#translation:}}| ]]

Latest revision as of 16:53, 7 February 2024

Redirects have different use cases through Wikimedia wikis.

Local policies[edit]

Some projects have policies on what redirects should exist. For example, on the English Wiktionary, most redirects are prohibited by policy.

Broken redirects[edit]

On many wikis administrators simply delete them, but it is sometimes useful to keep a broken redirect and wait for the creation of the target, or to set a new target.

Purposes of a redirect[edit]

  • Allow access in the case that a page name is provided:
    • which is an alternative name for the subject
    • which is a name for a subtopic (in this case one may use a redirect to a section)
    • which uses alternative capitalization and hyphenation
    • which uses alternative spelling
    • which has a common misspelling
  • Provide a way of conveniently going to a page (shortcut).
  • Keep links to a page active after it has been moved (even if internal links are updated, this still applies for links from outside; also for links in edit summaries).

Special purposes[edit]

  • Conveniently linking indirectly to a page, without the need for a piped link. However, a piped link is in some respects even better than relying on a redirect.
  • Allowing a link title independent of the final link target; one creates a page whose name is the desired link title, and which redirects to the desired target page. See e.g. w:Template:Ft, containing [[30.48 cm|ft]], with the page w:30.48 cm redirecting to w:Foot (unit of length). The link title "30.48 cm" informs in the hover box about the unit "ft" even without following the link to the article about this unit. See also Help:Advanced editing for another technique with a similar result.

When creating new redirects, bear in mind that creating too many redirects can clutter up the search results page, which can hinder users. Also, don't spend too much time creating redirects. Often it's more important to spend time improving the quality of the target page. A piped link is another way to make a link to a page with a name which does not occur in the first page.

Using redirects for inexisting but expected pages[edit]

When an inexisting page Subtopic could be created as a subtopic of Topic page, there are the following possibilities:

  1. Redirect Subtopic to Topic, use the backlink to go from A to B (disadvantage: not very inviting to create a new content page B; inconvenient if A has many backlinks).
  2. Insert a red link in Topic to Subtopic as invitation or preparation for creating page Subtopic; use the backlink to go from Subtopic to Topic (disadvantage: not obvious for newbie, much less convenient than automatic redirect, especially if B has many backlinks).
  3. Both (indirect self-link on Topic). To go from Topic to Subtopic, click the link from Topic to Subtopic, which brings you back to Topic, and use the link in the redirect message (for detecting a redirect see hereinbefore; however, there is no distinction between a redirect back, and an onward redirect) (disadvantage, as far as not yet mentioned: not obvious for newbie).
  4. Ditto but with a soft redirect from Subtopic to Topic, i.e. a page only containing something like "See [[Topic]]"; one can see at Topic that Subtopic is very short using the stub feature (disadvantages: a soft redirect is non-standard; people who do not know about its reason may change it in a regular redirect; is a little less convenient than automatic redirect; requires stub feature setting)
  5. Subtopic is a redirect, link from Topic to Subtopic with "redirect=no" parameter, or link to Subtopic's edit page, e.g. Template and start page Template, respectively.

In the 3rd and 4th cases, especially if Topic has a list of links to pages Subtopic, one can mark the links with more info, e.g. by bolding, and explain the marking.

See also[edit]