Template:R from alternative name/doc: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 36: | Line 36: | ||
<TemplateData> | <TemplateData> | ||
{ | { | ||
"description": "Places a redirect in [[Category:Redirects from alternative names]]. This template can be added to a redirect which has a name which is a valid alternative to the title of the target page. There are several more specific alternative name redirect templates which can be used instead of this general one. Do not use this if the redirect is an incorrect title for the target page | "description": "Places a redirect in [[Category:Redirects from alternative names]]. This template can be added to a redirect which has a name which is a valid alternative to the title of the target page. There are several more specific alternative name redirect templates which can be used instead of this general one. Do not use this if the redirect is an incorrect title for the target page. ", | ||
"params": { | "params": { | ||
} | } | ||
Line 46: | Line 46: | ||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category: | [[Category:Rcat templates]] | ||
}}}}</includeonly> | }}}}</includeonly> |
Latest revision as of 01:27, 20 August 2023
It contains usage information, categories and other content that is not part of the original template page.
|
Usage
Unlike some other templates, you can use this rcat template in any namespace. This redirect category (rcat) template populates Category:Redirects from alternative names. Add this rcat to a redirect in the following manner:
#REDIRECT [[Target page name]] {{Rcat shell| {{R from alternative name}} }}
- Template {{Rcat shell}} is an alias for the template {{Redirect category shell}}, which may be used to add to a redirect page as many appropriate rcats as needed (usually from one to seven) along with their parameters in a demarcated place. For more information, see the documentation on Rcat shell's template page.
#REDIRECT [[Target page name]] {{R from alternative name}}
- Use this rcat on all redirects from a title that is another name such as a nickname, or a synonym of the target page name. For stage names and other pseudonyms, use the more specific {{R from pseudonym}} instead.
Optional parameters
Either the |of=
or the |1=
parameter can be used to specify the more common name. This is useful when redirecting from an obscure term to a more common one that is a subsection or anchor in a broader article that itself is not the other name of what is being redirected. For example wikipedia:Primary research redirects to wikipedia:Research#Forms of research, where this subtopic is treated under the term "original research"; the redirect has {{R from alternative name|of=original research}}
, which adds the following to the first sentence: "(in this case, the more common name is: original research)". Three ways to accomplish this are as follows:
{{R from alternative name|of=(alternative name)}}
{{R from alternative name|1=(alternative name)}}
{{R from alternative name|(alternative name)}}
See also
- {{R from pseudonym}}
- {{R from misspelling}}
TemplateData
Places a redirect in [[Category:Redirects from alternative names]]. This template can be added to a redirect which has a name which is a valid alternative to the title of the target page. There are several more specific alternative name redirect templates which can be used instead of this general one. Do not use this if the redirect is an incorrect title for the target page.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |