Module:Fiction-based redirects to list entries category handler/RedirectType/doc
Yi palo
This is the documentation page for Module:Fiction-based redirects to list entries category handler/RedirectType
This module depends on the following other modules: |
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
[mali mi di yibu sheena n-niŋ]local redirectType = require('Module:Fiction-based redirects to list entries category handler/RedirectType')
local typeList = redirectType.getRedirectTypes()
local defaultType = redirectType.getDefaultType(typeList)
Use local categoryType = typeList[i]
(i = a number between 1 and 4) to retrieve the wanted categoryType.
Once the categoryType has been retrieved, you can access the following functions:
categoryType:getMainCategory(mainCategory)
categoryType:getTopLevelCategory(media)
categoryType:getCategory(category)
categoryType:setTemplateAsArrowverse(articleTitle)