Template:Category redirect/doc
Sarna News
- Bad 'Mechs - Thresher Mk II
- HEXTECH Wave 9 Review - Winding Rivers, Tall Walls, and Underground Tunnels
- Hired Steel and Making MechWarrior 5: Clans Cinematics with Constantin & Bernhard of TMC
- Your BattleTech News Round-Up For December, 2024
- Community Outreach - Caterwauling On CamoSpecs With Matt "00Dawg" Frederiksen
- Read more →
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 should not be substituted. |
Instructions[edit]
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 prefix
This template adds category pages to Category:Soft redirected categories.
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.
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. It is not automatically enabled when a Wikidata item is attached to the category (see the next section), because caching issues often prevent the link from showing up when the category redirect was a temporary addition. If such a redirect should be kept, add |keep=yes
.
Templates in the target name[edit]
Note that the use of multiple templates in the target name, or templates with any parameters, will prevent the redirect from being resolved by {{Resolve category redirect}}, as will the character |
. Category redirects which cannot be resolved are tracked in Category:Soft redirected categories which are not resolved correctly.
For more information, see Template:Resolve category redirect#Templates.
Errors[edit]
Non-empty categories will be listed at Category:Non-empty soft redirected categories ( 0 ).
Additionally, Category:Category-redirect box parameter needs fixing tracks five different errors with the category redirect box itself:
- Infinite loops of length one will be listed at Category:Soft redirected categories which target themselves ( 0 )
- Redirects with non-existent targets will be listed at Category:Soft redirected categories whose target does not exist ( 0 )
- Templates with unknown parameters will be listed at Category:Pages using category redirect with unknown parameters ( 1 )
- Category redirects which are not correctly resolved via {{resolve category redirect}} will be listed at Category:Soft redirected categories which are not resolved correctly ( 0 )
- Double category redirects will be listed at Category:Double-redirected categories ( 0 )
TemplateData[edit]
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 | 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[edit]
- Template:Category redirect/core
- Template:Category disambiguation
- Template:Resolve category redirect
- BattleTechWiki:Template index/Category namespace