Module:Contentious topics/talk notice: Difference between revisions

Content deleted Content added
ECR
support other parameter
Line 135:
-- Check whether any of the added restrictions are enabled
underRestrictions = #restrictions > 0 or args.other or args.other1
-- Determines whether we should use the string "article" or "page"
Line 160:
if r and r ~= '' then
return '* <b>' .. r .. '</b>\n'
else
return ''
end
end
Line 194 ⟶ 196:
messageBody = messageBody .. makeRestrictionBulletPoint(restriction)
addCategory(categoryDatabase[restriction])
end
if args.other then
makeOtherRestrictionBulletPoint(args.other)
addCategory(categoryDatabase["other"])
end
end