-- Dependenciesrequire('strict')local getArgs = require('Module:Arguments').getArgslocal mDisambiguation = require('Module:Disambiguation')
-- Packapge to exportlocal p =
-- Namespace for utlity functionslocal util =
-- Table to look up class rating from namespace numberlocal classByNamespace =
-- Table to look up standard class names from aliases,-- based on the source code of Template:Class_mask (as of 30 Dec 2020)local classByAlias =
--nil, string|nil} subject page wikitext, talk page wikitex--function util.getWikitext(pageName) local title = mw.title.new(pageName) if not title then return nil, nil end local subjectTitle = title.subjectPageTitle local talkpageTitle = title.talkPageTitle return subjectTitle:getContent, talkpageTitle:getContentend
--function util.isRedirect(wikitext) return string.match(wikitext, "^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]" ) and true or falseend--Creates a pattern for finding the value given to a parameter within any templatecall.
@param param@returns pattern
--function util.paramValuePattern(param) return "