Template:R from television episode/doc

Purpose
This redirect category (rcat) template is used to categorize redirects from a title of a television episode to a related article or to a list of episodes, a type of article that is a collection of brief descriptions and covers the subject more comprehensively. Links to episodes should use this redirect and should be piped with the target pagename. This allows "what links here" to be used to identify the links to the individual sections. This redirect template populates and when the first parameter is not used,  is also populated.

General usage
Add this redirect category to a redirect ( a talk-page redirect) in the following manner:

Template Redirect category shell may be used to add as many appropriate redirect categories as needed. For more information see the documentation on its template documentation.

This redirect category may also tag a redirect individually:

This is in accord with instructions found at REDCAT.

Usage with TV series parameter
An optional unnamed parameter, (name of work), may be used to supply the name of the TV series in which the episode is part of. This will sort the redirect into a more specific category for that work. For example:

All three of the above will populate.

Usage with sort key parameter
A second optional unnamed parameter may be used to provide a category sort key for the episode that is redirected. For example:

In, all three of the above will sort the episode redirect, "The Hive", in alphabetical order by "Hive" ("H") instead of by "The" ("T"). Without the second parameter, the category sort key will be either the redirect page name or the DEFAULTSORT:, if included.

TemplateData
{	"description": "A redirect category template which is used to categorize redirects from a television episode to a related article to a list of characters.", "params": { "1": {			"label": "Series name", "type": "wiki-page-name", "required": true, "suggested": false, "deprecated": false, "description": "The series article name." },		"2": {			"label": "Sort key", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "A sort key for the redirect entry." }	},	"format": "inline" }

Corresponding category
Important note: the very first time that a TV series-specific subcategory is named in the first parameter, that category will appear as a red link (Category:(series name) episode redirects to lists) at the bottom of the redirect page (if this is not seen or no categories can be seen at the bottom of the page, then be sure your user preferences are set to see hidden categories). If the category link is red, it means that the category must be created to correctly sort the episode.

The category name should be similar to TV series article. So if the article uses disambiguation, the category should use it as well.

When creating the new category, place Fiction-based redirects to list entries category handler at the top as follows:

Printworthiness
In main-article namespace, many redirects from television episodes are printworthy; however, there are many others that are unprintworthy, so there is no default sort for printworthiness. In 2003, efforts were begun to support the Wikimedia Foundation's goal of increasing access and availability of Wikipedia articles in. Some redirect category templates automatically populate either or  by default. Others, like this template, do not, and that means it is up to editors to choose which of those categories, Printworthy or Unprintworthy, is appropriate and should be populated. The templates that are used separately to populate those categories are:



Click on each one for more details and guidance.