"ماڈیول:Message box" کے نسخوں کے درمیان فرق

replace remaining "title" variables with "self.title"
change a couple of "name" variables to "self.name"
سطر 211: سطر 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


سطر 363: سطر 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