Module:Protection banner/config: Difference between revisions

    From Nonbinary Wiki
    (reinstate the wrappers table and add the mainpage reason)
    (add dmca reason)
    Line 110: Line 110:
    tooltip = '${TOOLTIPBLURB} to promote compliance with the policy on biographies of'
    tooltip = '${TOOLTIPBLURB} to promote compliance with the policy on biographies of'
    .. ' living people',
    .. ' living people',
    },
    dmca = {
    description = 'For pages protected by the Wikimedia Foundation'
    .. ' due to Digital Millennium Copyright Act takedown requests.',
    explanation = function (protectionDate, blurbData)
    local ret = 'Pursuant to a rights owner notice under the Digital'
    .. ' Millennium Copyright Act (DMCA) regarding some content'
    .. ' in this article, the Wikimedia Foundation acted under'
    .. ' applicable law and took down and restricted the content'
    .. ' in question.'
    if blurbData.notice then
    ret = ret .. ' A copy of the received notice can be found here: '
    .. blurbData.notice .. '.'
    end
    ret = ret .. ' For more information, including websites discussing'
    .. ' how to file a counter-notice, please see'
    .. " [[Wikipedia:Office actions]] and the article's ${TALKPAGE}."
    .. "'''Do not remove this template from the article until the"
    .. " restrictions are withdrawn'''."
    return ret
    end,
    image = 'Padlock-black.svg',
    },
    },
    dispute = {
    dispute = {
    Line 475: Line 497:
    ['all-all-office-all-all']              = 'Wikipedia Office-protected pages',
    ['all-all-office-all-all']              = 'Wikipedia Office-protected pages',
    ['all-all-reset-all-all']                = 'Wikipedia Office-protected pages',
    ['all-all-reset-all-all']                = 'Wikipedia Office-protected pages',
    ['all-all-dmca-all-all']                = 'Wikipedia Office-protected pages',
    ['all-all-mainpage-all-all']            = 'Protected main page images',
    ['all-all-mainpage-all-all']            = 'Protected main page images',
    ['all-template-all-all-edit']            = 'Wikipedia protected templates',
    ['all-template-all-all-edit']            = 'Wikipedia protected templates',
    Line 564: Line 587:


    wrappers = {
    wrappers = {
    ['Template:Pp'] = {},
    ['Template:Pp']                         = {},
    ['Template:Pp-blp'] = {'blp', action = 'edit'},
    ['Template:Pp-blp']                     = {'blp', action = 'edit'},
    -- we don't need Template:Pp-create
    -- we don't need Template:Pp-create
    ['Template:Pp-dispute'] = {'dispute', action = 'edit'},
    ['Template:Pp-dispute']                 = {'dispute', action = 'edit'},
    ['Template:Pp-main-page'] = {'main-page', action = 'edit'},
    ['Template:Pp-main-page']               = {'mainpage', action = 'edit'},
    ['Template:Pp-move'] = {action = 'move'},
    ['Template:Pp-move']                   = {action = 'move'},
    ['Template:Pp-move-dispute'] = {'dispute', action = 'move'},
    ['Template:Pp-move-dispute']           = {'dispute', action = 'move'},
    -- we don't need Template:Pp-move-indef
    -- we don't need Template:Pp-move-indef
    ['Template:Pp-move-vandalism'] = {'vandalism', action = 'move'},
    ['Template:Pp-move-vandalism']         = {'vandalism', action = 'move'},
    ['Template:Pp-office'] = {'office'},
    ['Template:Pp-office']                 = {'office'},
    ['Template:Pp-office-dmca'] = {'office-dmca'}, -- XXX The module doesn't support this reason yet.
    ['Template:Pp-office-dmca']             = {'dmca'},
    ['Template:Pp-pc1'] = {action = 'autoreview'},
    ['Template:Pp-pc1']                     = {action = 'autoreview'},
    ['Template:Pp-pc2'] = {action = 'autoreview'},
    ['Template:Pp-pc2']                     = {action = 'autoreview'},
    ['Template:Pp-protected'] = {action = 'edit'},
    ['Template:Pp-protected']               = {action = 'edit'},
    ['Template:Pp-reset'] = {'reset'},
    ['Template:Pp-reset']                   = {'reset'},
    ['Template:Pp-semi-indef'] = {expiry = 'indef'},
    ['Template:Pp-semi-indef']             = {expiry = 'indef'},
    ['Template:Pp-sock'] = {'sock', action = 'edit'},
    ['Template:Pp-sock']                   = {'sock', action = 'edit'},
    ['Template:Pp-template'] = {'template', action = 'edit'},
    ['Template:Pp-template']               = {'template', action = 'edit'},
    ['Template:Pp-usertalk'] = {'usertalk', action = 'edit'},
    ['Template:Pp-usertalk']               = {'usertalk', action = 'edit'},
    ['Template:Pp-vandalism'] = {'vandalism', action = 'edit'},
    ['Template:Pp-vandalism']               = {'vandalism', action = 'edit'},
    },
    },



    Revision as of 14:37, 6 July 2014

    Documentation for this module may be created at Module:Protection banner/config/doc

    -- This module provides configuration data for [[Module:Protection banner]].
    
    return {
    
    --------------------------------------------------------------------------------
    --                                BANNER DATA
    --------------------------------------------------------------------------------
    
    -- PARAMETERS
    --
    -- The values in the banner data can take parameters. These are specified
    -- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name
    -- enclosed in curly braces). Available parameters:
    --
    -- ${CURRENTVERSION} - a link to the page history or the move log, with the
    -- display message "current-version-edit-display" or
    -- "current-version-move-display".
    --
    -- ${EDITREQUEST} - a link to create an edit request for the current page.
    --
    -- ${EXPIRY} - the protection expiry date in the format DD Month YYYY. If
    -- protection is indefinite or is not set, this is the blank string.
    --
    -- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes
    -- on the talk page; you may submit a request to ask an administrator to make
    -- an edit if it is minor or supported by consensus."
    --
    -- ${IMAGELINK} - a link to set the image to, depen