Module:Contentious topics/talk notice: Difference between revisions

Content deleted Content added
support other parameter
fix
Line 154:
local def = restrictionsDefinition[code]
return def and ('* <b>' .. def .. '</b>\n') or ''
end
-- Makes a bullet point for a custom, article-specific restriction
local function makeOtherRestrictionBulletPoint(r)
if r and r ~= '' then
return '* <b>' .. r .. '</b>\n'
else
return ''
end
end
Line 198 ⟶ 189:
end
if args.other then
makeOtherRestrictionBulletPoint(messageBody = messageBody .. '* <b>' .. args.other) .. '</b>\n'
addCategory(categoryDatabase["other"])
end