Changes

Pywikibot 6.4.0
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Lua|Module:Arrowverse redirect category handler}}

'''Module:Fiction-based redirects to list entries category handler/RedirectType''' handles the RedirectType class which is used in [[Module:Fiction-based redirects to list entries category handler]].

== Usage ==
<syntaxhighlight lang="lua">
local redirectType = require('Module:Fiction-based redirects to list entries category handler/RedirectType')
local typeList = redirectType.getRedirectTypes()
local defaultType = redirectType.getDefaultType(typeList)
</syntaxhighlight>

Use <syntaxhighlight lang="lua" inline>local categoryType = typeList[i]</syntaxhighlight> (i = a number between 1 and 4) to retrieve the wanted categoryType.
Once the categoryType has been retrieved, you can access the following functions:

<syntaxhighlight lang="lua">
categoryType:getMainCategory(mainCategory)
categoryType:getTopLevelCategory(media)
categoryType:getCategory(category)
categoryType:setTemplateAsArrowverse(articleTitle)
</syntaxhighlight>

{{Fiction-related redirects templates}}

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Television-related modules]]
}}</includeonly>