Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Category redirect

Permanently protected template
From Wikipedia, the free encyclopedia
This category is located at[[:Category:{{{1}}}]].
Note: This category should be empty.

The followingcategories are used to track and monitor this redirect:
See theinstructions for more information.

Administrators: If this category name is unlikely to be entered on new pages, and allincoming links have been cleaned up,click here to delete.

Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 169,000 pages.
To avoid major disruption and server load, any changes should be tested in the template's/sandbox or/testcases subpages, or in your ownuser subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on thetalk page before implementing them.
This template shouldnot besubstituted.
This template is used by one or morebots in their standard operation.
Anybreaking changes to this template, including moving it or nominating it for deletion,must be communicated in advance to the bot operator(s).
The relevant bots are:JJMC89 bot andRussBot.
Not to be confused withTemplate:Redirect category.
For the Wikipedia policy on redirecting categories, seeWP:CATRED.

Instructions

Example: To redirect fromCategory:Authors toCategory:Writers, simply add the following toCategory:Authors:

{{Category redirect|Writers}} or
{{Category redirect|Category:Writers}} with optional namespace prefix

This template adds category pages toCategory:Wikipedia soft redirected categories.

If a category redirect exists but is not likely to be useful (see criteria inWP:Category redirects that should be kept), start a discussion atWP:CFD.

In the case of redirects that areresolved 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, onCategory: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 onCategory:Years of the 19th century in Sri Lanka, donot 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. It isnot automatically enabled when a Wikidata item is attached to the category (seethe 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.

Redirects with Wikidata items

Redirects with Wikidata items are automatically categorized as such; there is no need to manually add{{soft redirect with Wikidata item}}. For an example, seeCategory:Fictional schoolchildren.

Templates in the target name

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 inCategory:Wikipedia soft redirected categories which are not resolved correctly.

For more information, seeTemplate:Resolve category redirect#Templates.

Errors

Non-empty categories will be listed atCategory:Wikipedia non-empty soft redirected categories ( 2 ).

Additionally,Category:Wikipedia category-redirect box parameter needs fixing tracks five different errors with the category redirect box itself:

TemplateData

This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:Category redirect in articles based on its TemplateData.

TemplateData for Category redirect

Marks category as a soft-redirect

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Destination category1

Category that this category should redirect to (Category: prefix is optional)

Example
Category:Writers
Page namerequired
Redirect categories2

This parameter is for various {{redirect template}}s

Example
{{R from category navigation}}
Stringoptional
nocatnocat

If "true", suppresses categorization. This should only be used for examples.

Default
false
Example
yes
Booleanoptional
keepkeep

If "true", hides the link for admins to delete the category if empty. This feature is automatically enabled if any {{redirect templates}} are supplied.

Default
false
Booleanoptional

See also

The abovedocumentation istranscluded fromTemplate:Category redirect/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Category_redirect&oldid=1242229678"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp