Difference between revisions of "Module:Message box"
Jump to navigation
Jump to search
change a couple of "name" variables to "self.name"
>Mr. Stradivarius (replace remaining "title" variables with "self.title") |
>Mr. Stradivarius (change a couple of "name" variables to "self.name") |
||
Line 211: | Line 211: | ||
if self.useCollapsibleTextFields then | if self.useCollapsibleTextFields then | ||
self.name = args.name | self.name = args.name | ||
local nameTitle = getTitleObject(name) | local nameTitle = getTitleObject(self.name) | ||
self.isTemplatePage = nameTitle and self.title.prefixedText == ('Template:' .. nameTitle.text) and true or false | self.isTemplatePage = nameTitle and self.title.prefixedText == ('Template:' .. nameTitle.text) and true or false | ||
Line 363: | Line 363: | ||
if not self.name and not self.title.isSubpage then | if not self.name and not self.title.isSubpage then | ||
templateCat = templateErrorCategory | templateCat = templateErrorCategory | ||
elseif type(self.name) == 'string' and self.title.prefixedText == ('Template:' .. name) then | elseif type(self.name) == 'string' and self.title.prefixedText == ('Template:' .. self.name) then | ||
local paramsToCheck = cfg.templateErrorParamsToCheck or {} | local paramsToCheck = cfg.templateErrorParamsToCheck or {} | ||
local count = 0 | local count = 0 |