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

From Zoophilia Wiki
Jump to navigationJump to search
meta>Paine Ellsworth
update /doc
meta>Paine Ellsworth
update /doc
Line 5: Line 5:
__NOTOC__
__NOTOC__
=== Purpose ===
=== Purpose ===
This template marks a redirect as one that should not be used as a link, and this template provides the correct name.  Any link to a redirect page transcluding this template should be changed to the correct name.   
This template marks a redirect as one that should not be used as a link, and this template provides the correct name.  Any link to a redirect page transcluding this template should be changed to the correct name without [[WP:piping|piping]] that would hide the correct title.   


This template automatically sorts the redirect into the following categories:
This template automatically sorts the redirect into the following categories:
* {{Cat|Redirects from incorrect names}} – These redirects should never be used in articles; only the '''''correct name''''' should be used.
* {{Cat|Redirects from incorrect names}} – should never be used in articles only the '''''correct name''''' should be used
* {{Cat|Unprintworthy redirects}} – when a [[WP:MAINSPACE|mainspace]] redirect is tagged
* {{Cat|Unprintworthy redirects}} – when a [[WP:MAINSPACE|mainspace]] redirect is tagged
At some point in the future, [[Jimmy Wales]] wants to make more <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=Wikipedia:Pushing_to_1.0&oldid=1319195 printed versions]</span> of ''Wikipedia'' encyclopedia articles.  Redirects from incorrect names are not usually suitable for a printed version, so they are sorted to the [[wp:Printworthiness|Unprintworthy]] category by default.  [[#print|See below]] for what to do for those few incorrect names that are printworthy.
At some point in the future, [[Jimmy Wales]] wants to make more <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=Wikipedia:Pushing_to_1.0&oldid=1319195 printed versions]</span> of ''Wikipedia'' encyclopedia articles.  Redirects from incorrect names are not usually suitable for a printed version, so they are sorted to the [[wp:Printworthiness|Unprintworthy]] category by default.  [[#print|See below]] for what to do for those few incorrect names that are printworthy.
Line 24: Line 24:
: This is in accord with instructions found at [[Wikipedia:REDCAT]]
: This is in accord with instructions found at [[Wikipedia:REDCAT]]
* Template {{tl|This is a redirect}} may also be used to add this and up to seven appropriate rcats to a redirect.
* Template {{tl|This is a redirect}} may also be used to add this and up to seven appropriate rcats to a redirect.
* Don't use this template for simple punctuation differences. Instead use {{tl|R from modification}} or one of its aliases, e.g., {{tl|R mod}}.
* Don't use this template for simple punctuation differences. Instead use {{tl|R from modification}} or one of its aliases such as {{tl|R mod}}.
* There is one parameter, unnamed.  It specifies the optional ''correct name'':
* There is one unnamed parameter that specifies the optional ''correct name''.  It may be used when the target is different from the correct title:
<pre>
<pre>
{{R from incorrect name|(correct name)}}
{{R from incorrect name|(correct name)}}
</pre>
</pre>


'''When redirect target is the ''correct name'''''
'''When the redirect target is the ''correct name''''', then just use:
 
<pre>
<pre>
{{R from incorrect name}}
{{R from incorrect name}}
</pre>
</pre>


When the ''correct name'' is the target of the redirect, then use of the optional first parameter is unnecessary.
When the ''correct name'' is the target of the redirect, then use of the optional first parameter is redundant and unnecessary.


Example:  
Example:  
:''UK Cycling'' ''British Cycling''  (the target, "British Cycling", is the name of an organisation)
:''UK Cycling''[[File:Redirect arrow without text.svg|35px]]''British Cycling''  (the target, "British Cycling", is the name of an organisation)
<pre>
<pre>
#REDIRECT [[British Cycling]]
#REDIRECT [[British Cycling]]
Line 55: Line 54:
'''Redirect target only mentions subject'''
'''Redirect target only mentions subject'''


When linking to article where the subject is only mentioned in the target article, the correct use is:
When the target article just mentions the redirect title, then the correct usage is:
<pre>
<pre>
{{R from incorrect name|(correct name)}}
{{R from incorrect name|(correct name)}}
</pre>
</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''.
The ''correct name'' should ''also'' be a redirect page that redirects to the target page name.  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:  
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:
:''Virginia Western Coal and Iron Railroad''[[File:Redirect arrow without text.svg|35px]]''Virginia–Carolina Railway''; the correct name is '''Virginia Western Coal and Iron Railway''', which also redirects to the '''''Virginia–Carolina Railway''''' article:
<pre>
<pre>
#REDIRECT [[Virginia–Carolina Railway]]
#REDIRECT [[Virginia–Carolina Railway]]
Line 72: Line 71:
'''Redirect targets a #section or #anchor'''
'''Redirect targets a #section or #anchor'''


When a redirect is to a section or anchor within an article such as:
When the redirect is to a section or anchor within an article, then the correct usage is:
<pre>
<pre>
#REDIRECT [[(target page)#(section or anchor title)]]
#REDIRECT [[(target page)#(section or anchor title)]]
</pre>
 
the correct use is
<pre>
{{R from incorrect name|(correct name)}}
{{R from incorrect name|(correct name)}}
</pre>
</pre>
The ''correct name'' is expected to be either the anchor/section title, or a redirect page that also redirects to that same anchor/section of the target page.  That is, if the redirect is an incorrect name, and the target page title, anchor title, or section header is not the correct name (the correct name is down in the text), then there should be a matching redirect titled with the ''correct name''.
The ''correct name'' is expected to be either the anchor/section title, or a redirect page that also redirects to that same anchor/section of the target page.  That is, if the redirect is an incorrect name, and the target page title, anchor title, or section header is not the correct name (the correct name is down in the text), then there should be a matching redirect titled with the ''correct name''.
* {{anchor|print}}By default, this template sorts redirects into the {{c|Unprintworthy redirects}} category.  To tag and categorize an incorrect-name redirect as printworthy, use the 2nd parameter in the following manner:
 
* {{anchor|print}}By default, this template sorts redirects into the {{c|Unprintworthy redirects}} category.  Sometimes an incorrect title might be the correct name of another subject that has possibilities, that is, a subject that may have its own article someday.  To tag and categorize such an "incorrect-name" redirect as printworthy, use the 2nd parameter in the following manner:
<pre>
<pre>
{{R from incorrect name|2=printworthy}}
{{R from incorrect name|2=printworthy}}
Line 89: Line 87:
{{R from incorrect name||printworthy}}
{{R from incorrect name||printworthy}}
</pre>
</pre>
:: <small>'''Note:'''  The bar key ( '''&brvbar;''' ) on the keyboard renders as a pipe ( '''&#124;''' ) on the screen.  Also, note the two pipes side-by-side in the third example – this indicates an "empty first parameter".</small>
:: <small>'''Note:'''  The bar key ( '''&brvbar;''' ) on the keyboard renders as a pipe ( '''&#124;''' ) on the screen.  Also, note the two pipes side-by-side in the third example above – this indicates an "empty first parameter".</small>
: That will subdue the default unprintworthy category and populate {{Cat|Printworthy redirects}}.
: That will subdue the default unprintworthy category and populate {{Cat|Printworthy redirects}}.  This must be done if {{tl|R with possibilities}} is also used on the redirect.  Otherwise, the redirect will be sorted to both ''Printworthy'' and ''Unprintworthy'' categories.


==== Aliases ====
==== Aliases ====
Line 109: Line 107:
[[Category:Templates for unprintworthy redirects|Incorrect name]]
[[Category:Templates for unprintworthy redirects|Incorrect name]]
[[Category:Unprintworthy redirects| ]]
[[Category:Unprintworthy redirects| ]]
[[Category:Templates for printworthy redirects|Incorrect name]]
[[Category:Printworthy redirects| ]]


}}</includeonly>
}}</includeonly>

Revision as of 23:27, 16 October 2014

Purpose

This template marks a redirect as one that should not be used as a link, and this template provides the correct name. Any link to a redirect page transcluding this template should be changed to the correct name without piping that would hide the correct title.

This template automatically sorts the redirect into the following categories:

At some point in the future, Jimmy Wales wants to make more printed versions of Wikipedia encyclopedia articles. Redirects from incorrect names are not usually suitable for a printed version, so they are sorted to the Unprintworthy category by default. See below for what to do for those few incorrect names that are printworthy.

With a correct name specified for all uses of this template, repair of links to the redirect page becomes simple: the link to the redirect page should be changed to link to the correct name. Given the correct name is specified for each case below, it should always be easy to fix links to 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.
  • Don't use this template for simple punctuation differences. Instead use {{R from modification}} or one of its aliases such as {{R mod}}.
  • There is one unnamed parameter that specifies the optional correct name. It may be used when the target is different from the correct title:
{{R from incorrect name|(correct name)}}

When the redirect target is the correct name, then just use:

{{R from incorrect name}}

When the correct name is the target of the redirect, then use of the optional first parameter is redundant and unnecessary.

Example:

UK CyclingBritish Cycling (the target, "British Cycling", is the name of an organisation)
#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}}
This will change the wording from "The correct name is given by the target of the redirect," to "The correct name is Template:Maroon."

Redirect target only mentions subject

When the target article just mentions the redirect title, then the correct usage is:

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

The correct name should also be a redirect page that redirects to the target page name. 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}}
This will change the wording to "The correct name is Template:Maroon."

Redirect targets a #section or #anchor

When the redirect is to a section or anchor within an article, then the correct usage is:

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

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

The correct name is expected to be either the anchor/section title, or a redirect page that also redirects to that same anchor/section of the target page. That is, if the redirect is an incorrect name, and the target page title, anchor title, or section header is not the correct name (the correct name is down in the text), then there should be a matching redirect titled with the correct name.

  • By default, this template sorts redirects into the Unprintworthy redirects category. Sometimes an incorrect title might be the correct name of another subject that has possibilities, that is, a subject that may have its own article someday. To tag and categorize such an "incorrect-name" redirect as printworthy, use the 2nd parameter in the following manner:
{{R from incorrect name|2=printworthy}}
  or:
{{R from incorrect name|(correct name)|printworthy}}
  or:
{{R from incorrect name||printworthy}}
Note: The bar key ( ¦ ) on the keyboard renders as a pipe ( | ) on the screen. Also, note the two pipes side-by-side in the third example above – this indicates an "empty first parameter".
That will subdue the default unprintworthy category and populate Category:Printworthy redirects. This must be done if {{R with possibilities}} is also used on the redirect. Otherwise, the redirect will be sorted to both Printworthy and Unprintworthy categories.

Aliases

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

See also