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 |series_name2=. 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: {{R restricted}} 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: {{R from birth name}}.
Only valid for character redirects; Any value will tag the redirect with: {{R from sort name}}. The value must be two characters. See {{R from sort name}} for more information.
No
printworthy
title_name
Only valid for character redirects; Any value will tag the redirect with: {{R from name with title}}.
No
unprintworthy
alt_spelling
Will tag the redirect with: {{R from alternative spelling}} and set the value entered as the correct spelling to use.
No
unprintworthy
to_diacritic
Any value will tag the redirect with: {{R to diacritic}}.
No
unprintworthy
incorrect_name
Any value will tag the redirect with: {{R from incorrect name}} and set the |primary= value entered as the correct name to use. If |primary= isn't used, it will instead use the value entered here.
No
unprintworthy
capitalisation
Any value will tag the redirect with: {{R from miscapitalisation}} and set the |primary= value entered as the correct capitalisation to use. If |primary= isn't used, it will instead use the value entered here.
Used for redirects to articles, and not to a specific section of the article.
-
-
primary
Will tag the redirect with: {{R avoided double redirect}} and set the value entered as the primary redirect.
-
-
merge
Any value will tag the redirect with: {{R from merge}}.
-
-
history
Any value will tag the redirect with: {{R with history}}.
-
-
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.
If the redirect does not use one of the following correct disambiguation — (series), (series) episode, (series) character, (series) element or (series) character — the redirect will be tagged with {{R from incorrect disambiguation}} and {{R unprintworthy}}.
If the redirect is using one of the unprintworthy templates, it will be categorized as {{R unprintworthy}}. If not, it will be categorized as {{R printworthy}}.
If the redirect is using one of the templates marked above as not {{R with possibilities}}, it won't be categorized with it.
If the redirect is linked to a Wikidata item, it will automatically be tagged with {{R with Wikidata item}}.
require("strict")localgetArgs=require("Module:Arguments").getArgslocalp={}--[[ Local function which handles all the shared character, element and location redirect handling code.--]]localfunctionmain(args,objectType,validArgs)localredirectTemplateHandler=require("Module:Redirect template handler")localredirectCategoryShell,mainRedirect,unknownParametersErrors=redirectTemplateHandler.setFictionalObjectRedirect(args,objectType,validArgs)if(unknownParametersErrors)thenreturnredirectCategoryShell..unknownParametersErrorselsereturnredirectCategoryShellendend--[[ Public function from other modules.Function handles the unique character redirect code.Do not merge with other sections to allow for future changes.--]]functionp._character(args,validArgs)localadditonalValidArgs={"birth_name","sort_name","title_name"}fori=1,#additonalValidArgsdotable.insert(validArgs,additonalValidArgs[i])endreturnmain(args,"character",validArgs)end--[[ Public function from other modules.Function handles the unique element redirect code.Do not merge with other sections to allow for future changes.--]]functionp._element(args,validArgs)returnmain(args,"element",validArgs)end--[[ Public function from other modules.Function handles the unique location redirect code.Do not merge with other sections to allow for future changes.--]]functionp._location(args,validArgs)returnmain(args,"location",validArgs)end--[[Public function which is used to create a Redirect category shellwith relevant redirects for fictional character redirects.Parameters: See module documentation for details.--]]functionp.character(frame)localargs=getArgs(frame)returnp._character(args,{})end--[[Public function which is used to create a Redirect category shellwith relevant redirects for fictional element redirects.Parameters: See module documentation for details.--]]functionp.element(frame)localargs=getArgs(frame)returnp._element(args,{})end--[[Public function which is used to create a Redirect category shellwith relevant redirects for fictional location redirects.Parameters: See module documentation for details.--]]functionp.location(frame)localargs=getArgs(frame)returnp._location(args,{})endreturnp