Module:Television infoboxes disambiguation check/doc

< Module:Television infoboxes disambiguation check
Revision as of 07:34, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Television infoboxes disambiguation check

Template:High-use Template:Lua

Module:Television infoboxes disambiguation check handles the validation of disambiguation of pages using a television-related infobox. Currently Module:Infobox television disambiguation check and Module:Infobox television season disambiguation check are setup to work with it.

Usage

<syntaxhighlight lang="lua"> local validateDisambiguation = require('Module:Television infoboxes disambiguation check') local trackingCategory, debugString = validateDisambiguation.main(title, validDisambiguationTypeList, validDisambiguationPatternList, exceptionList, otherInfoboxList)</syntaxhighlight>

Parameter list

Parameter Explanation Status
title The page's title. required
validDisambiguationTypeList An array of valid disambiguation types. required
validDisambiguationPatternList An array of DisambiguationPattern. required
exceptionList An array of page names that should not be validated; If there are none, pass an empty array. required
otherInfoboxList An array of key/value pairs of the type the disambiguation to check for (key) and the tracking category to add it to (value). required