Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Arrowverse redirect category handler
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local getArgs = require('Module:Arguments').getArgs local p = {} local tvSeriesNameList = { {argName = "arrow", seriesName = "Arrow (TV series)"}, {argName = "flash", seriesName = "The Flash (2014 TV series)"}, {argName = "constantine", seriesName = "Constantine (TV series)"}, {argName = "legends", seriesName = "Legends of Tomorrow"}, {argName = "supergirl", seriesName = "Supergirl (TV series)"}, {argName = "vixen", seriesName = "Vixen (web series)"}, {argName = "ray", seriesName = "Freedom Fighters: The Ray"}, {argName = "batwoman", seriesName = "Batwoman (TV series)"}, {argName = "black_lightning", seriesName = "Black Lightning (TV series)"}, {argName = "superman", seriesName = "Superman & Lois"}, } local FRANCHISE = "Arrowverse" --[[ Local function which handles the main operation. --]] local function main(args, objectType) local franchiseHandlerModule = require('Module:Fiction redirect category handler/Franchise') return franchiseHandlerModule.main(args, objectType, FRANCHISE, tvSeriesNameList) end --[[ Public function which is used to create a Redirect category shell with relevant redirects for Arrowverse-related character redirects. Parameters: -- |arrow= β optional; Any value will tag the redirect as belonging to Arrow. -- |flash= β optional; Any value will tag the redirect as belonging to The Flash. -- |constantine= β optional; Any value will tag the redirect as belonging to Constantine. -- |legends= β optional; Any value will tag the redirect as belonging to Legends of Tomorrow. -- |supergirl= β optional; Any value will tag the redirect as belonging to Supergirl. -- |vixen= β optional; Any value will tag the redirect as belonging to Vixen. -- |ray= β optional; Any value will tag the redirect as belonging to Freedom Fighters: The Ray. -- |batwoman= β optional; Any value will tag the redirect as belonging to Batwoman. -- |black_lightning= β optional; Any value will tag the redirect as belonging to Black Lightning. Notes: -- A: The redirect will automatically be tagged with "R from fictional character", "R from fictional element" or "R from fictional location", depending on the function used, and be placed in the category "Arrowverse (object) redirects to lists". -- B: Using any of the series parameters will place the redirect in a series-specific category: "(series) (object) redirects to lists". -- F: If the redirect does not use one of the following correct disambiguation β "Arrowverse", "Arrowverse character", "Arrowverse element" or "Arrowverse character" β the redirect will be tagged with "R from incorrect disambiguation" and "R unprintworthy". --]] function p.character(frame) local args = getArgs(frame) return main(args, "character") end --[[ Public function which is used to create a Redirect category shell with relevant redirects for Arrowverse-related element redirects. Parameters: See character() for documentation. --]] function p.element(frame) local args = getArgs(frame) return main(args, "element") end --[[ Public function which is used to create a Redirect category shell with relevant redirects for Arrowverse-related location redirects. Parameters: See character() for documentation. --]] function p.location(frame) local args = getArgs(frame) return main(args, "location") end --[[ Public function which is used to return a list of Arrowverse shows. --]] function p.getSeriesList() return tvSeriesNameList end --[[ Public function which is used to return a franchise name. --]] function p.getFranchiseName() return FRANCHISE end --[[ Public function which is used for the testcases. --]] function p.testSeriesName(frame) local args = getArgs(frame) local franchiseHandlerModule = require('Module:Fiction redirect category handler/Franchise') return franchiseHandlerModule.testSeriesName(args, FRANCHISE, tvSeriesNameList) end return p
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Fiction-related redirects templates
(
edit
)
Template:Lua
(
edit
)
Template:Mlx
(
edit
)
Template:Ordered list
(
edit
)
Template:Para
(
edit
)
Template:Tl
(
edit
)
Template:Transcluded section
(
edit
)
Template:Trim
(
edit
)
Module:Arrowverse redirect category handler/doc
(
edit
)
Module:Redirect template handler/doc
(
edit
)