Template:R from incorrect name/doc: Difference between revisions
imported>Deadfire m →Purpose |
Tungstenchan (talk | contribs) m Text replacement - "BattleTechWiki" to "BattleIntelligence" |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) --> | <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) --> | ||
{{Substitution|not|nor used to tag [[ | {{Substitution|not|nor used to tag [[BattleIntelligence:Soft redirects|soft redirects]]}} | ||
{{tsh|R wrongname}} | {{tsh|R wrongname}} | ||
__NOTOC__ | __NOTOC__ | ||
Latest revision as of 01:06, 1 May 2025
| This is a documentation subpage for Template:R from incorrect name. It may contain usage information, categories and other content that is not part of the original template page. |
| This template should not be substituted nor used to tag soft redirects. |
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:
- Category:Redirects from incorrect names – should never be used in articles – only the correct name should be used
- Category:Unprintworthy redirects – when a mainspace redirect is tagged
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 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)]]
{{Rcat shell|
{{R from incorrect name}}
{{R unprintworthy}}
}}- Template {{Rcat shell}} is an alias for the Redirect category shell template, which may be used to add as many appropriate rcats as needed, usually from one to seven, along with their parameters, to a redirect. For more information see the documentation on its template page. This rcat may also tag a redirect individually:
#REDIRECT [[(target page name)]]
{{R from incorrect name}}- This template is not for simple punctuation differences – use {{R from modification}} instead.
- There is one unnamed parameter that may be used to specify the correct name when the target is different from the correct name or title:
{{Rcat shell|
{{R from incorrect name|(correct name)}}
}}- or:
{{R from incorrect name|(correct name)}}Example:
- UK CyclingFile:Redirect arrow without text.svgBritish Cycling (the target, "British Cycling", is the name of an organisation)
#REDIRECT [[British Cycling]]
{{Rcat shell|
{{R from incorrect name}}
{{R unprintworthy}}
}}- or:
#REDIRECT [[British Cycling]]
{{R from incorrect name}}- It is acceptable (however unnecessary and redundant) to specify the redirect target as the correct name:
#REDIRECT [[British Cycling]]
{{Rcat shell|
{{R from incorrect name|British Cycling}}
{{R unprintworthy}}
}}- or:
#REDIRECT [[British Cycling]]
{{R from incorrect name|British Cycling}}- Both of the above will change the wording from "The correct name is given by the target of the redirect," to "The correct name is British Cycling."
Redirect target only mentions subject:
- If the target article just mentions the correct name and is not actually titled with it, then this rcat is used as follows:
{{Rcat shell|
{{R from incorrect name|(correct name)}}
{{R unprintworthy}}
}}- or:
{{R from incorrect name|(correct name)}}- The correct name should also be a redirect that targets the same article or other 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 RailroadFile:Redirect arrow without text.svgVirginia–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]]
{{Rcat shell|
{{R from incorrect name|Virginia Western Coal and Iron Railway}}
{{R unprintworthy}}
}}- This will change the wording to "The correct name is Virginia Western Coal and Iron Railway."
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)]]
{{Rcat shell|
{{R from incorrect name|(correct name)}}
{{R to section}} (or {{R to anchor}} if not a section title)
{{R unprintworthy}}
}}- 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 page content), then there should be a matching redirect titled with the correct name.
Aliases
- Also known as... – list of templates that redirect here and may also be used
TemplateData
TemplateData for R from incorrect name
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Correct name | 1 | The correct name of the subject, if different from the redirect's target. | Page name | optional |
| Printability | 2 | Set to "printworthy" to mark the redirect as printworthy (otherwise marked as unprintworthy). | Line | optional |
| demo | demo | Set to "yes" to prevent categorization in Category:Redirects from incorrect names | Line | optional |