Module:Protection banner/config: Difference between revisions

    From Nonbinary Wiki
    (move template explanation text to a new banner config table)
    (various simplifications and formatting)
    Line 21: Line 21:
    -- $11 = A link to the page history, with display msg['dispute-edit-link-display']
    -- $11 = A link to the page history, with display msg['dispute-edit-link-display']
    -- $12 = A link to the move log, with display msg['dispute-move-link-display']
    -- $12 = A link to the move log, with display msg['dispute-move-link-display']
    -- $13 = A link to the protection log or the pending changes log, with display msg['more-details-protection-log-display'] or msg['more-details-pc-log-display']
    -- $13 = A link to the protection log or the pending changes log, with display
    --      msg['more-details-protection-log-display'] or msg['more-details-pc-log-display']
    -- $14 = Talk page link
    -- $14 = Talk page link
    -- $15 = Edit request link
    -- $15 = Edit request link
    Line 30: Line 31:
    -- $20 = {{#ifeq:{{NAMESPACE}}|{{ns:6}}|image, included in a high-risk template or message,|high-risk {{pp-meta/pagetype}} }}
    -- $20 = {{#ifeq:{{NAMESPACE}}|{{ns:6}}|image, included in a high-risk template or message,|high-risk {{pp-meta/pagetype}} }}
    -- $21 = "semi-protected from editing", "protected from editing" or "move-protected"
    -- $21 = "semi-protected from editing", "protected from editing" or "move-protected"
    -- $22 = "This protection is '''not''' an endorsement of the current version"


    cfg.banners = {
    cfg.banners = {
    Line 50: Line 52:
    cfg.banners.edit.dispute = {
    cfg.banners.edit.dispute = {
    text = '$1 $2 editing $3 have been resolved',
    text = '$1 $2 editing $3 have been resolved',
    explanation = "This protection is '''not''' an endorsement of the $11",
    explanation = '$22',
    tooltip = 'due to editing disputes',
    tooltip = 'due to editing disputes',
    dispute = true,
    dispute = true,
    Line 57: Line 59:


    cfg.banners.edit.template = {
    cfg.banners.edit.template = {
    text = 'This $20 is permanently $21 to prevent vandalism',
    text = 'This is a permanently [[Help:Protection|protected]] $4, as it is [[Wikipedia:High-risk templates|high-risk]]$9',
    explanation = 'Please discuss any changes on the $14; you may $15 to ask an'
    explanation = 'Please discuss any changes on the $14; you may $15 to ask an'
    .. ' [[Wikipedia:Administrators|administrator]] or'
    .. ' [[Wikipedia:Administrators|administrator]] or'
    Line 63: Line 65:
    .. ' it is [[Help:Minor edit#When to mark an edit as a minor edit'
    .. ' it is [[Help:Minor edit#When to mark an edit as a minor edit'
    .. '|uncontroversial]] or supported by'
    .. '|uncontroversial]] or supported by'
    .. ' [[Wikipedia:Consensus|consensus]].$16'
    .. ' [[Wikipedia:Consensus|consensus]].$16',
    tooltip = 'This high-risk $4 is permanently $21 to prevent vandalism',
    alt = 'Permanently protected $4',
    }
    }


    Line 70: Line 74:
    .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
    .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
    .. ' and is protected. $5',
    .. ' and is protected. $5',
    explanation = "If you can edit this page, please discuss all changes and"
    .. " additions on the $14 first. '''Do not remove protection from this"
    .. " page unless you are authorized by the Wikimedia Foundation to do"
    .. " so.'''",
    categoryOrder = 'reason',
    categoryOrder = 'reason',
    }
    }
    Line 89: Line 97:
    .. ' without approval from someone from the [[WP:OFFICE|Office]].'
    .. ' without approval from someone from the [[WP:OFFICE|Office]].'
    .. " No editor may remove this notice.'''",
    .. " No editor may remove this notice.'''",
    explanation = "If you can edit this page, please discuss all changes and"
    .. " additions on the $14 first. '''Do not remove protection from this"
    .. " page unless you are authorized by the Wikimedia Foundation to do"
    .. " so.'''",
    categoryOrder = 'reason',
    categoryOrder = 'reason',
    categoryReason = 'office',
    categoryReason = 'office',
    Line 137: Line 149:


    cfg.banners.autoreview.pc1 = {
    cfg.banners.autoreview.pc1 = {
    text = 'All edits made to this $4 by'
    .. ' [[Wikipedia:User access levels#New users|new]] or'
    .. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]'
    .. ' users are currently'
    .. ' [[Wikipedia:Pending changes|subject to review]]$9',
    alt = 'Page protected with pending changes level 1',
    tooltip = 'All edits by unregistered and new users are subject to review'
    }
    }


    cfg.banners.autoreview.pc2 = {
    cfg.banners.autoreview.pc2 = {
    text = 'All edits made to this $4 by users who are not'
    .. ' [[Wikipedia:Reviewing|reviewers]] or'
    .. ' [[Wikipedia:Administrators|administrators]] are currently'
    .. ' [[Wikipedia:Pending changes|subject to review]]$9',
    alt = 'Page protected with pending changes level 2',
    tooltip = 'All edits by users who are not reviewers or administrators are'
    .. ' subject to review'
    }
    }


    Line 257: Line 283:
    -- Parameters are the same as for the banner table.
    -- Parameters are the same as for the banner table.


    msg['icon-text-pc1'] = 'All edits by unregistered and new users are subject to review'
    msg['icon-text-pc2'] = 'All edits by users who are not reviewers or administrators are subject to review'