Module:Protection banner: Difference between revisions

    (use Module:File link again, instead of the sandbox)
    (accountcreator level is gone)
    Line 127: Line 127:
    -- Set level
    -- Set level
    obj.level = args.demolevel or effectiveProtectionLevel(obj.action, obj.title)
    obj.level = args.demolevel or effectiveProtectionLevel(obj.action, obj.title)
    if obj.level == 'accountcreator' then
    if not obj.level or (obj.action == 'move' and obj.level == 'autoconfirmed') then
    -- Lump titleblacklisted pages in with template-protected pages,
    -- since templateeditors can do both.
    obj.level = 'templateeditor'
    elseif not obj.level or (obj.action == 'move' and obj.level == 'autoconfirmed') then
    -- Users need to be autoconfirmed to move pages anyway, so treat
    -- Users need to be autoconfirmed to move pages anyway, so treat
    -- semi-move-protected pages as unprotected.
    -- semi-move-protected pages as unprotected.