Difference between revisions of "Module:Message box"

124 bytes added ,  13:32, 13 October 2013
get arg nums for all parameters as well as cat and category parameters
>Mr. Stradivarius
(more controlling for blank dates)
>Mr. Stradivarius
(get arg nums for all parameters as well as cat and category parameters)
Line 318: Line 318:
         end
         end
         self.categoryNums = getArgNums(args, 'category')
         self.categoryNums = getArgNums(args, 'category')
        self.categoryParamNums = union(self.catNums, self.categoryNums)
         if args.all then
         if args.all then
             args.all1 = args.all
             args.all1 = args.all
         end
         end
        self.allNums = getArgNums(args, 'all')
        self.categoryParamNums = union(self.catNums, self.categoryNums)
        self.categoryParamNums = union(self.categoryParamNums, self.allNums)
         -- The following is roughly equivalent to the old {{Ambox/category}}.
         -- The following is roughly equivalent to the old {{Ambox/category}}.
         local date = args.date
         local date = args.date
Anonymous user