Jump to content

Module:Protection banner: Difference between revisions

no need for args.reason
(move documentation class and export function to Module:Protection banner/documentation)
(no need for args.reason)
Line 125: Line 125:
-- Set reason
-- Set reason
do
do
local reason = args.reason or args[1]
local reason = args[1]
if reason then
if reason then
self.reason = mw.ustring.lower(reason)
self.reason = mw.ustring.lower(reason)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.