Module:Sprite: Difference between revisions

Add nocat
Actually support not showing text, rather than hacking it with an empty string
Line 171: Line 171:
link = args[1]:match( '^(.-)%+' ) or args[1]
link = args[1]:match( '^(.-)%+' ) or args[1]
end
end
local text = args.text or args[2] or link
local text
if not args.notext then
text = args.text or args[2] or link
end
args[1] = args.id or args[1]
args[1] = args.id or args[1]
Line 207: Line 210:
end
end
local direct = title.protectionLevels[action]
local direct = title.protectionLevels[action] or {}
for _, protection in ipairs( direct ) do
for _, protection in ipairs( direct ) do
addProtection( protection )
addProtection( protection )