Difference between revisions of "Module:Message box"
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') | ||
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 |