Difference between revisions of "Module:Television infoboxes disambiguation check/doc"
Jump to navigation
Jump to search
blackwiki>Pppery ({{high use}}) |
m (6 revisions imported) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
{{high use}} | {{high use}} | ||
| − | {{Lua|WP:libraryUtil|Module:Arguments|Module:Country adjective|Module:String}} | + | {{Lua|WP:libraryUtil|Module:Arguments|Module:Country adjective|Module:String|noprotcat=yes}} |
'''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. | '''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 == | == Usage == | ||
| − | < | + | <syntaxhighlight lang="lua"> |
local validateDisambiguation = require('Module:Television infoboxes disambiguation check') | local validateDisambiguation = require('Module:Television infoboxes disambiguation check') | ||
| − | local trackingCategory, debugString = validateDisambiguation.main(title, validDisambiguationTypeList, validDisambiguationPatternList, exceptionList, otherInfoboxList)</ | + | local trackingCategory, debugString = validateDisambiguation.main(title, validDisambiguationTypeList, validDisambiguationPatternList, exceptionList, otherInfoboxList)</syntaxhighlight> |
== Parameter list == | == Parameter list == | ||
Latest revision as of 17:18, 29 September 2020
| 40px | This Lua module is used on approximately 56,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
| 30px | This module depends on the following other modules: |
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
local validateDisambiguation = require('Module:Television infoboxes disambiguation check')
local trackingCategory, debugString = validateDisambiguation.main(title, validDisambiguationTypeList, validDisambiguationPatternList, exceptionList, otherInfoboxList)
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 |