Module:Protection banner: Difference between revisions

    (add a (very) preliminary sketch of what the main function might look like)
    (add some more categories)
    Line 135: Line 135:
    ns = {[100] = true}, -- Portal
    ns = {[100] = true}, -- Portal
    reason = 'all'
    reason = 'all'
    },
    {
    name = 'Wikipedia semi-protected templates',
    type = 'edit',
    level = 'semi',
    ns = {[10] = true}, -- Template
    reason = 'all'
    },
    {
    name = 'Wikipedia move-protected templates',
    type = 'move',
    level = 'full',
    ns = {[10] = true}, -- Template
    reason = 'all'
    },
    {
    name = 'Wikipedia protected templates',
    type = 'edit',
    level = 'full',
    ns = {[10] = true}, -- Template
    reason = 'all'
    },
    {
    name = 'Wikipedia move-protected portals',
    type = 'move',
    level = 'full',
    ns = {[100] = true}, -- Portal
    reason = 'all'
    },
    {
    name = 'Wikipedia pages semi-protected from banned users',
    type = 'edit',
    level = 'semi',
    ns = 'all',
    reason = 'sock'
    },
    {
    name = 'Wikipedia pages protected from banned users',
    type = 'edit',
    level = 'full',
    ns = 'all',
    reason = 'sock'
    },
    },
    }
    }
     
     
    local error_categories = {
    local error_categories = {
    incorrect = 'Wikipedia pages with incorrect protection templates',
    incorrect = 'Wikipedia pages with incorrect protection templates',