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

From Zoophilia Wiki
Jump to navigationJump to search
meta>Paine Ellsworth
update /doc, rm cat and add cat
meta>Paine Ellsworth
m update /doc
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE AND INTERWIKIS TO WIKIDATA -->
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE AND INTERWIKIS TO WIKIDATA. -->
__NOTOC__
__NOTOC__
=== Purpose ===
=== Purpose ===
Line 12: Line 12:


=== Usage ===
=== Usage ===
{{hatnote|Use this Rcat template in '''any [[wp:namespace|namespace]]'''.}}
{{hatnote|Use this rcat template in '''any [[wp:namespace|namespace]]'''.}}
* 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:
* Use this redirect category ([[WP:RCAT|rcat]]) template 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>
<pre>
#REDIRECT [[(target page name)]]
 
{{R from incorrect name}}
</pre>
:This is in accord with instructions found at [[Wikipedia:REDCAT]]
: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.
* Template {{tl|This is a redirect}} may also be used to add this and up to seven appropriate rcats to a redirect.
* There is one parameter, unnamed.  It specifies the optional ''correct name''.
* There is one parameter, unnamed.  It specifies the optional ''correct name'':
<code><nowiki>{{R</nowiki> from incorrect name|''Correct name''}}</code>
<pre>
{{R from incorrect name|(correct name)}}
</pre>


'''Redirect target is the ''correct name'''''
'''When redirect target is the ''correct name'''''


<code><nowiki>{{R</nowiki> from incorrect name}}</code>
<pre>
{{R from incorrect name}}
</pre>


When the correct name is the target of the redirect just use <nowiki>{{R from incorrect name}}</nowiki>; the ''correct name'' is already available as an article.
When the ''correct name'' is the target of the redirect, then use this template without the first
parameter.


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'''


<code><nowiki>{{R</nowiki> from incorrect name|''Correct name''}}</code>
When linking to article where the subject is only mentioned in the target article, the correct use is:
<pre>
{{R from incorrect name|(correct name)}}
</pre>
The ''correct name'' is expected to be a redirect page that also redirects to the target page.  That is, if this redirect is an incorrect name, and the target article is not the ''correct name'', there should be a matching redirect page that is titled with the ''correct name''.


When linking to article where the subject is only mentioned in the target article, 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]]</nowiki>.  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 Railroad'' → ''Virginia–Carolina Railway''; the correct name is ''Virginia Western Coal and Iron Railway'', which also redirects to the ''Virginia–Carolina Railway'' article:
<pre>
#REDIRECT [[Virginia–Carolina Railway]]


Example:
{{R from incorrect name|Virginia Western Coal and Iron 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>
<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>
When a redirect is to a section or anchor within an article such as:
<pre>
#REDIRECT [[(target page)#(section or anchor title)]]
</pre>
the correct use is
<pre>
{{R from incorrect name|(correct name)}}
</pre>
The ''correct name'' is expected to be a redirect page that also redirects to that same section of the target page.  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:
:''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''; the correct name is ''The Legend of Zelda: A Link to the Past/Four Swords'', which also redirects to ''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]]


Example:
{{R from incorrect name|The Legend of Zelda: 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>
<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>


====Redirects====
====Redirects====

Revision as of 10:39, 5 May 2014

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:

  • Category:Redirects from incorrect names – Semantically, these redirects should never be used in articles; only the correct name should ever be used.
  • Category:Unprintworthy redirects (only mainspace redirects) – At some point in the future, Jimmy Wales wants to make a printed version of the full Wikipedia encyclopedia, and redirects from incorrect names are not suitable for a printed version. Unprintworthy redirects would not be used in a printed version; for example, no unprintworthy redirect would be used in an index for a printed encyclopedia.

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 template in any namespace.
  • Use this redirect category (rcat) template for any redirect from an incorrect article name to the correct name. Add this template to the redirect in the following manner:
#REDIRECT [[(target page name)]]

{{R from incorrect name}}
This is in accord with instructions found at Wikipedia:REDCAT
  • Template {{This is a redirect}} may also be used to add this and up to seven appropriate rcats to a redirect.
  • There is one parameter, unnamed. It specifies the optional correct name:
{{R from incorrect name|(correct name)}}

When redirect target is the correct name

{{R from incorrect name}}

When the correct name is the target of the redirect, then use this template without the first parameter.

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

When linking to article where the subject is only mentioned in the target article, the correct use is:

{{R from incorrect name|(correct name)}}

The correct name is expected to be a redirect page that also redirects to the target page. That is, if this redirect is an incorrect name, and the target article is not the correct name, there should be a matching redirect page that is titled with the correct name.

Example:

Virginia Western Coal and Iron RailroadVirginia–Carolina Railway; the correct name is Virginia Western Coal and Iron Railway, which also redirects to the Virginia–Carolina Railway article:
#REDIRECT [[Virginia–Carolina Railway]]

{{R from incorrect name|Virginia Western Coal and Iron Railway}}

Redirect targets a #section or #anchor

When a redirect is to a section or anchor within an article such as:

#REDIRECT [[(target page)#(section or anchor title)]]

the correct use is

{{R from incorrect name|(correct name)}}

The correct name is expected to be a redirect page that also redirects to that same section of the target page. 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; the correct name is The Legend of Zelda: A Link to the Past/Four Swords, which also redirects to 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}}

Redirects

  • Click here for a list of templates that redirect here and that may also be used.

See also