Jump to content

Module:Message box: Difference between revisions

change a couple of "name" variables to "self.name"
m>Mr. Stradivarius
(replace remaining "title" variables with "self.title")
m>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
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.