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

From Zoophilia Wiki
Jump to navigationJump to search
meta>Josh Parris
Rationale
meta>Josh Parris
bring into line with template doco
Line 1: Line 1:
There are three uses for this template:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->


# when the '''correct name is the target''' of the redirect.  In this case, just use <nowiki>{{R from incorrect name}}</nowiki>; the correct name is already available as an article.
=== Purpose ===
# when linking to article where '''the subject is only mentioned in the target article'''.  In this case, 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.
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.   
# when '''linking to a section or anchor within an article''', where the <nowiki>#REDIRECT[[TargetPage#section name]]</nowiki> is usedIn this case, 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.
 
The reason these three conditions exist is to make repairing links to the redirect page simple: the link to the redirect page should be changed to the link to the correct pageGiven the correct page is specified for each case above, it should always be easy to fix links to this incorrect name.


This template inserts the redirect into the following categories:
This template inserts the redirect into the following categories:
*[[:Category:Redirects from incorrect names]] semantically, these redirects should never be used; only the correct name should ever be used
*[[:Category:Redirects from incorrect names]] semantically, these redirects should never be used; only the correct name should ever be used
*[[:Category:Unprintworthy redirects]] 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
*[[:Category:Redirect templates]]
*[[:Category:Redirect templates]]
*[[:Category:Unprintworthy redirects]] 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
*[[:Category:All redirect templates]]
*[[:Category:All redirect templates]]


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 ===
====Redirect target is the ''correct name''====
<code><nowiki>{{R</nowiki> from incorrect name}}</code>
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.
Example: UK Cycling → British Cycling


====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 <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; correct name is Virginia Western Coal and Iron Railway (which also → Virginia–Carolina Railway)
====Redirect targets a #section or #anchor====
<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.
Example: Olivia Lulu → List of A Series of Unfortunate Events characters#Olivia_Caliban; correct name is Madame Lulu (which also → List of A Series of Unfortunate Events characters#Olivia_Caliban)
=== See also ===
For other redirect templates of this type, see [[Wikipedia:Template messages/Redirect pages]]
For other redirect templates of this type, see [[Wikipedia:Template messages/Redirect pages]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
</includeonly>

Revision as of 13:16, 10 January 2010

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

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 Cycling → 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 Railroad → Virginia–Carolina Railway; correct name is Virginia Western Coal and Iron Railway (which also → Virginia–Carolina 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: Olivia Lulu → List of A Series of Unfortunate Events characters#Olivia_Caliban; correct name is Madame Lulu (which also → List of A Series of Unfortunate Events characters#Olivia_Caliban)

See also

For other redirect templates of this type, see Wikipedia:Template messages/Redirect pages