Module:Fiction-based redirects to list entries category handler/RedirectType/doc

&#x3c;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikidata) --&#x3e;

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
&#x3c;syntaxhighlight lang="lua"&#x3e; local redirectType = require('Module:Fiction-based redirects to list entries category handler/RedirectType') local typeList = redirectType.getRedirectTypes local defaultType = redirectType.getDefaultType(typeList) &#x3c;/syntaxhighlight&#x3e;

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

&#x3c;syntaxhighlight lang="lua"&#x3e; categoryType:getMainCategory(mainCategory) categoryType:getTopLevelCategory(media) categoryType:getCategory(category) categoryType:setTemplateAsArrowverse(articleTitle) &#x3c;/syntaxhighlight&#x3e;

&#x3c;includeonly&#x3e;&#x3c;/includeonly&#x3e;