Module:Protection banner: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(various category updates)
(allow the first positional parameter to be used for the reason)
Line 142: Line 142:


-- Set reason
-- Set reason
do
if args.reason then
self._reason = args.reason:lower()
local reason = args.reason or args[1]
if reason then
self._reason = reason:lower()
end
end
end