Wikipedia:Categorizing redirects 

This is a Wikipedia guideline for categorizing redirects. It is intended to document current practice and suggest best practice in other areas and indicate where categorization of redirects can be misleading. See also Wikipedia:Redirect#Categories for redirect pages.

When to categorize a redirect

Most redirects should not be categorized. Examples include misspellings, minor variations of article titles, obscure alternate titles, and abbreviations.

There are some situations where categorizing a redirect is acceptable and can be helpful to users browsing through categories. The following are examples of some of these situations:

How to categorize a redirect

A redirect may be categorized in the same way as for any other article. For clarity, all category links should be added at the end of the page, after the redirect statement and any redirect templates.

The redirect will appear in the specified categories but formatted differently than articles (by default, in italics, see Technical Note below).

Example 1
– a redirect to page xxyyzz, using the printworthy redirect template, and in categories aaa and bbb, would look like:

#REDIRECT [[xxyyzz]] {{R printworthy}}
[[Category:aaa]]
[[Category:bbb]] 

Example 2
– a redirect to an article subsection with heading 'title' using a link anchor (see {{Anchor}}):

#REDIRECT [[xxyyzz#title]] {{R printworthy}}{{R to section}}
[[Category:aaa]] 

Example 3
– a common redirect need: "ttuuvv" to a geology page xxyyzz, using the R to section redirect template to point to the article and section where the common term is defined, and which should be in categories aaa, bbb, ccc and ddd (the parent article may have a few more, eee, fff, etc.), all of which are the categories of the parent article.

Categories of the subset applying to the redirect can be quickly excerpted from the parent and constructed for the redirect using the {{cat also}} template and a little cut and paste. This example would look like this:

#REDIRECT [[xxyyzz#glops]] {{R to section}}{{cat also|{{PAGENAME}}|aaa|bbb|ccc|ddd}} 
note
ALL {{R from...}}, {{R to ...}} templates and the {{cat also}} template should be on the same contiguous line as the #redirect [[article title]] beginning. The same caution is true for categories as given above as examples.

  1. {{PAGENAME}} is a Magic word in wikimarkup language that fills in the pagename, one can retype "ttuuvv" (without the quotes) and give that as the first pass parameter to the template instead. This is in fact a pipetrick parameter for when the template builds a list of [[Category:aaa|pipetrick]] entries for you. (see more below)

  2. The key saving is your to time and typing. The categories parameters listed in the later part of the template can be captured off the target page "xxyyzz" when you check the link (regardless of whether it's a section linking redirect) and captured by drag and drop from the categories bar. The highlighted category names (capture with [CTRL]-[C] keys) will automatically be pasted in (using [CTRL]-[V] keys) with the pipe characters ('|') needed to separate the parameters. (or other computer type/browser equivalent keystroke combinations)

  3. The first parameter represented by |{{PAGENAME}}| above is in fact the pipetrick sorting parameter used to group pages, and for redirects, some wikipedians use the convention of prefixing the sort to "{" or (most often) "}" which look like: {{cat also|{{{PAGENAME}}|... and {{cat also|}{{PAGENAME}}|... respectively. This is a compromise convention since the wikipedia community has never had good consensus on "whether to" or "how to" categorize redirects, except as redirects in redirect categories. By using such prefixes, they always sort in a group at the very end of the category list.


note
General information: ALL THE {{R from...}}, {{R to ...}} templates, have as their sole purpose adding a redirect sub-category (see Redirects) on the page to aid in maintenance. Generally speaking, one such template categorizes redirect pages to the sub-category, though it may be "aliased" using several alternative phrasings, themselves redirects of templates. (Common alias alternatives are: Other vs. alternative, capitalization vs. capitalisation and such spelling/phrasing variants like "R to singular" and "R from plural")

Technical Note: The appearance of a redirect link on category pages and in search results is determined by the CSS class "redirect-in-category" and the specification for that class in MediaWiki:Common.css. By default, this class is set to 'italics', although this may be changed by the user. In the past, no distinction was made for users, which fueled the controversies over how to categorize redirects. With the italics fonts, redirects are easy to pick out and perfectly good (and in many cases better known terminology implemented as redirects for technical reasons) can now be categorized for the readers to browse, and editors to know and at need use.