Module:Redirect template handler is used to facilitate editor-friendly redirect template usage. This module is currently used with episode and fictional characters, elements and locations via and .
The module has two entry points
The functions return a and a boolean value if the redirect is the primary redirect. If an unknown parameter is used, the module also returns a warning about the usage and adds the page to tracking category.
Parameter | Explanation | or | ||
---|---|---|---|---|
series_name | The name of the series article, including disambiguation. Will set the value entered as series which this redirect belongs to. | - | - | |
series_name# | For multiple series starting from the 2nd series in the style of . The name of the series article names, including disambiguation. Will set the values entered as series which this object belongs to. | - | - | |
multi_series_name_table | Multiple series article names, including disambiguation. Will set the values entered as series which this object belongs to. This parameter can only be used from other modules as it requires the parameters to be passed as an args table. | - | - | |
parent_series | Used for scenarios where a series has a short web-based companion series ("minisodes"), and the redirects should be placed in the parent series category. | - | - | |
restricted | Will tag the redirect with: and set the value entered as the correct title. | Yes | printworthy | |
birth_name | Only valid for character redirects; Any value will tag the redirect with: . | No | printworthy | |
alt_name | Any value will tag the redirect with: . | No | printworthy | |
former_name | Any value will tag the redirect with: . | No | printworthy | |
short_name | Any value will tag the redirect with: . | No | printworthy | |
long_name | Any value will tag the redirect with: . | No | printworthy | |
sort_name | Only valid for character redirects; Any value will tag the redirect with: . The value must be two characters. See for more information. | No | printworthy | |
title_name | Only valid for character redirects; Any value will tag the redirect with: . | No | unprintworthy | |
alt_spelling | Will tag the redirect with: and set the value entered as the correct spelling to use. | No | unprintworthy | |
to_diacritic | Any value will tag the redirect with: . | No | unprintworthy | |
incorrect_name | Any value will tag the redirect with: and set the value entered as the correct name to use. If isn't used, it will instead use the value entered here. | No | unprintworthy | |
capitalisation | Any value will tag the redirect with: and set the value entered as the correct capitalisation to use. If isn't used, it will instead use the value entered here. | No | unprintworthy | |
unneeded_dab | Any value will tag the redirect with: . | No | unprintworthy | |
draft_move | Any value will tag the redirect with: and . | No | unprintworthy | |
without_mention | Any value will tag the redirect with: . | No | unprintworthy | |
anchor | Set as default for episode redirects. Any value will tag the redirect with: . | - | - | |
section | Set as default for fictional character, element and location redirects. Any value will tag the redirect with: . | - | - | |
list | Any value will tag the redirect with: . | - | - | |
to_article | Used for redirects to articles, and not to a specific section of the article. | - | - | |
primary | Will tag the redirect with: and set the value entered as the primary redirect. | - | - | |
merge | Any value will tag the redirect with: . | - | - | |
history | Any value will tag the redirect with: . | - | - | |
dab_exception | Any value will set the current disambiguation used as correct, regardless if it follows a standard style. See note below. | - | - | |
correct_disambiguation | Value will be used for disambiguation validation. Should be used if the disambiguation is different than the series name, such as when using a franchise name. | - | - | |
test | Any value will set instruct the function to return only testing validation data. Used in /testcases. | - | - | |
test_title | Value will be used for title validation. Used in /testcases. | - | - |
<nowiki>[[Category:(series) (object) redirects to lists]]</nowiki>
, such as .(series)
, (series) episode
, (series) character
, (series) element
or (series) character
— the redirect will be tagged with and .