Template:Category redirect
This category is located at [[:Category:{{{1}}}]].
See the instructions for more information. Administrators: If this category name is unlikely to be entered on new pages, and all incoming links have been cleaned up, click here to delete. |
- This template should only be used on category pages.
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be substituted. |
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:Soft redirected categories.
If a category redirect exists but is not likely to be useful, start a discussion at AA:DELREQ.
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 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.
Exceptions
- Non-empty categories will be listed at Category:Non-empty soft redirected categories ( 6 ).
- Infinite loops of length 1 will be listed at Category:Category-redirect box parameter needs fixing ( 0 ) under ∞.
- Redirects with non-existent targets will be listed at Category:Category-redirect box parameter needs fixing ( 0 ) under ∃.
TemplateData
TemplateData for Category redirect
<templatedata> { "params": { "1": { "label": "Destination category", "description": "Category that this category should redirect to", "example": "Writers", "type": "wiki-page-name", "required": true }, "2": { "label": "Redirect categories", "description": "This parameter is for various
- This is a redirect.
"example": "", "type": "string" }, "nocat": { "description": "If \"true\", suppresses categorization. This should only be used for examples.", "example": "yes", "type": "boolean", "default": "false" }, "keep": { "description": "If \"true\", hides the link for admins to delete the category if empty", "type": "boolean", "default": "false" } }, "description": "Marks category as a soft-redirect", "format": "inline", "paramOrder": [ "1", "2", "nocat", "keep" ] } </templatedata>