Stiles Wiki:Redirect: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
(Created page with "{{short description|Wikipedia method/tool to automatically redirect a user from a page to another page}} {{pp-vandalism|small=yes}} {{Redirect2|WP:R|WP:RDR|other uses of "WP:R"|Wikipedia:R (disambiguation)|centralized dispute resolution requests|Wikipedia:Requesting dispute resolution}} {{For|the WikiProject|Wikipedia:WikiProject Redirect}} <noinclude>{{Subcat guideline|editing guideline|Redirect|WP:R|WP:REDIR|WP:RDR}}</noinclude> {{Nutshell|Redirects aid navigation and...")
 
No edit summary
 
Line 1: Line 1:
{{short description|Wikipedia method/tool to automatically redirect a user from a page to another page}}
{{short description|Stiles.casa Wiki method/tool to automatically redirect a user from a page to another page}}
{{pp-vandalism|small=yes}}
{{pp-vandalism|small=yes}}
{{Redirect2|WP:R|WP:RDR|other uses of "WP:R"|Wikipedia:R (disambiguation)|centralized dispute resolution requests|Wikipedia:Requesting dispute resolution}}
{{Redirect2|SW:R|SW:RDR|other uses of "SW:R"|Stiles.casa Wiki:R (disambiguation)|centralized dispute resolution requests|Stiles.casa Wiki:Requesting dispute resolution}}
{{For|the WikiProject|Wikipedia:WikiProject Redirect}}
{{For|the WikiProject|Stiles.casa Wiki:WikiProject Redirect}}
<noinclude>{{Subcat guideline|editing guideline|Redirect|WP:R|WP:REDIR|WP:RDR}}</noinclude>
<noinclude>{{Subcat guideline|editing guideline|Redirect|SW:R|SW:REDIR|SW:RDR}}</noinclude>
{{Nutshell|Redirects aid navigation and searching by allowing a page to be reached under alternative titles.}}
{{Nutshell|Redirects aid navigation and searching by allowing a page to be reached under alternative titles.}}


[[File:EnWiki redirect - Pichilemo.png|thumb|right|300px|A screenshot of Wikipedia showing a redirect from [[Pichilemo]] to [[Pichilemu]]]]
[[File:EnWiki redirect - Pichilemo.png|thumb|right|300px|A screenshot of Stiles.casa Wiki showing a redirect from [[Pichilemo]] to [[Pichilemu]]]]
[[File:BE2028 screenshot.jpg|thumb|right|300px|How redirects show up on the MinervaNeue skin]]
[[File:BE2028 screenshot.jpg|thumb|right|300px|How redirects show up on the MinervaNeue skin]]


Line 13: Line 13:
Redirect pages can contain other content below the redirect, such as [[:Template:R template index|redirect category templates]], and category links (which provide a way to list article sections in categories).
Redirect pages can contain other content below the redirect, such as [[:Template:R template index|redirect category templates]], and category links (which provide a way to list article sections in categories).


Redirects are used to help people arrive more quickly at the page they want to read; this page contains guidance on how to use them properly. For technical help relating to how redirects work, see '''[[Help:Redirect]]'''. Other relevant pages are [[Wikipedia:Double redirects]], [[Wikipedia:Hatnote#Redirect|Wikipedia:Hatnote §&nbsp;Redirect]] and [[Wikipedia:WikiProject Redirect|WikiProject Redirect]].
Redirects are used to help people arrive more quickly at the page they want to read; this page contains guidance on how to use them properly. For technical help relating to how redirects work, see '''[[Help:Redirect]]'''. Other relevant pages are [[Stiles.casa Wiki:Double redirects]], [[Stiles.casa Wiki:Hatnote#Redirect|Stiles.casa Wiki:Hatnote §&nbsp;Redirect]] and [[Stiles.casa Wiki:WikiProject Redirect|WikiProject Redirect]].


== Purposes of redirects ==
== Purposes of redirects ==
{{Anchor|reasons|What do we use redirects for?}}
{{Anchor|reasons|What do we use redirects for?}}
{{Shortcut|WP:POFR|WP:RPURPOSE}}
{{Shortcut|SW:POFR|SW:RPURPOSE}}
Reasons for creating and maintaining redirects include:
Reasons for creating and maintaining redirects include:
* Alternative names redirect to the [[Wikipedia:Article titles|most appropriate article title]] (for example, [[Edson Arantes do Nascimento]] redirects to [[Pelé]]).
* Alternative names redirect to the [[Stiles.casa Wiki:Article titles|most appropriate article title]] (for example, [[Edson Arantes do Nascimento]] redirects to [[Pelé]]).
* Plurals (for example, [[Greenhouse gases]] redirects to [[Greenhouse gas]]).
* Plurals (for example, [[Greenhouse gases]] redirects to [[Greenhouse gas]]).
* Closely related words (for example, [[Symbiont]] redirects to [[Symbiosis]]).
* Closely related words (for example, [[Symbiont]] redirects to [[Symbiosis]]).
* Adjectives or adverbs point to noun forms (e.g., [[Treasonous]] redirects to [[Treason]])
* Adjectives or adverbs point to noun forms (e.g., [[Treasonous]] redirects to [[Treason]])
* Less specific forms of names, for which the article subject is still the [[WP:PRIMARYTOPIC|primary topic]]. For example, [[Einstein]] redirects to [[Albert Einstein]], whereas [[Albert]] is a [[WP:Disambiguation|disambiguation]] page rather than a redirect, since no Albert is regarded as the primary topic for that name.
* Less specific forms of names, for which the article subject is still the [[SW:PRIMARYTOPIC|primary topic]]. For example, [[Einstein]] redirects to [[Albert Einstein]], whereas [[Albert]] is a [[SW:Disambiguation|disambiguation]] page rather than a redirect, since no Albert is regarded as the primary topic for that name.
* More specific forms of names (for example, [[Articles of Confederation and Perpetual Union]] redirects to [[Articles of Confederation]]).
* More specific forms of names (for example, [[Articles of Confederation and Perpetual Union]] redirects to [[Articles of Confederation]]).
* Abbreviations and initialisms (for example, [[ADHD]] redirects to [[Attention deficit hyperactivity disorder]]). But often an abbreviation will have multiple meanings, none of which is a [[WP:PRIMARYTOPIC|primary topic]]—in that case a disambiguation page should be created rather than a redirect.
* Abbreviations and initialisms (for example, [[ADHD]] redirects to [[Attention deficit hyperactivity disorder]]). But often an abbreviation will have multiple meanings, none of which is a [[SW:PRIMARYTOPIC|primary topic]]—in that case a disambiguation page should be created rather than a redirect.
* Alternate forms of a name as found in reliable sources and common databases. For example, [[Cellular and Molecular Life Sciences : CMLS]] redirects to [[Cellular and Molecular Life Sciences]], based on its [https://www.ncbi.nlm.nih.gov/nlmcatalog?term=1420-682X PUBMED] entry.
* Alternate forms of a name as found in reliable sources and common databases. For example, [[Cellular and Molecular Life Sciences : CMLS]] redirects to [[Cellular and Molecular Life Sciences]], based on its [https://www.ncbi.nlm.nih.gov/nlmcatalog?term=1420-682X PUBMED] entry.
* Alternative spellings or punctuation. For example, [[Colour]] redirects to [[Color]], and [[Al-Jazeera]] redirects to [[Al Jazeera]].
* Alternative spellings or punctuation. For example, [[Colour]] redirects to [[Color]], and [[Al-Jazeera]] redirects to [[Al Jazeera]].
* Punctuation issues—some titles containing [[dash]]es should have redirects using [[hyphen-minus|hyphens]], and vice versa. The proper title depends on official spelling (in the case of a name, such as [[Olivia Newton-John]]), or established Wikipedia policy and naming conventions (such as [[Spanish–American War]]).
* Punctuation issues—some titles containing [[dash]]es should have redirects using [[hyphen-minus|hyphens]], and vice versa. The proper title depends on official spelling (in the case of a name, such as [[Olivia Newton-John]]), or established Stiles.casa Wiki policy and naming conventions (such as [[Spanish–American War]]).
* Representations using ASCII characters, that is, common transliterations (for example, [[Pele]] also redirects to [[Pelé]] while [[Kurt Goedel]] and [[Kurt Godel]] redirect to [[Kurt Gödel]]).
* Representations using ASCII characters, that is, common transliterations (for example, [[Pele]] also redirects to [[Pelé]] while [[Kurt Goedel]] and [[Kurt Godel]] redirect to [[Kurt Gödel]]).
* Likely misspellings (for example, [[Condoleeza Rice]] redirects to [[Condoleezza Rice]]). Note: this criterion typically does not apply to redirects from typos in template space; consensus is that such typos, unless they are very common, should remain as red links until they are fixed.
* Likely misspellings (for example, [[Condoleeza Rice]] redirects to [[Condoleezza Rice]]). Note: this criterion typically does not apply to redirects from typos in template space; consensus is that such typos, unless they are very common, should remain as red links until they are fixed.
* Likely alternative capitalizations (for example, [[Natural Selection]] redirects to [[Natural selection]]). This is not necessary for user searches made via Wikipedia's search engine, but may aid linking from other articles and external sites, as well as direct URL entry.
* Likely alternative capitalizations (for example, [[Natural Selection]] redirects to [[Natural selection]]). This is not necessary for user searches made via Stiles.casa Wiki's search engine, but may aid linking from other articles and external sites, as well as direct URL entry.
* To comply with the maintenance of nontrivial edit history, pursuant to [[Wikipedia:Merging#PROMERGE]] for copyright licensing requirements.
* To comply with the maintenance of nontrivial edit history, pursuant to [[Stiles.casa Wiki:Merging#PROMERGE]] for copyright licensing requirements.
* Sub-topics or other topics which are described or listed within a wider article. (Such redirects are often targeted to a particular section of the article.)
* Sub-topics or other topics which are described or listed within a wider article. (Such redirects are often targeted to a particular section of the article.)
* Redirects to disambiguation pages that do not contain "(disambiguation)" in the title (for example, [[Durham (disambiguation)]] redirects to [[Durham]]). These help maintenance by allowing deliberate links to disambiguation pages to be distinguished from links that need to be disambiguated. See [[WP:INTDAB]] for a fuller explanation.
* Redirects to disambiguation pages that do not contain "(disambiguation)" in the title (for example, [[Durham (disambiguation)]] redirects to [[Durham]]). These help maintenance by allowing deliberate links to disambiguation pages to be distinguished from links that need to be disambiguated. See [[SW:INTDAB]] for a fuller explanation.
* [[WP:Shortcut|Shortcuts]] (for example, [[WP:V]] and [[Wikipedia:V]] redirect to [[Wikipedia:Verifiability]]). This is commonly done in [[WP:Project namespace|project space]], but not in article space.
* [[SW:Shortcut|Shortcuts]] (for example, [[SW:V]] and [[Stiles.casa Wiki:V]] redirect to [[Stiles.casa Wiki:Verifiability]]). This is commonly done in [[SW:Project namespace|project space]], but not in article space.
* Old-style [[Wikipedia:CamelCase and Wikipedia|CamelCase]] links (if already in existence) ([[AnnaKournikova]] redirects to [[Anna Kournikova]]).
* Old-style [[Stiles.casa Wiki:CamelCase and Stiles.casa Wiki|CamelCase]] links (if already in existence) ([[AnnaKournikova]] redirects to [[Anna Kournikova]]).
* Links auto-generated from [[Exchangeable image file format]] information ([[Adobe Photoshop CS Windows]] redirects to [[Adobe Photoshop]]).
* Links auto-generated from [[Exchangeable image file format]] information ([[Adobe Photoshop CS Windows]] redirects to [[Adobe Photoshop]]).
* Finding [[Help:What links here#Limitations|what links to a section]], when links are made to the redirect rather than the section.
* Finding [[Help:What links here#Limitations|what links to a section]], when links are made to the redirect rather than the section.


There are [[Wikipedia:Template messages/Redirect pages|redirect templates]] to explain the [[Wikipedia:Redirect#PLA|reason]] for a redirect.
There are [[Stiles.casa Wiki:Template messages/Redirect pages|redirect templates]] to explain the [[Stiles.casa Wiki:Redirect#PLA|reason]] for a redirect.


{{Anchor|note}}
{{Anchor|note}}
Note that redirects to other Wikimedia projects, other websites, or [[Special:SpecialPages|special pages]] do not work. These should be avoided or replaced with a {{Tl|soft redirect}} template. Soft redirects are also used in [[Help:Category|category space]] (using the {{Tl|category redirect}} template). Redirects from list titles to categories (e.g. a redirect from <nowiki>[[List of things]]</nowiki> to <nowiki>[[Category:Things]]</nowiki>) are highly discouraged.<ref>Discouraged after [[Wikipedia talk:Stand-alone lists/Archive 10#RfC about redirects to categories|a 2019 discussion]].</ref>
Note that redirects to other Wikimedia projects, other websites, or [[Special:SpecialPages|special pages]] do not work. These should be avoided or replaced with a {{Tl|soft redirect}} template. Soft redirects are also used in [[Help:Category|category space]] (using the {{Tl|category redirect}} template). Redirects from list titles to categories (e.g. a redirect from <nowiki>[[List of things]]</nowiki> to <nowiki>[[Category:Things]]</nowiki>) are highly discouraged.<ref>Discouraged after [[Stiles.casa Wiki talk:Stand-alone lists/Archive 10#RfC about redirects to categories|a 2019 discussion]].</ref>


== How to make a redirect ==
== How to make a redirect ==
{{main|Help:Redirect|Wikipedia:How to make a redirect}}
{{main|Help:Redirect|Stiles.casa Wiki:How to make a redirect}}
<!-- <div class="notice" style="background:#def; border:1px solid #468; padding:0.5em; margin:0.5em auto; background-color:#EBFFEB;"><center>Note: For a [[Wikipedia:Autoconfirmed article creation trial|trial period]] from September 14, 2017 to at least March 14, 2018, users will not be able to create pages, including redirects, directly in the [[Wikipedia:What is an article?#Namespace|article mainspace]] until their accounts are [[Wikipedia:User access levels#Autoconfirmed and confirmed users|autoconfirmed]] – an editing threshold passed when a user's account is at least 4 days (96 hours) old, and has made more than ten edits. Non-autoconfirmed users can request creation of redirects at [[Wikipedia:Articles for creation/Redirects and categories]].</center></div> -->
<!-- <div class="notice" style="background:#def; border:1px solid #468; padding:0.5em; margin:0.5em auto; background-color:#EBFFEB;"><center>Note: For a [[Stiles.casa Wiki:Autoconfirmed article creation trial|trial period]] from September 14, 2017 to at least March 14, 2018, users will not be able to create pages, including redirects, directly in the [[Stiles.casa Wiki:What is an article?#Namespace|article mainspace]] until their accounts are [[Stiles.casa Wiki:User access levels#Autoconfirmed and confirmed users|autoconfirmed]] – an editing threshold passed when a user's account is at least 4 days (96 hours) old, and has made more than ten edits. Non-autoconfirmed users can request creation of redirects at [[Stiles.casa Wiki:Articles for creation/Redirects and categories]].</center></div> -->


=== Editing the source directly ===
=== Editing the source directly ===
Line 55: Line 55:


=== Using VisualEditor ===
=== Using VisualEditor ===
To create a redirect using the [[Wikipedia:VisualEditor|VisualEditor]]:
To create a redirect using the [[Stiles.casa Wiki:VisualEditor|VisualEditor]]:
# Open the "page options" menu (icon with three parallel horizontal bars) at the top right of the editor
# Open the "page options" menu (icon with three parallel horizontal bars) at the top right of the editor
# Select "Page settings"
# Select "Page settings"
Line 64: Line 64:


=== When moving a page ===
=== When moving a page ===
Redirects can also be automatically created when you [[Wikipedia:MOVE|move (rename) an existing page]].
Redirects can also be automatically created when you [[Stiles.casa Wiki:MOVE|move (rename) an existing page]].
=== Requesting a redirect ===
=== Requesting a redirect ===
If you can't create pages, you can request redirects at [[Wikipedia:Redirect wizard]].
If you can't create pages, you can request redirects at [[Stiles.casa Wiki:Redirect wizard]].


== How to edit a redirect or convert it into an article ==
== How to edit a redirect or convert it into an article ==
{{shortcut|WP:EDRED|WP:RTOA}}
{{shortcut|SW:EDRED|SW:RTOA}}
Sometimes an existing redirect should really be handled by a full article, per [[:Category:Redirects with possibilities]]. For example, the name of a notable musician (who does not yet have an article) may instead be a redirect to an existing article about a band of which the musician is a member. In this case, you can edit the redirect to make it into an article. Also, if an existing redirect points to the wrong page, you can edit the redirect to point to a different page.
Sometimes an existing redirect should really be handled by a full article, per [[:Category:Redirects with possibilities]]. For example, the name of a notable musician (who does not yet have an article) may instead be a redirect to an existing article about a band of which the musician is a member. In this case, you can edit the redirect to make it into an article. Also, if an existing redirect points to the wrong page, you can edit the redirect to point to a different page.


If you want to edit a redirect page you must use a special technique in order to get to the redirect page itself. This is because when you try to go straight to the redirect page and edit it, the redirect page will automatically redirect you to its target page (because this is what a redirect page is meant to do). Below is an example of why you might need to go to a redirect page itself (to do a small edit) and how to actually get there.
If you want to edit a redirect page you must use a special technique in order to get to the redirect page itself. This is because when you try to go straight to the redirect page and edit it, the redirect page will automatically redirect you to its target page (because this is what a redirect page is meant to do). Below is an example of why you might need to go to a redirect page itself (to do a small edit) and how to actually get there.


For example, say [[Trygve Halvdan Lie]] did not have his own article, and so this link was a redirect to the page [[Secretary-General of the United Nations]]. If, later on, the page [[Trygve Lie]] was created as a biography, the page [[Trygve Halvdan Lie]] should be changed to redirect to [[Trygve Lie]] per [[WP:COMMONNAME]]. To do this, go to the redirect page by clicking the existing redirect note on the target page, which in this case would read "(Redirected from {{-r|Trygve Halvdan Lie}})". Once there, you may click the "Edit" tab, and change the page from
For example, say [[Trygve Halvdan Lie]] did not have his own article, and so this link was a redirect to the page [[Secretary-General of the United Nations]]. If, later on, the page [[Trygve Lie]] was created as a biography, the page [[Trygve Halvdan Lie]] should be changed to redirect to [[Trygve Lie]] per [[SW:COMMONNAME]]. To do this, go to the redirect page by clicking the existing redirect note on the target page, which in this case would read "(Redirected from {{-r|Trygve Halvdan Lie}})". Once there, you may click the "Edit" tab, and change the page from


<code><nowiki>#REDIRECT&nbsp;[[Secretary-General of the United Nations]]</nowiki></code>
<code><nowiki>#REDIRECT&nbsp;[[Secretary-General of the United Nations]]</nowiki></code>
Line 83: Line 83:


== Targeted and untargeted redirects ==
== Targeted and untargeted redirects ==
{{Shortcut|WP:TARGET|WP:RSECT}}
{{Shortcut|SW:TARGET|SW:RSECT}}
{{see also|MOS:LINK2SECT }}
{{see also|MOS:LINK2SECT }}


Most redirects are ''untargeted'', i.e. they lead simply to a page, not to any specific section of the page. This is usually done when there is more than one possible name under which an article might be sought (for example, [[Cellphone]] redirects to the article [[Mobile phone]]). For deciding which should be the actual title of the article, see [[WP:Article titles|Article titles]].
Most redirects are ''untargeted'', i.e. they lead simply to a page, not to any specific section of the page. This is usually done when there is more than one possible name under which an article might be sought (for example, [[Cellphone]] redirects to the article [[Mobile phone]]). For deciding which should be the actual title of the article, see [[SW:Article titles|Article titles]].


It is also possible to create a ''targeted redirect'', i.e. a redirect to a particular point on the target page—either a [[Help:Section|section header]] or an [[Help:Anchor|anchor]]. For example, the page [[Malia Obama]] contains the code <code><nowiki>#REDIRECT&nbsp;[[Family of Barack Obama#Malia and Sasha Obama]]</nowiki></code>, which redirects to the [[Family of Barack Obama#Malia and Sasha Obama|Malia and Sasha Obama]] section in the article [[Family of Barack Obama]]. Therefore, entering "''Malia Obama''" will bring the searcher straight to the content that deals with "Malia and Sasha Obama".
It is also possible to create a ''targeted redirect'', i.e. a redirect to a particular point on the target page—either a [[Help:Section|section header]] or an [[Help:Anchor|anchor]]. For example, the page [[Malia Obama]] contains the code <code><nowiki>#REDIRECT&nbsp;[[Family of Barack Obama#Malia and Sasha Obama]]</nowiki></code>, which redirects to the [[Family of Barack Obama#Malia and Sasha Obama|Malia and Sasha Obama]] section in the article [[Family of Barack Obama]]. Therefore, entering "''Malia Obama''" will bring the searcher straight to the content that deals with "Malia and Sasha Obama".
Line 92: Line 92:
Consider that when the target page is displayed, it is likely that the top of the page will not be shown, so the user may not see the helpful "(redirected from... )" text unless they know to scroll back to the top. This is less likely to cause confusion if the redirect is to a heading with the same name as the redirect.
Consider that when the target page is displayed, it is likely that the top of the page will not be shown, so the user may not see the helpful "(redirected from... )" text unless they know to scroll back to the top. This is less likely to cause confusion if the redirect is to a heading with the same name as the redirect.


The text given in the link on a targeted redirect page must exactly match the target section heading or anchor text, including capitalization and punctuation. (While spaces and underscores are interchangeable in the current implementation of the Wikimedia software, it is generally good practice and aids maintenance to use exactly the same spelling in links as is used in the corresponding targets also for these characters.) (In the absence of a match, the reader will simply be taken to the top of the target page.) It is often helpful to leave a [[WP:HIDDEN|hidden comment]] in the target text, to inform other editors that a section title is linked, so that if the title is altered, the redirect can be changed. For example:
The text given in the link on a targeted redirect page must exactly match the target section heading or anchor text, including capitalization and punctuation. (While spaces and underscores are interchangeable in the current implementation of the Wikimedia software, it is generally good practice and aids maintenance to use exactly the same spelling in links as is used in the corresponding targets also for these characters.) (In the absence of a match, the reader will simply be taken to the top of the target page.) It is often helpful to leave a [[SW:HIDDEN|hidden comment]] in the target text, to inform other editors that a section title is linked, so that if the title is altered, the redirect can be changed. For example:


<pre><nowiki>
<pre><nowiki>
Line 108: Line 108:
For example, in the [[Google Search]] article, the text <code><nowiki>{{Anchor|calculator}}</nowiki></code> is placed at the point where ''Google Calculator'' is discussed. The title [[Google Calculator]] can then be redirected to [[Google Search#calculator]].
For example, in the [[Google Search]] article, the text <code><nowiki>{{Anchor|calculator}}</nowiki></code> is placed at the point where ''Google Calculator'' is discussed. The title [[Google Calculator]] can then be redirected to [[Google Search#calculator]].


When a section title is known to be the target of incoming links, the Wikipedia Manual of Style [[MOS:RENAMESECTION|suggests creating a redundant anchor with the same name as the section title]], so that such links will continue to work even if someone renames the section without creating an anchor with the old name.  Technically, the redundant section and anchor names result in invalid HTML.<ref>{{cite web
When a section title is known to be the target of incoming links, the Stiles.casa Wiki Manual of Style [[MOS:RENAMESECTION|suggests creating a redundant anchor with the same name as the section title]], so that such links will continue to work even if someone renames the section without creating an anchor with the old name.  Technically, the redundant section and anchor names result in invalid HTML.<ref>{{cite web
  | title      = The id attribute
  | title      = The id attribute
  | url        = https://www.w3.org/TR/html51/dom.html#the-id-attribute
  | url        = https://www.w3.org/TR/html51/dom.html#the-id-attribute
Line 135: Line 135:


== Double redirects ==
== Double redirects ==
{{Main|Wikipedia:Double redirects}}
{{Main|Stiles.casa Wiki:Double redirects}}


The software will not follow chains of more than one redirect—this is called a double redirect. A redirect should not be left pointing to another redirect page.
The software will not follow chains of more than one redirect—this is called a double redirect. A redirect should not be left pointing to another redirect page.


Double redirects often arise after a page is [[WP:MOVE|moved]] (renamed)—after moving a page, check whether there are any redirects to the old title (using the link on the move result page, or using [[WP:WHATLINKSHERE|"What links here"]]), and change them to redirect straight to the new title. Double redirects are usually fixed by a [[Wikipedia:Bots|bot]] in a few days; however, an editor should not leave behind any self-created double redirects.
Double redirects often arise after a page is [[SW:MOVE|moved]] (renamed)—after moving a page, check whether there are any redirects to the old title (using the link on the move result page, or using [[SW:WHATLINKSHERE|"What links here"]]), and change them to redirect straight to the new title. Double redirects are usually fixed by a [[Stiles.casa Wiki:Bots|bot]] in a few days; however, an editor should not leave behind any self-created double redirects.


== Linking to a redirect ==
== Linking to a redirect ==
{{Main|Wikipedia:Manual of Style (linking)#Redirects|l1=MoS linking redirects}}
{{Main|Stiles.casa Wiki:Manual of Style (linking)#Redirects|l1=MoS linking redirects}}


You can link to a redirect page just as you can [[Help:Link|link]] to an article page by placing the redirect page name within a set of double brackets, such as: <div style="margin-left: 2em"><code><nowiki>[[</nowiki>''Redirect page name''<nowiki>]]</nowiki></code></div> replacing ''Redirect page name'' with the name of the redirect page to link.
You can link to a redirect page just as you can [[Help:Link|link]] to an article page by placing the redirect page name within a set of double brackets, such as: <div style="margin-left: 2em"><code><nowiki>[[</nowiki>''Redirect page name''<nowiki>]]</nowiki></code></div> replacing ''Redirect page name'' with the name of the redirect page to link.
Line 149: Line 149:


== Categorizing redirect pages ==
== Categorizing redirect pages ==
{{Main|Wikipedia:Categorizing redirects}}
{{Main|Stiles.casa Wiki:Categorizing redirects}}


Most redirect pages are not placed in article [[WP:Categorization|categories]]. There are three types of redirect categorization that are helpful and useful:
Most redirect pages are not placed in article [[SW:Categorization|categories]]. There are three types of redirect categorization that are helpful and useful:
* Maintenance categories are in use for particular types of redirects, such as [[:Category:Redirects from initialisms]], in which a redirect page may be sorted using the {{Tl|R from initialism}} template. One major use of these categories is to determine which redirects are fit for inclusion in a [[WP:Printability|printed subset]] of Wikipedia. See [[Wikipedia:Template messages/Redirect pages]] for functional and alphabetical lists of these templates. A brief functional list of redirect category ([[WP:RCAT|rcat]]) templates is also found in the {{Tl|R template index}} navbar.
* Maintenance categories are in use for particular types of redirects, such as [[:Category:Redirects from initialisms]], in which a redirect page may be sorted using the {{Tl|R from initialism}} template. One major use of these categories is to determine which redirects are fit for inclusion in a [[SW:Printability|printed subset]] of Stiles.casa Wiki. See [[Stiles.casa Wiki:Template messages/Redirect pages]] for functional and alphabetical lists of these templates. A brief functional list of redirect category ([[SW:RCAT|rcat]]) templates is also found in the {{Tl|R template index}} navbar.
* Sometimes a redirect is placed in an article category because the form of the redirected title is more appropriate to the context of that category, e.g. {{No redirect|Honey Lantree}}. (Redirects appear in italics in category listings.)
* Sometimes a redirect is placed in an article category because the form of the redirected title is more appropriate to the context of that category, e.g. {{No redirect|Honey Lantree}}. (Redirects appear in italics in category listings.)
* Discussion pages. If a discussion/talk page exists for a redirect, please ensure (1) that the talk page's WikiProject banners are tagged with the "class=Redirect" parameter and (2) that the talk page is tagged at the TOP with the {{Tl|Talk page of redirect}} template. If the discussion page is a redirect, then it may be tagged with appropriate redirect categorization templates (rcats).
* Discussion pages. If a discussion/talk page exists for a redirect, please ensure (1) that the talk page's WikiProject banners are tagged with the "class=Redirect" parameter and (2) that the talk page is tagged at the TOP with the {{Tl|Talk page of redirect}} template. If the discussion page is a redirect, then it may be tagged with appropriate redirect categorization templates (rcats).
Line 160: Line 160:


== When should we delete a redirect? <span id="CRD"></span><span id="crd"></span><span id="Criteria for redirect deletion"></span>==
== When should we delete a redirect? <span id="CRD"></span><span id="crd"></span><span id="Criteria for redirect deletion"></span>==
{{Shortcut|WP:R#CRD}}
{{Shortcut|SW:R#CRD}}


To delete a redirect '''without replacing it with a new article''', list it on [[Wikipedia:Redirects for discussion|redirects for discussion]]. See the [[Wikipedia:Deletion policy|deletion policy]] for details on how to nominate pages for deletion.
To delete a redirect '''without replacing it with a new article''', list it on [[Stiles.casa Wiki:Redirects for discussion|redirects for discussion]]. See the [[Stiles.casa Wiki:Deletion policy|deletion policy]] for details on how to nominate pages for deletion.


Listing is not necessary if you just want to replace a redirect with an article, or change where it points: see [[meta:Help:Redirect#Changing a redirect|these instructions]] for help doing this. If you want to ''swap'' a redirect and an article, but are not able to move the article to the location of the redirect, please use [[Wikipedia:Requested moves]] to request help from an [[Wikipedia:Administrators|admin]] in doing that.
Listing is not necessary if you just want to replace a redirect with an article, or change where it points: see [[meta:Help:Redirect#Changing a redirect|these instructions]] for help doing this. If you want to ''swap'' a redirect and an article, but are not able to move the article to the location of the redirect, please use [[Stiles.casa Wiki:Requested moves]] to request help from an [[Stiles.casa Wiki:Administrators|admin]] in doing that.


{{Wikipedia:Redirect/Deletion reasons}}
{{Stiles.casa Wiki:Redirect/Deletion reasons}}


== What needs to be done on pages that are targets of redirects? ==
== What needs to be done on pages that are targets of redirects? ==
{{Anchor|PLA|pla|ASTONISH|SURPRISE}}
{{Anchor|PLA|pla|ASTONISH|SURPRISE}}
{{Shortcut|WP:R#PLA|WP:R#ASTONISH}}
{{Shortcut|SW:R#PLA|SW:R#ASTONISH}}
{{Further|Wikipedia:Manual of Style/Text formatting#Other uses|Wikipedia:Manual of Style/Lead section#Alternative names}}
{{Further|Stiles.casa Wiki:Manual of Style/Text formatting#Other uses|Stiles.casa Wiki:Manual of Style/Lead section#Alternative names}}


Wikipedia follows the "[[Wikipedia:Guide to writing better articles#Principle of least astonishment|principle of least astonishment]]"; after following a redirect, the reader's first question is likely to be: "Hang on ... I wanted to read about ''this''. Why has the link taken me to ''that''{{-?}}" Make it clear to the reader that they ''have'' arrived in the right place.
Stiles.casa Wiki follows the "[[Stiles.casa Wiki:Guide to writing better articles#Principle of least astonishment|principle of least astonishment]]"; after following a redirect, the reader's first question is likely to be: "Hang on ... I wanted to read about ''this''. Why has the link taken me to ''that''{{-?}}" Make it clear to the reader that they ''have'' arrived in the right place.


Normally, we try to make sure that all "inbound redirects" other than misspellings or other obvious close variants of the article title are mentioned in the first couple of paragraphs of the article or section to which the redirect goes. It will often be appropriate to '''bold''' the redirected term. For example:
Normally, we try to make sure that all "inbound redirects" other than misspellings or other obvious close variants of the article title are mentioned in the first couple of paragraphs of the article or section to which the redirect goes. It will often be appropriate to '''bold''' the redirected term. For example:
Line 182: Line 182:
* [[Density of water]] redirects to [[Properties of water]]. There is no need to insert a bolded '''density of water''' sentence in the lead section; it is a minor subtopic of the article.
* [[Density of water]] redirects to [[Properties of water]]. There is no need to insert a bolded '''density of water''' sentence in the lead section; it is a minor subtopic of the article.


If the redirected term could have other meanings, a [[WP:Hatnote|hatnote]] ([[Wikipedia:HATTEST#Redirect|examples]]) should be placed at the top of the target article or targeted section that will direct readers to the other meanings or to a relevant [[WP:DAB|disambiguation]] page. This is usually done using one of the [[:Template:Redirect#"… redirects here. For other uses, see …"|redirect disambiguation templates]] ([[Wikipedia:HATTEST#Redirect|examples]]).
If the redirected term could have other meanings, a [[SW:Hatnote|hatnote]] ([[Stiles.casa Wiki:HATTEST#Redirect|examples]]) should be placed at the top of the target article or targeted section that will direct readers to the other meanings or to a relevant [[SW:DAB|disambiguation]] page. This is usually done using one of the [[:Template:Redirect#"… redirects here. For other uses, see …"|redirect disambiguation templates]] ([[Stiles.casa Wiki:HATTEST#Redirect|examples]]).


It may also be helpful to [[Help:Searching|search]] the [[Help:Category#Listing all categories|List of Categories]] for [[Wikipedia:FAQ/Categories#Can I specify categories when searching?|related terms]].
It may also be helpful to [[Help:Searching|search]] the [[Help:Category#Listing all categories|List of Categories]] for [[Stiles.casa Wiki:FAQ/Categories#Can I specify categories when searching?|related terms]].


== Redirects that replace previous articles ==
== Redirects that replace previous articles ==
{{Short|WP:BLANKANDREDIRECT|WP:BLAR}}
{{Short|SW:BLANKANDREDIRECT|SW:BLAR}}
{{See also|Wikipedia:Deletion policy#Redirection}}
{{See also|Stiles.casa Wiki:Deletion policy#Redirection}}


[[WP:BLANK|Removing all content]] in a problematic article and replacing it with a redirect is common practice, known as '''blank-and-redirect'''. If other editors [[WP:BRD|disagree]] with this blanking, its contents can be recovered from [[Help:page history|page history]], as the article has not been [[WP:DEL|deleted]]. If editors cannot agree, the content issues should be discussed at the relevant talk page, and other methods of [[Wikipedia:Resolving disputes|dispute resolution]] should be used, such as restoring the article and nominating the article for [[Wikipedia:Articles for deletion]].<ref>[[Special:Permalink/998395765#Request_for_comment:_Proposed_blank_and_redirects|An RfC closed in 2021]] found {{tq|Most users believe that AfD should be used to settle controversial or contested cases of blanking and redirecting.}}</ref>
[[SW:BLANK|Removing all content]] in a problematic article and replacing it with a redirect is common practice, known as '''blank-and-redirect'''. If other editors [[SW:BRD|disagree]] with this blanking, its contents can be recovered from [[Help:page history|page history]], as the article has not been [[SW:DEL|deleted]]. If editors cannot agree, the content issues should be discussed at the relevant talk page, and other methods of [[Stiles.casa Wiki:Resolving disputes|dispute resolution]] should be used, such as restoring the article and nominating the article for [[Stiles.casa Wiki:Articles for deletion]].<ref>[[Special:Permalink/998395765#Request_for_comment:_Proposed_blank_and_redirects|An RfC closed in 2021]] found {{tq|Most users believe that AfD should be used to settle controversial or contested cases of blanking and redirecting.}}</ref>


To make it easier for other editors to find the history of the blanked article, it's good practice to add a short notice at the talk page of the target article, even if no content has been [[Wikipedia:Merging|merged]] there. This is especially useful if the blanked article had few visits and infrequent edits. If the redirect replaces an article that has been deleted by an [[Wikipedia:Administrators|administrator]], this notice is the only way for editors to know that a previous version of the article existed at all.
To make it easier for other editors to find the history of the blanked article, it's good practice to add a short notice at the talk page of the target article, even if no content has been [[Stiles.casa Wiki:Merging|merged]] there. This is especially useful if the blanked article had few visits and infrequent edits. If the redirect replaces an article that has been deleted by an [[Stiles.casa Wiki:Administrators|administrator]], this notice is the only way for editors to know that a previous version of the article existed at all.
{{talkref}}
{{talkref}}
=== Content of the replaced article ===
=== Content of the replaced article ===
The template {{tl|R with history}} should be added to the resulting redirect. If the topic of the article can be reasonably thought to describe a [[WP:N|notable]] topic, mark the redirect with the template {{Tl|Redirect with possibilities}} to indicate that [[Wikipedia:Redirect#How to edit a redirect or convert it into an article|it could be expanded in the future]]. You may also consider [[Wikipedia:Stubbing#Stubbing existing articles|turning the article into a stub]] by removing all unsourced content and keeping the valid references, instead of blanking it.
The template {{tl|R with history}} should be added to the resulting redirect. If the topic of the article can be reasonably thought to describe a [[SW:N|notable]] topic, mark the redirect with the template {{Tl|Redirect with possibilities}} to indicate that [[Stiles.casa Wiki:Redirect#How to edit a redirect or convert it into an article|it could be expanded in the future]]. You may also consider [[Stiles.casa Wiki:Stubbing#Stubbing existing articles|turning the article into a stub]] by removing all unsourced content and keeping the valid references, instead of blanking it.


Note that certain forms of blanking are not allowed. [[Wikipedia:Vandalism#Blanking, illegitimate|Illegitimate blanking]] of valid content without reason is considered [[WP:vandalism|vandalism]], a form of [[Wikipedia:disruptive editing|disruptive editing]]. Other forms of blank-and-redirect, although not vandalism, are still undesirable. If you want to [[WP:CUTPASTE|rename the article by cutting and pasting text]] to a new article with a different title, you should instead [[Wikipedia:Moving a page|move the page]] with the ''Move'' option. If you want to keep some content from the blanked article and add it to the target article, you should follow the instructions at {{section link|Wikipedia:Merging|How to merge}}. Both processes will create proper links to the edit history, which is required by the [[Wikipedia:Copyrights|Wikipedia license]] for legal reasons to [[Wikipedia:Copying within Wikipedia|preserve attribution of content to its authors]].
Note that certain forms of blanking are not allowed. [[Stiles.casa Wiki:Vandalism#Blanking, illegitimate|Illegitimate blanking]] of valid content without reason is considered [[SW:vandalism|vandalism]], a form of [[Stiles.casa Wiki:disruptive editing|disruptive editing]]. Other forms of blank-and-redirect, although not vandalism, are still undesirable. If you want to [[SW:CUTPASTE|rename the article by cutting and pasting text]] to a new article with a different title, you should instead [[Stiles.casa Wiki:Moving a page|move the page]] with the ''Move'' option. If you want to keep some content from the blanked article and add it to the target article, you should follow the instructions at {{section link|Stiles.casa Wiki:Merging|How to merge}}. Both processes will create proper links to the edit history, which is required by the [[Stiles.casa Wiki:Copyrights|Stiles.casa Wiki license]] for legal reasons to [[Stiles.casa Wiki:Copying within Stiles.casa Wiki|preserve attribution of content to its authors]].


== Do not "fix" links to redirects that are not broken ==
== Do not "fix" links to redirects that are not broken ==
{{Anchor|NOTBROKEN|notbroken}}{{Shortcut|WP:NOTBROKEN|WP:DONOTFIXIT}}
{{Anchor|NOTBROKEN|notbroken}}{{Shortcut|SW:NOTBROKEN|SW:DONOTFIXIT}}
{{Redirect|WP:NOTBROKEN|text=You may be looking for {{section link|Wikipedia:Typo Team|Some typos do not need to be corrected}} or [[Wikipedia:If it ain't broke, don't fix it]]}}
{{Redirect|SW:NOTBROKEN|text=You may be looking for {{section link|Stiles.casa Wiki:Typo Team|Some typos do not need to be corrected}} or [[Stiles.casa Wiki:If it ain't broke, don't fix it]]}}
{{Further|Wikipedia:Manual of Style/Linking#MOS:NOPIPE}}
{{Further|Stiles.casa Wiki:Manual of Style/Linking#MOS:NOPIPE}}


There is usually nothing wrong with linking to redirects to articles. Some editors are tempted, upon finding a link to a redirect page, to bypass the redirect and point the link directly at the target page. However, changing to a piped link is beneficial only in a few cases. Piping links solely to avoid redirects is generally a time-wasting exercise that can actually be detrimental. It is almost never helpful to replace <code><nowiki>[[redirect]]</nowiki></code> with <code><nowiki>[[target|redirect]]</nowiki></code>.
There is usually nothing wrong with linking to redirects to articles. Some editors are tempted, upon finding a link to a redirect page, to bypass the redirect and point the link directly at the target page. However, changing to a piped link is beneficial only in a few cases. Piping links solely to avoid redirects is generally a time-wasting exercise that can actually be detrimental. It is almost never helpful to replace <code><nowiki>[[redirect]]</nowiki></code> with <code><nowiki>[[target|redirect]]</nowiki></code>.
Line 212: Line 212:
* Introducing unnecessary invisible text makes the article more difficult to read in page source form.
* Introducing unnecessary invisible text makes the article more difficult to read in page source form.
* Non-piped links make better use of the "what links here" tool, making it easier to track how articles are linked and helping with large-scale changes to links.
* Non-piped links make better use of the "what links here" tool, making it easier to track how articles are linked and helping with large-scale changes to links.
* Shortcuts or redirects to embedded anchors or sections of articles or of [[Wikipedia:Policies and guidelines|Wikipedia's advice pages]] should never be bypassed, as the anchors or section headings on the page may change over time. Updating one redirect is far more efficient than updating dozens of piped links. (The [http://69.142.160.183/~dispenser/view/Rdcheck Rdcheck] tool is extremely useful in such cases for finding which redirects need to be changed after an article is updated.)
* Shortcuts or redirects to embedded anchors or sections of articles or of [[Stiles.casa Wiki:Policies and guidelines|Stiles.casa Wiki's advice pages]] should never be bypassed, as the anchors or section headings on the page may change over time. Updating one redirect is far more efficient than updating dozens of piped links. (The [http://69.142.160.183/~dispenser/view/Rdcheck Rdcheck] tool is extremely useful in such cases for finding which redirects need to be changed after an article is updated.)
* Intentional links to [[Wikipedia:Disambiguation|disambiguation pages]] always use the title with "(disambiguation)", even if that is a redirect.
* Intentional links to [[Stiles.casa Wiki:Disambiguation|disambiguation pages]] always use the title with "(disambiguation)", even if that is a redirect.
* If editors persistently use a redirect instead of an article title, it may be that the article needs to be moved rather than the redirect changed. As such the systematic "fixing of redirects" may eradicate useful information which can be used to help decide on the "best" article title.
* If editors persistently use a redirect instead of an article title, it may be that the article needs to be moved rather than the redirect changed. As such the systematic "fixing of redirects" may eradicate useful information which can be used to help decide on the "best" article title.


{{Anchor|Bypass redirects in navigational templates|template link fix|template linkfix|templatelinkfix|TLF}}Good reasons to bypass redirects include:{{Shortcut|WP:BYPASSREDIRECT|WP:NAVNOREDIRECT|WP:BRINT|WP:MPNOREDIRECT|WP:DOFIXIT}}
{{Anchor|Bypass redirects in navigational templates|template link fix|template linkfix|templatelinkfix|TLF}}Good reasons to bypass redirects include:{{Shortcut|SW:BYPASSREDIRECT|SW:NAVNOREDIRECT|SW:BRINT|SW:MPNOREDIRECT|SW:DOFIXIT}}
* It is usually preferable not to use redirected links in navigational templates, such as those found at the bottom of many articles (e.g., {{Tl|US Presidents}} at the end of [[George Washington]]). When the template is placed on an article and contains a ''direct'' link to the same article (rather than a redirect), the direct link will display in '''bold''' (and not as a link), making it easier to navigate through a series of articles using the template. There are exceptions to this exception: where a redirect represents a distinct sub-topic within a larger article and is not merely a variant name, it is preferable to leave the redirect in the template.
* It is usually preferable not to use redirected links in navigational templates, such as those found at the bottom of many articles (e.g., {{Tl|US Presidents}} at the end of [[George Washington]]). When the template is placed on an article and contains a ''direct'' link to the same article (rather than a redirect), the direct link will display in '''bold''' (and not as a link), making it easier to navigate through a series of articles using the template. There are exceptions to this exception: where a redirect represents a distinct sub-topic within a larger article and is not merely a variant name, it is preferable to leave the redirect in the template.
* It may be appropriate to make this kind of change if the hint that appears when a user hovers over the link is misleading (see [[WP:ASTONISH|Principle of least astonishment]]).
* It may be appropriate to make this kind of change if the hint that appears when a user hovers over the link is misleading (see [[SW:ASTONISH|Principle of least astonishment]]).
* Spelling errors and other mistakes should be corrected. Don't link to a misspelled redirect. This does not necessarily mean that the misspelled redirect should be deleted (see {{tl|R from misspelling}}).
* Spelling errors and other mistakes should be corrected. Don't link to a misspelled redirect. This does not necessarily mean that the misspelled redirect should be deleted (see {{tl|R from misspelling}}).
* Links on disambiguation pages. See {{section link|Wikipedia:Manual of Style/Disambiguation pages|Piping and redirects}} for rationale and exceptions.
* Links on disambiguation pages. See {{section link|Stiles.casa Wiki:Manual of Style/Disambiguation pages|Piping and redirects}} for rationale and exceptions.
* Radio and TV station call letters, since call letters given up by one station can be used later by a different station.
* Radio and TV station call letters, since call letters given up by one station can be used later by a different station.
* In other namespaces, particularly the template and portal namespaces in which [[WP:Subpages|subpages]] are common, any link or transclusion to a former page title that has become a redirect following a page move or merge should be updated to the new title for naming consistency.
* In other namespaces, particularly the template and portal namespaces in which [[SW:Subpages|subpages]] are common, any link or transclusion to a former page title that has become a redirect following a page move or merge should be updated to the new title for naming consistency.
* Links on the [[Main Page]], to avoid stealthy vandalism by retargeting redirects. (But note, as above, that redirects to article sections should never be bypassed.)
* Links on the [[Main Page]], to avoid stealthy vandalism by retargeting redirects. (But note, as above, that redirects to article sections should never be bypassed.)


=== Self-redirects ===
=== Self-redirects ===
{{Shortcut|WP:SELFRED}}
{{Shortcut|SW:SELFRED}}
{{See also|Help:Self link}}
{{See also|Help:Self link}}


Avoid linking to titles that redirect straight back to the page on which the link is found. This situation may arise if a redirect is created from a red link on the page, or if the title was once a separate page but was merged.
Avoid linking to titles that redirect straight back to the page on which the link is found. This situation may arise if a redirect is created from a red link on the page, or if the title was once a separate page but was merged.


However, linking to a title that redirects to a section or anchor within the article (redirects with {{Tl|R to section}} or {{Tl|R to anchor}}) is acceptable, as it facilitates navigation in particular on long articles that cannot be viewed all at once on an average-sized computer screen. In addition to readability benefits, when such redirects are marked with {{Tl|R with possibilities}}, they have the potential to become independent articles in the future. However, consider using [[Wikipedia:Manual of Style/Linking#Section links|section links]] instead, when such redirects do not already exist.
However, linking to a title that redirects to a section or anchor within the article (redirects with {{Tl|R to section}} or {{Tl|R to anchor}}) is acceptable, as it facilitates navigation in particular on long articles that cannot be viewed all at once on an average-sized computer screen. In addition to readability benefits, when such redirects are marked with {{Tl|R with possibilities}}, they have the potential to become independent articles in the future. However, consider using [[Stiles.casa Wiki:Manual of Style/Linking#Section links|section links]] instead, when such redirects do not already exist.


==Template redirects== <!-- Wikipedia:AutoWikiBrowser/General fixes links here -->
==Template redirects== <!-- Stiles.casa Wiki:AutoWikiBrowser/General fixes links here -->
A template can be redirected to another template in the same way, e.g., by entering the following markup at the top of a template T2:
A template can be redirected to another template in the same way, e.g., by entering the following markup at the top of a template T2:
<pre>
<pre>
Line 240: Line 240:
This allows the template name T2 to be used instead of the actual template name T1. All the parameters of T1 will be respected by T2.
This allows the template name T2 to be used instead of the actual template name T1. All the parameters of T1 will be respected by T2.


A redirect categorisation ([[Wikipedia:Categorizing redirects|rcat]]) template such as {{Tl|R from move}} may be added to T2 (on the third line below the <code><nowiki>#REDIRECT</nowiki></code> line) as follows:
A redirect categorisation ([[Stiles.casa Wiki:Categorizing redirects|rcat]]) template such as {{Tl|R from move}} may be added to T2 (on the third line below the <code><nowiki>#REDIRECT</nowiki></code> line) as follows:
<pre>
<pre>
#REDIRECT [[Template:T1]]
#REDIRECT [[Template:T1]]
Line 252: Line 252:
== Redirect protection ==
== Redirect protection ==
{{Anchor|protection}}
{{Anchor|protection}}
{{Shortcut|WP:REDIRECTPROTECTION|WP:RPROTECTION}}
{{Shortcut|SW:REDIRECTPROTECTION|SW:RPROTECTION}}
Sometimes, a redirect to an article pertaining to a very controversial topic will be fully or, more rarely, semi-protected indefinitely. This is done when any of the following criteria are met:
Sometimes, a redirect to an article pertaining to a very controversial topic will be fully or, more rarely, semi-protected indefinitely. This is done when any of the following criteria are met:
#There is no reason for it to be edited
#There is no reason for it to be edited
Line 259: Line 259:
#It redirects and/or refers to a very controversial topic
#It redirects and/or refers to a very controversial topic


Redirects that are protected include [[Obama]], [[Hitler]], and [[9/11]]. '''[[WP:SRD|Soft redirects]]''' that are protected include obvious vandalism targets like [[dumbass]] and [[fatass]].
Redirects that are protected include [[Obama]], [[Hitler]], and [[9/11]]. '''[[SW:SRD|Soft redirects]]''' that are protected include obvious vandalism targets like [[dumbass]] and [[fatass]].


Redirects in other namespaces may be protected for technical reasons or are protected under existing guidelines. For example, a template redirect (shorthand) used thousands of times qualifies it as a [[Wikipedia:High-risk template|highly visible template]], eligible for [[WP:TEMP-P|template protection]].
Redirects in other namespaces may be protected for technical reasons or are protected under existing guidelines. For example, a template redirect (shorthand) used thousands of times qualifies it as a [[Stiles.casa Wiki:High-risk template|highly visible template]], eligible for [[SW:TEMP-P|template protection]].


== Category redirects ==
== Category redirects ==
{{Anchor|CATEGORY|category}}
{{Anchor|CATEGORY|category}}
{{Shortcut|WP:R#CATEGORY}}
{{Shortcut|SW:R#CATEGORY}}
{{About|technical issue on category redirects|making "soft" category redirects|Wikipedia:Categories for discussion#Redirecting categories|section=yes}}
{{About|technical issue on category redirects|making "soft" category redirects|Stiles.casa Wiki:Categories for discussion#Redirecting categories|section=yes}}
Do ''not'' create inter-[[Help:Category|category]] redirects, by adding a line <code>#REDIRECT [[<nowiki />:Category:''target category'']]</code> to a category page. Articles added to a "redirected" category do not show up in the target category, preventing proper categorization. What's worse, since redirected categories do not become "red links", editors won't be aware even when they add an article to a redirected category.
Do ''not'' create inter-[[Help:Category|category]] redirects, by adding a line <code>#REDIRECT [[<nowiki />:Category:''target category'']]</code> to a category page. Articles added to a "redirected" category do not show up in the target category, preventing proper categorization. What's worse, since redirected categories do not become "red links", editors won't be aware even when they add an article to a redirected category.


For an attempt to fix this issue in [[MediaWiki]], see {{Phab|T5311}}.
For an attempt to fix this issue in [[MediaWiki]], see {{Phab|T5311}}.


Instead, [[WP:soft redirect|"soft" redirects]] are used. It can be created by placing {{Tlx|Category redirect|target}} in the category page. See [[Wikipedia:Categories for discussion#Redirecting categories]].
Instead, [[SW:soft redirect|"soft" redirects]] are used. It can be created by placing {{Tlx|Category redirect|target}} in the category page. See [[Stiles.casa Wiki:Categories for discussion#Redirecting categories]].


== Suppressing redirects ==
== Suppressing redirects ==
{{Anchor|SUPPRESS}}{{Shortcut|WP:R#SUPPRESS}}
{{Anchor|SUPPRESS}}{{Shortcut|SW:R#SUPPRESS}}
When a page is moved, a redirect is automatically left behind. Some groups of users (those who possess a <code>suppressredirect</code> [[Special:ListGroupRights|right]]) have the ability to prevent the redirect being created, by unchecking the box labelled "{{MediaWiki:Move-leave-redirect}}." Currently these groups are [[Wikipedia:Administrators|administrators]], [[Wikipedia:Bots|bots]], [[Wikipedia:Page mover|page movers]], and [[meta:Global rollback|global rollbackers]]. In some circumstances, a page should be moved, but a redirect from its current name is inappropriate, such as reverting [[Wikipedia:Vandalism#Page-move vandalism|page-move vandalism]]. Suppressing the redirect can avoid an extra action (page removal) and save time in these cases.
When a page is moved, a redirect is automatically left behind. Some groups of users (those who possess a <code>suppressredirect</code> [[Special:ListGroupRights|right]]) have the ability to prevent the redirect being created, by unchecking the box labelled "{{MediaWiki:Move-leave-redirect}}." Currently these groups are [[Stiles.casa Wiki:Administrators|administrators]], [[Stiles.casa Wiki:Bots|bots]], [[Stiles.casa Wiki:Page mover|page movers]], and [[meta:Global rollback|global rollbackers]]. In some circumstances, a page should be moved, but a redirect from its current name is inappropriate, such as reverting [[Stiles.casa Wiki:Vandalism#Page-move vandalism|page-move vandalism]]. Suppressing the redirect can avoid an extra action (page removal) and save time in these cases.


However, in general, the redirect will be a useful entry in the history, and it is best to leave it behind, unless there is a good reason to suppress the redirect, such as vandalism, [[Wikipedia:Userfication|userfying]] ''recently created'' malplaced items or freeing a title to be occupied immediately by another page (e.g., moving <u>term</u> to <u>accurate term</u> and <u>term (disambiguation)</u> to <u>term</u>). Redirects leave a trail to help readers find the old article, in case a new article is created at its previous location, and to prevent [[Wikipedia:Linkrot|linkrot]]. Therefore, we usually neither suppress nor [[#When should we delete a redirect?|delete]] redirects. As Brion Vibber [[phab:T17842#205934|said]], "Not breaking links helps everyone, ''especially us first and foremost''". He also [[phab:T17842#205878|said]] that the removal of (file) redirects is "extremely user-hostile and makes the project less useful".
However, in general, the redirect will be a useful entry in the history, and it is best to leave it behind, unless there is a good reason to suppress the redirect, such as vandalism, [[Stiles.casa Wiki:Userfication|userfying]] ''recently created'' malplaced items or freeing a title to be occupied immediately by another page (e.g., moving <u>term</u> to <u>accurate term</u> and <u>term (disambiguation)</u> to <u>term</u>). Redirects leave a trail to help readers find the old article, in case a new article is created at its previous location, and to prevent [[Stiles.casa Wiki:Linkrot|linkrot]]. Therefore, we usually neither suppress nor [[#When should we delete a redirect?|delete]] redirects. As Brion Vibber [[phab:T17842#205934|said]], "Not breaking links helps everyone, ''especially us first and foremost''". He also [[phab:T17842#205878|said]] that the removal of (file) redirects is "extremely user-hostile and makes the project less useful".


== Technical notes ==
== Technical notes ==
A Wikipedia redirect is not the same as an [[HTTP redirect]]—it does not generate an [[HTTP 302]] (or other 30''x'') response. Instead, a page with almost the same content as the target of the redirect is generated by the MediaWiki software, differing in that a small-text note appears below the title of the page, identifying the name of the redirect used to get there (and linking to it in such a way that it can be accessed without the redirect, e.g. so it can be changed). When a user clicks on a redirect such as [[housecat]], the page URL initially will be https://en.wikipedia.org/wiki/Housecat, but the URL shown by the browser will change to https://en.wikipedia.org/wiki/Cat after the page loads.
A Stiles.casa Wiki redirect is not the same as an [[HTTP redirect]]—it does not generate an [[HTTP 302]] (or other 30''x'') response. Instead, a page with almost the same content as the target of the redirect is generated by the MediaWiki software, differing in that a small-text note appears below the title of the page, identifying the name of the redirect used to get there (and linking to it in such a way that it can be accessed without the redirect, e.g. so it can be changed). When a user clicks on a redirect such as [[housecat]], the page URL initially will be https://en.stiles.casa_wiki.org/wiki/Housecat, but the URL shown by the browser will change to https://en.stiles.casa_wiki.org/wiki/Cat after the page loads.


On one hand, this allows links like [[housecat#Anatomy]] to work as expected, but it also requires redirects to anchors to be implemented as a piece of JavaScript that jumps to an appropriate section after the page has loaded. For example, [[second-stage boot loader]], which is rendered as the URL https://en.wikipedia.org/wiki/Second-stage_boot_loader, is a page defined as a #REDIRECT to [[Booting#SECOND-STAGE]]. "SECOND-STAGE", in this case, is a manually defined anchor (using the markup "<nowiki>=== {{anchor|SECOND-STAGE}}Second-stage boot loader ===</nowiki>") which will persist even if the section is renamed. However, whether a redirect points to a manually defined anchor, or an anchor defined implicitly via a section name, the behavior will be the same: the page will automatically be scrolled down to the pointed-to anchor only after the page finishes loading (at which point the URL bar will also change to reflect the redirected-to URL, including "#''anchor''" portion, rather than the redirected-from URL).
On one hand, this allows links like [[housecat#Anatomy]] to work as expected, but it also requires redirects to anchors to be implemented as a piece of JavaScript that jumps to an appropriate section after the page has loaded. For example, [[second-stage boot loader]], which is rendered as the URL https://en.stiles.casa_wiki.org/wiki/Second-stage_boot_loader, is a page defined as a #REDIRECT to [[Booting#SECOND-STAGE]]. "SECOND-STAGE", in this case, is a manually defined anchor (using the markup "<nowiki>=== {{anchor|SECOND-STAGE}}Second-stage boot loader ===</nowiki>") which will persist even if the section is renamed. However, whether a redirect points to a manually defined anchor, or an anchor defined implicitly via a section name, the behavior will be the same: the page will automatically be scrolled down to the pointed-to anchor only after the page finishes loading (at which point the URL bar will also change to reflect the redirected-to URL, including "#''anchor''" portion, rather than the redirected-from URL).
<!-- https://phabricator.wikimedia.org/T37045 -->
<!-- https://phabricator.wikimedia.org/T37045 -->


== See also ==
== See also ==
{{Wikipedia glossary}}
{{Stiles.casa Wiki glossary}}
{{Commons category|MediaWiki redirects}}
{{Commons category|MediaWiki redirects}}
* [[:Category:Redirect templates]]
* [[:Category:Redirect templates]]
* [[:Category:Wikipedia redirects]]
* [[:Category:Stiles.casa Wiki redirects]]
* [[Wikipedia:Moving a page]]
* [[Stiles.casa Wiki:Moving a page]]
* [[Help:Redirect]]
* [[Help:Redirect]]
* [[meta:Help:Redirect|Redirect technical help at Meta-Wiki]]
* [[meta:Help:Redirect|Redirect technical help at Meta-Wiki]]
Line 299: Line 299:
* [[Template:No redirect]]
* [[Template:No redirect]]
* [[Template:Is redirect]]
* [[Template:Is redirect]]
* [[Wikipedia:Articles for creation/Redirects and categories]], to suggest a missing redirect
* [[Stiles.casa Wiki:Articles for creation/Redirects and categories]], to suggest a missing redirect
* [[Wikipedia:Hatnote]] (see [[Wikipedia:Redirect#What needs to be done on pages that are targets of redirects?|above]])
* [[Stiles.casa Wiki:Hatnote]] (see [[Stiles.casa Wiki:Redirect#What needs to be done on pages that are targets of redirects?|above]])
* [[Wikipedia:Redirects for discussion]]
* [[Stiles.casa Wiki:Redirects for discussion]]
* [[Wikipedia:Soft redirect]]
* [[Stiles.casa Wiki:Soft redirect]]
* [[Wikipedia:WikiProject Redirect]]
* [[Stiles.casa Wiki:WikiProject Redirect]]
** [[Wikipedia:WikiProject Redirect/Style guide]]
** [[Stiles.casa Wiki:WikiProject Redirect/Style guide]]
* [[Wikipedia:Database reports/Page count by namespace]] and by non-redirects/redirects
* [[Stiles.casa Wiki:Database reports/Page count by namespace]] and by non-redirects/redirects
* [[Wikipedia:Deletion by redirection]]
* [[Stiles.casa Wiki:Deletion by redirection]]
* [[User:Wugapodes/Capricorn|Capricorn]], a Wikipedia gadget for categorizing redirects
* [[User:Wugapodes/Capricorn|Capricorn]], a Stiles.casa Wiki gadget for categorizing redirects
* {{anli|Wikipedia:Redirects are cheap}}
* {{anli|Stiles.casa Wiki:Redirects are cheap}}
* {{anli|Wikipedia:Redirects are costly}}
* {{anli|Stiles.casa Wiki:Redirects are costly}}


== References ==
== References ==
{{Reflist}}
{{Reflist}}


[[Category:Wikipedia editing guidelines]]
[[Category:Stiles.casa Wiki editing guidelines]]
[[Category:Wikipedia redirecting| ]]
[[Category:Stiles.casa Wiki redirecting| ]]

Latest revision as of 14:06, 11 June 2022

A screenshot of Stiles.casa Wiki showing a redirect from Pichilemo to Pichilemu
How redirects show up on the MinervaNeue skin

A redirect is a page which automatically sends visitors to another page, usually an article or section of an article. For example, if you type "UK" in the search box or click on the wikilink UK, you will be taken to the article United Kingdom with a note at the top of the page (or on mobile, in a black message bar at the bottom): "(Redirected from UK)". This is because the page UK contains special wikitext which defines it as a redirect page and indicates the target article. It is also possible to redirect to a specific section of the target page, using more advanced syntax.

Redirect pages can contain other content below the redirect, such as redirect category templates, and category links (which provide a way to list article sections in categories).

Redirects are used to help people arrive more quickly at the page they want to read; this page contains guidance on how to use them properly. For technical help relating to how redirects work, see Help:Redirect. Other relevant pages are Stiles.casa Wiki:Double redirects, Stiles.casa Wiki:Hatnote § Redirect and WikiProject Redirect.

Purposes of redirects

Reasons for creating and maintaining redirects include:

There are redirect templates to explain the reason for a redirect.

Note that redirects to other Wikimedia projects, other websites, or special pages do not work. These should be avoided or replaced with a {{soft redirect}} template. Soft redirects are also used in category space (using the {{category redirect}} template). Redirects from list titles to categories (e.g. a redirect from [[List of things]] to [[Category:Things]]) are highly discouraged.<ref>Discouraged after a 2019 discussion.</ref>

How to make a redirect

Editing the source directly

To create a basic redirect using the source editor, type #REDIRECT [[target page name here]] as the only text on the page. The capitalization of the word REDIRECT doesn't matter. For instance, if you were redirecting from "UK" to "United Kingdom", this would be the entire body of the "UK" page:

#REDIRECT [[United Kingdom]]

Using VisualEditor

To create a redirect using the VisualEditor:

  1. Open the "page options" menu (icon with three parallel horizontal bars) at the top right of the editor
  2. Select "Page settings"
  3. Check the box marked "Redirect this page to"
  4. Enter the name of the target page in the text box below the checkbox
  5. Click on the blue "Apply changes" button
  6. Save the page. You may enter an edit summary, or an automatic summary will be generated.

When moving a page

Redirects can also be automatically created when you move (rename) an existing page.

Requesting a redirect

If you can't create pages, you can request redirects at Stiles.casa Wiki:Redirect wizard.

How to edit a redirect or convert it into an article

Sometimes an existing redirect should really be handled by a full article, per Category:Redirects with possibilities. For example, the name of a notable musician (who does not yet have an article) may instead be a redirect to an existing article about a band of which the musician is a member. In this case, you can edit the redirect to make it into an article. Also, if an existing redirect points to the wrong page, you can edit the redirect to point to a different page.

If you want to edit a redirect page you must use a special technique in order to get to the redirect page itself. This is because when you try to go straight to the redirect page and edit it, the redirect page will automatically redirect you to its target page (because this is what a redirect page is meant to do). Below is an example of why you might need to go to a redirect page itself (to do a small edit) and how to actually get there.

For example, say Trygve Halvdan Lie did not have his own article, and so this link was a redirect to the page Secretary-General of the United Nations. If, later on, the page Trygve Lie was created as a biography, the page Trygve Halvdan Lie should be changed to redirect to Trygve Lie per SW:COMMONNAME. To do this, go to the redirect page by clicking the existing redirect note on the target page, which in this case would read "(Redirected from Trygve Halvdan Lie)". Once there, you may click the "Edit" tab, and change the page from

#REDIRECT [[Secretary-General of the United Nations]]

to

#REDIRECT [[Trygve Lie]]

When adding or changing a redirect, always verify the links that already point there. For instance, if another person named Trygve Lie becomes very well known, it would make sense to make Trygve Lie a redirect to his page (after renaming the existing Trygve Lie page). Such a change cannot be made without changing all the preexisting links to Trygve Lie; these links can be found by clicking on What links here in the left hand menu.

Targeted and untargeted redirects

Most redirects are untargeted, i.e. they lead simply to a page, not to any specific section of the page. This is usually done when there is more than one possible name under which an article might be sought (for example, Cellphone redirects to the article Mobile phone). For deciding which should be the actual title of the article, see Article titles.

It is also possible to create a targeted redirect, i.e. a redirect to a particular point on the target page—either a section header or an anchor. For example, the page Malia Obama contains the code #REDIRECT [[Family of Barack Obama#Malia and Sasha Obama]], which redirects to the Malia and Sasha Obama section in the article Family of Barack Obama. Therefore, entering "Malia Obama" will bring the searcher straight to the content that deals with "Malia and Sasha Obama".

Consider that when the target page is displayed, it is likely that the top of the page will not be shown, so the user may not see the helpful "(redirected from... )" text unless they know to scroll back to the top. This is less likely to cause confusion if the redirect is to a heading with the same name as the redirect.

The text given in the link on a targeted redirect page must exactly match the target section heading or anchor text, including capitalization and punctuation. (While spaces and underscores are interchangeable in the current implementation of the Wikimedia software, it is generally good practice and aids maintenance to use exactly the same spelling in links as is used in the corresponding targets also for these characters.) (In the absence of a match, the reader will simply be taken to the top of the target page.) It is often helpful to leave a hidden comment in the target text, to inform other editors that a section title is linked, so that if the title is altered, the redirect can be changed. For example:

 ==Vaccine overload==
 <!-- linked from redirect [[Vaccine overload]] -->

To ensure that a redirect will not break if a section title gets altered, or to create a redirect to a point on the page other than a section heading, create an explicit target anchor in the page, e.g., by using the {{anchor}} template. Alternative anchors for section headings are ideally placed directly in front of the name of the heading (but after the equals signs):

=={{subst:Anchor|anchor name}}Section title==

{{subst:Anchor}} is preferable to simply using {{Anchor}} because otherwise, when the section is edited via its own "[ edit ]" link, the anchor markup and alternative section title(s) will appear as undesirable clutter at the beginning of revision history entries. Please see MOS:RENAMESECTION for further discussion of this.

The anchor text will not be visible on the page, but it will serve as a permanent marker of that place on the page. Editors should generally not remove or alter such anchors without checking all incoming links and redirects. If several logically independent aspects of a topic are discussed under a single section header and should be linked to, it is sometimes useful to define separate anchors for them, if the current amount of information doesn't justify a division into multiple sections already. This makes it easier to rearrange contents on a page as it develops since those anchors can be moved with their corresponding contents without a need to fix up incoming links.

For example, in the Google Search article, the text {{Anchor|calculator}} is placed at the point where Google Calculator is discussed. The title Google Calculator can then be redirected to Google Search#calculator.

When a section title is known to be the target of incoming links, the Stiles.casa Wiki Manual of Style suggests creating a redundant anchor with the same name as the section title, so that such links will continue to work even if someone renames the section without creating an anchor with the old name. Technically, the redundant section and anchor names result in invalid HTML.<ref>"The id attribute". HTML - Living Standard — Last Updated 2 June 2022. WHATWG. Retrieved June 3, 2022. </ref> However, when a document contains multiple tags with the same id value, browsers are required to return the first one, so in practice, this is not a problem.<ref>"getElementById". DOM - Living Standard — Last Updated 12 May 2022. WHATWG. Retrieved June 3, 2022. </ref>

Be careful with anchor capitalization, as redirects are case-sensitive in standards-compliant browsers.<ref>"Syntax of anchor names". HTML 4.01 Specification - W3C Recommendation 24 December 1999 - superseded 27 March 2018. W3C. Retrieved June 3, 2022. </ref>

References

<references group="" responsive="1"></references>

Double redirects

The software will not follow chains of more than one redirect—this is called a double redirect. A redirect should not be left pointing to another redirect page.

Double redirects often arise after a page is moved (renamed)—after moving a page, check whether there are any redirects to the old title (using the link on the move result page, or using "What links here"), and change them to redirect straight to the new title. Double redirects are usually fixed by a bot in a few days; however, an editor should not leave behind any self-created double redirects.

Linking to a redirect

You can link to a redirect page just as you can link to an article page by placing the redirect page name within a set of double brackets, such as:

[[Redirect page name]]

replacing Redirect page name with the name of the redirect page to link.

To link to a redirect page without following the underlying redirect, use: {{No redirect|Redirect page name}} replacing Redirect page name with the name of the redirect page to link. Clicking on a no-redirect link will send the reader to the redirect page rather than the final redirect destination.

Categorizing redirect pages

Most redirect pages are not placed in article categories. There are three types of redirect categorization that are helpful and useful:

  • Maintenance categories are in use for particular types of redirects, such as Category:Redirects from initialisms, in which a redirect page may be sorted using the {{R from initialism}} template. One major use of these categories is to determine which redirects are fit for inclusion in a printed subset of Stiles.casa Wiki. See Stiles.casa Wiki:Template messages/Redirect pages for functional and alphabetical lists of these templates. A brief functional list of redirect category (rcat) templates is also found in the {{R template index}} navbar.
  • Sometimes a redirect is placed in an article category because the form of the redirected title is more appropriate to the context of that category, e.g. Honey Lantree. (Redirects appear in italics in category listings.)
  • Discussion pages. If a discussion/talk page exists for a redirect, please ensure (1) that the talk page's WikiProject banners are tagged with the "class=Redirect" parameter and (2) that the talk page is tagged at the TOP with the {{Talk page of redirect}} template. If the discussion page is a redirect, then it may be tagged with appropriate redirect categorization templates (rcats).

Redirects from moves

When a page is renamed/moved, a redirect that is titled with the replaced page name is created and is automatically tagged with the {{R from move}} template. This sorts the redirect into Category:Redirects from moves.

When should we delete a redirect?

To delete a redirect without replacing it with a new article, list it on redirects for discussion. See the deletion policy for details on how to nominate pages for deletion.

Listing is not necessary if you just want to replace a redirect with an article, or change where it points: see these instructions for help doing this. If you want to swap a redirect and an article, but are not able to move the article to the location of the redirect, please use Stiles.casa Wiki:Requested moves to request help from an admin in doing that.

Template:Stiles.casa Wiki:Redirect/Deletion reasons

What needs to be done on pages that are targets of redirects?

Stiles.casa Wiki follows the "principle of least astonishment"; after following a redirect, the reader's first question is likely to be: "Hang on ... I wanted to read about this. Why has the link taken me to that?" Make it clear to the reader that they have arrived in the right place.

Normally, we try to make sure that all "inbound redirects" other than misspellings or other obvious close variants of the article title are mentioned in the first couple of paragraphs of the article or section to which the redirect goes. It will often be appropriate to bold the redirected term. For example:

  • Alice Bradley Sheldon (August 24, 1915 – May 19, 1987) was an American science fiction author better known as James Tiptree Jr. ...

But insignificant or minor redirects can skip this:

If the redirected term could have other meanings, a hatnote (examples) should be placed at the top of the target article or targeted section that will direct readers to the other meanings or to a relevant disambiguation page. This is usually done using one of the redirect disambiguation templates (examples).

It may also be helpful to search the List of Categories for related terms.

Redirects that replace previous articles

Removing all content in a problematic article and replacing it with a redirect is common practice, known as blank-and-redirect. If other editors disagree with this blanking, its contents can be recovered from page history, as the article has not been deleted. If editors cannot agree, the content issues should be discussed at the relevant talk page, and other methods of dispute resolution should be used, such as restoring the article and nominating the article for Stiles.casa Wiki:Articles for deletion.<ref>An RfC closed in 2021 found Most users believe that AfD should be used to settle controversial or contested cases of blanking and redirecting.</ref>

To make it easier for other editors to find the history of the blanked article, it's good practice to add a short notice at the talk page of the target article, even if no content has been merged there. This is especially useful if the blanked article had few visits and infrequent edits. If the redirect replaces an article that has been deleted by an administrator, this notice is the only way for editors to know that a previous version of the article existed at all.

References

<references group="" responsive="1"></references>

Content of the replaced article

The template {{R with history}} should be added to the resulting redirect. If the topic of the article can be reasonably thought to describe a notable topic, mark the redirect with the template {{Redirect with possibilities}} to indicate that it could be expanded in the future. You may also consider turning the article into a stub by removing all unsourced content and keeping the valid references, instead of blanking it.

Note that certain forms of blanking are not allowed. Illegitimate blanking of valid content without reason is considered vandalism, a form of disruptive editing. Other forms of blank-and-redirect, although not vandalism, are still undesirable. If you want to rename the article by cutting and pasting text to a new article with a different title, you should instead move the page with the Move option. If you want to keep some content from the blanked article and add it to the target article, you should follow the instructions at Stiles.casa Wiki:Merging § How to merge. Both processes will create proper links to the edit history, which is required by the Stiles.casa Wiki license for legal reasons to preserve attribution of content to its authors.

Do not "fix" links to redirects that are not broken

There is usually nothing wrong with linking to redirects to articles. Some editors are tempted, upon finding a link to a redirect page, to bypass the redirect and point the link directly at the target page. However, changing to a piped link is beneficial only in a few cases. Piping links solely to avoid redirects is generally a time-wasting exercise that can actually be detrimental. It is almost never helpful to replace [[redirect]] with [[target|redirect]].

That is, editors should not change, for instance, [[Franklin Roosevelt]] to [[Franklin D. Roosevelt]] or [[Franklin D. Roosevelt|Franklin Roosevelt]] just to "fix a redirect". However, it is perfectly acceptable to change it to [[Franklin D. Roosevelt]] if for some reason it is preferred that "Franklin D. Roosevelt" actually appear in the visible text. Editors should also not change redirects with possibilities like [[Journal of the Franklin Institute]] to [[Franklin Institute#Journal of the Franklin Institute|Journal of the Franklin Institute]], so that readers arrive at the more pertinent article in the eventuality that it is created.

Reasons not to bypass redirects include:

  • Redirects can indicate possible future articles (see {{R with possibilities}}).
  • Introducing unnecessary invisible text makes the article more difficult to read in page source form.
  • Non-piped links make better use of the "what links here" tool, making it easier to track how articles are linked and helping with large-scale changes to links.
  • Shortcuts or redirects to embedded anchors or sections of articles or of Stiles.casa Wiki's advice pages should never be bypassed, as the anchors or section headings on the page may change over time. Updating one redirect is far more efficient than updating dozens of piped links. (The Rdcheck tool is extremely useful in such cases for finding which redirects need to be changed after an article is updated.)
  • Intentional links to disambiguation pages always use the title with "(disambiguation)", even if that is a redirect.
  • If editors persistently use a redirect instead of an article title, it may be that the article needs to be moved rather than the redirect changed. As such the systematic "fixing of redirects" may eradicate useful information which can be used to help decide on the "best" article title.

Good reasons to bypass redirects include:

  • It is usually preferable not to use redirected links in navigational templates, such as those found at the bottom of many articles (e.g., {{US Presidents}} at the end of George Washington). When the template is placed on an article and contains a direct link to the same article (rather than a redirect), the direct link will display in bold (and not as a link), making it easier to navigate through a series of articles using the template. There are exceptions to this exception: where a redirect represents a distinct sub-topic within a larger article and is not merely a variant name, it is preferable to leave the redirect in the template.
  • It may be appropriate to make this kind of change if the hint that appears when a user hovers over the link is misleading (see Principle of least astonishment).
  • Spelling errors and other mistakes should be corrected. Don't link to a misspelled redirect. This does not necessarily mean that the misspelled redirect should be deleted (see {{R from misspelling}}).
  • Links on disambiguation pages. See Stiles.casa Wiki:Manual of Style/Disambiguation pages § Piping and redirects for rationale and exceptions.
  • Radio and TV station call letters, since call letters given up by one station can be used later by a different station.
  • In other namespaces, particularly the template and portal namespaces in which subpages are common, any link or transclusion to a former page title that has become a redirect following a page move or merge should be updated to the new title for naming consistency.
  • Links on the Main Page, to avoid stealthy vandalism by retargeting redirects. (But note, as above, that redirects to article sections should never be bypassed.)

Self-redirects

Avoid linking to titles that redirect straight back to the page on which the link is found. This situation may arise if a redirect is created from a red link on the page, or if the title was once a separate page but was merged.

However, linking to a title that redirects to a section or anchor within the article (redirects with {{R to section}} or {{R to anchor}}) is acceptable, as it facilitates navigation in particular on long articles that cannot be viewed all at once on an average-sized computer screen. In addition to readability benefits, when such redirects are marked with {{R with possibilities}}, they have the potential to become independent articles in the future. However, consider using section links instead, when such redirects do not already exist.

Template redirects

A template can be redirected to another template in the same way, e.g., by entering the following markup at the top of a template T2:

#REDIRECT [[Template:T1]]

This allows the template name T2 to be used instead of the actual template name T1. All the parameters of T1 will be respected by T2.

A redirect categorisation (rcat) template such as {{R from move}} may be added to T2 (on the third line below the #REDIRECT line) as follows:

#REDIRECT [[Template:T1]]

{{Redirect category shell|
{{R from move}}
}}

While template shortcut/alias redirects are common, they may infrequently cause confusion and make updating template calls more complicated. For example, if calls to T1 are to be changed to some new template NT1, articles must be searched for {{T1}} and a separate search must also be made for each of its aliases (including T2 in this example). Moreover, changes to syntax, corrections, scans and other processes (for example tag dating) must take into account all applicable redirects.

Redirect protection

Sometimes, a redirect to an article pertaining to a very controversial topic will be fully or, more rarely, semi-protected indefinitely. This is done when any of the following criteria are met:

  1. There is no reason for it to be edited
  2. It is frequently expanded into whole articles
  3. It is an obvious vandalism target
  4. It redirects and/or refers to a very controversial topic

Redirects that are protected include Obama, Hitler, and 9/11. Soft redirects that are protected include obvious vandalism targets like dumbass and fatass.

Redirects in other namespaces may be protected for technical reasons or are protected under existing guidelines. For example, a template redirect (shorthand) used thousands of times qualifies it as a highly visible template, eligible for template protection.

Category redirects

Do not create inter-category redirects, by adding a line #REDIRECT [[:Category:target category]] to a category page. Articles added to a "redirected" category do not show up in the target category, preventing proper categorization. What's worse, since redirected categories do not become "red links", editors won't be aware even when they add an article to a redirected category.

For an attempt to fix this issue in MediaWiki, see T5311.

Instead, "soft" redirects are used. It can be created by placing {{Category redirect|target}} in the category page. See Stiles.casa Wiki:Categories for discussion#Redirecting categories.

Suppressing redirects

When a page is moved, a redirect is automatically left behind. Some groups of users (those who possess a suppressredirect right) have the ability to prevent the redirect being created, by unchecking the box labelled "Leave a redirect behind." Currently these groups are administrators, bots, page movers, and global rollbackers. In some circumstances, a page should be moved, but a redirect from its current name is inappropriate, such as reverting page-move vandalism. Suppressing the redirect can avoid an extra action (page removal) and save time in these cases.

However, in general, the redirect will be a useful entry in the history, and it is best to leave it behind, unless there is a good reason to suppress the redirect, such as vandalism, userfying recently created malplaced items or freeing a title to be occupied immediately by another page (e.g., moving term to accurate term and term (disambiguation) to term). Redirects leave a trail to help readers find the old article, in case a new article is created at its previous location, and to prevent linkrot. Therefore, we usually neither suppress nor delete redirects. As Brion Vibber said, "Not breaking links helps everyone, especially us first and foremost". He also said that the removal of (file) redirects is "extremely user-hostile and makes the project less useful".

Technical notes

A Stiles.casa Wiki redirect is not the same as an HTTP redirect—it does not generate an HTTP 302 (or other 30x) response. Instead, a page with almost the same content as the target of the redirect is generated by the MediaWiki software, differing in that a small-text note appears below the title of the page, identifying the name of the redirect used to get there (and linking to it in such a way that it can be accessed without the redirect, e.g. so it can be changed). When a user clicks on a redirect such as housecat, the page URL initially will be https://en.stiles.casa_wiki.org/wiki/Housecat, but the URL shown by the browser will change to https://en.stiles.casa_wiki.org/wiki/Cat after the page loads.

On one hand, this allows links like housecat#Anatomy to work as expected, but it also requires redirects to anchors to be implemented as a piece of JavaScript that jumps to an appropriate section after the page has loaded. For example, second-stage boot loader, which is rendered as the URL https://en.stiles.casa_wiki.org/wiki/Second-stage_boot_loader, is a page defined as a #REDIRECT to Booting#SECOND-STAGE. "SECOND-STAGE", in this case, is a manually defined anchor (using the markup "=== {{anchor|SECOND-STAGE}}Second-stage boot loader ===") which will persist even if the section is renamed. However, whether a redirect points to a manually defined anchor, or an anchor defined implicitly via a section name, the behavior will be the same: the page will automatically be scrolled down to the pointed-to anchor only after the page finishes loading (at which point the URL bar will also change to reflect the redirected-to URL, including "#anchor" portion, rather than the redirected-from URL).

See also

References

<references group="" responsive="1"></references>