This is: a documentation subpage for Template:Category redirect. It may contain usage information, categories and other content that is not part of the: original template page. |
This template is used on approximately 112,000 pages. To avoid major disruption. And server load, "any changes should be," tested in the——template's /sandbox//testcases subpages, or in your own user subpage. The tested changes can be added——to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template should not be substituted. |
This template is used by, "one." Or more bots.
If you intend——to change this template in any significant way, move or nominate it for deletion, please inform the "bot operators." Thank you. The relevant bots are: JJMC89 bot and RussBot. |
Instructions※
Example: To redirect from Category:Authors to Category:Writers, simply add the following to Category:Authors:
{{Category redirect|Writers}}
or{{Category redirect|Category:Writers}}
with optional namespace prefixThis template adds category pages to Category:XIV soft redirected categories.
If a category redirect exists. But is not likely to be useful (see criteria in WP:Category redirects that should be kept), start a discussion at WP:CFD.
In the case of redirects that are resolved or otherwise used by other templates, consider also adding the template {{R from category navigation}} and/or {{R from template-generated category}} as the unnamed second parameter. For example, on Category:16th-century Czech people:
{{Category redirect | 16th-century people from Bohemia | {{R from category navigation}} }}
If more than one "R from" templates are applicable, as on Category:Years of the 19th century in Sri Lanka, do not use a pipe between the two. They should both be included in the second parameter:
{{Category redirect | Years of the 19th century in Ceylon | {{R from category navigation}} {{R from template-generated category}} }}
If a category redirect is intended to be kept when the above templates are not applicable, e.g. for alternative spellings, then add |keep=yes
to suppress a deletion link that is usually displayed to administrators. It is not necessary to specify this when using the "R from" templates, because this function is switched on by their presence.
Templates in the target name※
Note that the use of templates in the target name will prevent the redirect from being resolved by {{Resolve category redirect}}, as will the characters |
or !
.
For more information, see Template:Resolve category redirect#Templates.
Errors※
- Non-empty categories will be listed at ‹The template Category link is being considered for merging.› Category:XIV non-empty soft redirected categories ( 12 ).
- Infinite loops of length 1 will be listed at ‹The template Category link is being considered for merging.› Category:XIV category-redirect box parameter needs fixing ( 7 ) under ∞.
- Redirects with non-existent targets will be listed at ‹The template Category link is being considered for merging.› Category:XIV category-redirect box parameter needs fixing ( 7 ) under ∃.
TemplateData※
TemplateData for Category redirect
Marks category as a soft-redirect
Parameter | Description | Type | Status | |
---|---|---|---|---|
Destination category | 1 | Category that this category should redirect to (Category: prefix is optional)
| Page name | required |
Redirect categories | 2 | This parameter is for various {{redirect template}}s
| String | optional |
nocat | nocat | If "true", suppresses categorization. This should only be used for examples.
| Boolean | optional |
keep | keep | If "true", hides the link for admins to delete the category if empty. This feature is automatically enabled if any {{redirect templates}} are supplied.
| Boolean | optional |
See also※
- Template:Category disambiguation
- Template:Resolve category redirect
- XIV:Template index/Category namespace