Template:R from incorrect name/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Paine Ellsworth
→‎See also: xfer cats from template to /doc
meta>Paine Ellsworth
xfer links from template and other updates
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
* This redirect category ([[WP:RCAT|Rcat]]) template populates both the [[:Category:Redirects from incorrect names|Redirects from incorrect names]] and [[:Category:Unprintworthy redirects|Unprintworthy redirects]] categories.


=== Purpose ===
=== Purpose ===
Line 12: Line 13:


=== Usage ===
=== Usage ===
* Use this Rcat for any redirect from an incorrect article name to the correct name.  Add this template to the redirect in the following manner:
<code><nowiki>#REDIRECT [[(Article title)]] {{R from incorrect name}}</nowiki></code>
:This is in accord with instructions found at [[Wikipedia:REDCAT]]
* The {{tl|This is a redirect}} template may also be used to add this and other appropriate Rcats.
* There is one parameter, unnamed.  It specifies the optional ''correct name''.
<code><nowiki>{{R</nowiki> from incorrect name|''Correct name''}}</code>
<code><nowiki>{{R</nowiki> from incorrect name|''Correct name''}}</code>
There is one parameter, unnamed.  It specifies the optional ''correct name''.
Redirect categories (Rcats) must always be added on the ''first line'' next to the <code><nowiki>#REDIRECT [[Article title]]</nowiki></code> per [[WP:REDCAT]] as seen below.


====Redirect target is the ''correct name''====
====Redirect target is the ''correct name''====
Line 24: Line 27:
Example:  
Example:  
:''UK Cycling'' → ''British Cycling''
:''UK Cycling'' → ''British Cycling''
<pre>#REDIRECT [[British Cycling]]{{R from incorrect name}}</pre>
<pre>#REDIRECT [[British Cycling]] {{R from incorrect name}}</pre>
:It is acceptable but unnecessary to specify the redirect target as the ''correct name'':
:It is acceptable but unnecessary to specify the redirect target as the ''correct name'':
<pre>#REDIRECT [[British Cycling]]{{R from incorrect name|British Cycling}}</pre>
<pre>#REDIRECT [[British Cycling]] {{R from incorrect name|British Cycling}}</pre>


====Redirect target only mentions subject====
====Redirect target only mentions subject====
Line 35: Line 38:
Example:  
Example:  
:''Virginia Western Coal and Iron Railroad'' → ''Virginia–Carolina Railway''; correct name is ''Virginia Western Coal and Iron Railway'' (which also → ''Virginia–Carolina Railway'')
:''Virginia Western Coal and Iron Railroad'' → ''Virginia–Carolina Railway''; correct name is ''Virginia Western Coal and Iron Railway'' (which also → ''Virginia–Carolina Railway'')
<pre>#REDIRECT [[Virginia–Carolina Railway]]{{R from incorrect name|Virginia Western Coal and Iron Railway}}</pre>
<pre>#REDIRECT [[Virginia–Carolina Railway]] {{R from incorrect name|Virginia Western Coal and Iron Railway}}</pre>


====Redirect targets a #section or #anchor====
====Redirect targets a #section or #anchor====
<code><nowiki>{{R</nowiki> from incorrect name|''Correct name''}}</code>
<code><nowiki>{{R</nowiki> from incorrect name|''Correct name''}}</code>


When linking to a section or anchor within an article such as <nowiki>#REDIRECT[[TargetPage#section name]]</nowiki>, the correct use is <nowiki>{{R from incorrect name|Correct Name}}</nowiki>, and <nowiki>[[Correct Name]]</nowiki> is expected to be a redirect page also redirecting to <nowiki>[[TargetPage#section name]]</nowiki>.  That is, if this redirect is an incorrect name, there should be a matching redirect for the ''correct name''.
When linking to a section or anchor within an article such as <nowiki>#REDIRECT [[TargetPage#section name]]</nowiki>, the correct use is <nowiki>{{R from incorrect name|Correct Name}}</nowiki>, and <nowiki>[[Correct Name]]</nowiki> is expected to be a redirect page also redirecting to <nowiki>[[TargetPage#section name]]</nowiki>.  That is, if this redirect is an incorrect name, there should be a matching redirect for the ''correct name''.


Example:  
Example:  
:''The Legend of Zelda: A Link to the Past Four Swords'' → ''The Legend of Zelda: A Link to the Past#A Link to the Past/Four Swords''; correct name is ''The Legend of Zelda: A Link to the Past/Four Swords'' (which also → ''The Legend of Zelda: A Link to the Past#A Link to the Past/Four Swords'')
:''The Legend of Zelda: A Link to the Past Four Swords'' → ''The Legend of Zelda: A Link to the Past#A Link to the Past/Four Swords''; correct name is ''The Legend of Zelda: A Link to the Past/Four Swords'' (which also → ''The Legend of Zelda: A Link to the Past#A Link to the Past/Four Swords'')
<pre>#REDIRECT [[The Legend of Zelda: A Link to the Past#A Link to the Past/Four Swords]]{{R from incorrect name|The Legend of Zelda: A Link to the Past/Four Swords}}</pre>
<pre>#REDIRECT [[The Legend of Zelda: A Link to the Past#A Link to the Past/Four Swords]] {{R from incorrect name|The Legend of Zelda: A Link to the Past/Four Swords}}</pre>


=== See also ===
=== See also ===
Specializations of this template:
* A special case of the '''R from incorrect name''' template is {{tl|R from subsidiary title}} for [[subsidiary title]]s in the peerage system - an hereditary title held by a royal or a noble, but is not regularly used to identify that person.
*{{tl|R from subsidiary title}} for [[subsidiary title]]s in the peerage system - an hereditary title held by a royal or a noble but which is not regularly used to identify that person.
* {{tl|R template index}}
For other redirect templates of this type, see {{tl|R template index}} and [[Wikipedia:Template messages/Redirect pages]]
* [[Wikipedia:Template messages/Redirect pages]]


<includeonly>
<includeonly>

Revision as of 03:28, 26 June 2011

Purpose

This template marks a redirect as one that ought not be used, and provides the correct name. Any link to a redirect page transcluding this template ought to be changed to the correct name.

This template inserts the redirect into the following categories:

With a correct name specified for all uses of this template repairing links to the redirect page becomes simple: the link to the redirect page should be changed to the link to the correct name. Given the correct name is specified for each case below, it should always be easy to fix links these redirects.

Usage

  • Use this Rcat for any redirect from an incorrect article name to the correct name. Add this template to the redirect in the following manner:
#REDIRECT [[(Article title)]] {{R from incorrect name}}
This is in accord with instructions found at Wikipedia:REDCAT
  • The {{This is a redirect}} template may also be used to add this and other appropriate Rcats.
  • There is one parameter, unnamed. It specifies the optional correct name.

{{R from incorrect name|Correct name}}

Redirect target is the correct name

{{R from incorrect name}}

When the correct name is the target of the redirect just use {{R from incorrect name}}; the correct name is already available as an article.

Example:

UK CyclingBritish Cycling
#REDIRECT [[British Cycling]] {{R from incorrect name}}
It is acceptable but unnecessary to specify the redirect target as the correct name:
#REDIRECT [[British Cycling]] {{R from incorrect name|British Cycling}}

Redirect target only mentions subject

{{R from incorrect name|Correct name}}

When linking to article where the subject is only mentioned in the target article, the correct use is {{R from incorrect name|Correct Name}}, and [[Correct Name]] is expected to be a redirect page also redirecting to [[TargetPage]]. That is, if this redirect is an incorrect name but the target article isn't the correct name, there should be a matching redirect for the correct name.

Example:

Virginia Western Coal and Iron RailroadVirginia–Carolina Railway; correct name is Virginia Western Coal and Iron Railway (which also → Virginia–Carolina Railway)
#REDIRECT [[Virginia–Carolina Railway]] {{R from incorrect name|Virginia Western Coal and Iron Railway}}

Redirect targets a #section or #anchor

{{R from incorrect name|Correct name}}

When linking to a section or anchor within an article such as #REDIRECT [[TargetPage#section name]], the correct use is {{R from incorrect name|Correct Name}}, and [[Correct Name]] is expected to be a redirect page also redirecting to [[TargetPage#section name]]. That is, if this redirect is an incorrect name, there should be a matching redirect for the correct name.

Example:

The Legend of Zelda: A Link to the Past Four SwordsThe Legend of Zelda: A Link to the Past#A Link to the Past/Four Swords; correct name is The Legend of Zelda: A Link to the Past/Four Swords (which also → The Legend of Zelda: A Link to the Past#A Link to the Past/Four Swords)
#REDIRECT [[The Legend of Zelda: A Link to the Past#A Link to the Past/Four Swords]] {{R from incorrect name|The Legend of Zelda: A Link to the Past/Four Swords}}

See also