Module:Protection banner/config: Difference between revisions

    From Nonbinary Wiki
    (use the old banner config style, but with the new parameter name scheme, and make more messages based on sentences rather than on snippets)
    (further conversion)
    Line 118: Line 118:
    -- is set. E.g. "Editing of this page by new or unregistered users is currently  
    -- is set. E.g. "Editing of this page by new or unregistered users is currently  
    -- disabled until dd Month YYYY"
    -- disabled until dd Month YYYY"
    --
    -- ${OFFICEBLURB} - a blurb about pages protected by the WMF office. If the
    -- protection date has been specified, includes a sentence saying when the page
    -- was protected.
    --
    --
    -- ${PAGETYPE} - the type of the page, e.g. "article" or "template".
    -- ${PAGETYPE} - the type of the page, e.g. "article" or "template".
    Line 125: Line 129:
    -- "Editing of this page by new or unregistered users is currently disabled"
    -- "Editing of this page by new or unregistered users is currently disabled"
    --
    --
    -- ${PROTECTIONDATEBLURB} - a blurb explaining when the page was protected, e.g.
    -- ${PROTECTIONDATE} - the protection date, if it has been supplied to the
    -- "It was protected
    -- template.
    --
    --
    -- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or
    -- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or
    Line 133: Line 137:
    -- ${PROTECTIONLOG} - a link to the protection log or the pending changes log,
    -- ${PROTECTIONLOG} - a link to the protection log or the pending changes log,
    -- depending on the protection action.
    -- depending on the protection action.
    --
    -- ${RESETBLURB} - a blurb for pages using {{pp-reset}}. If the protection
    -- date is specified, this includes information about when the page was
    -- protected.
    --
    --
    -- ${TALKPAGE} - a link to the talk page. If a section is specified, links
    -- ${TALKPAGE} - a link to the talk page. If a section is specified, links
    Line 181: Line 189:
    tooltip = '${TOOLTIPBLURB}.',
    tooltip = '${TOOLTIPBLURB}.',
    alt = 'Page ${PROTECTIONLEVEL}'
    alt = 'Page ${PROTECTIONLEVEL}'
    }
    cfg.defaultBanners = {
    edit = {},
    move = {},
    create = {},
    autoreview = {}
    }
    }


    Line 230: Line 245:


    cfg.banners.edit.office = {
    cfg.banners.edit.office = {
    text = 'This ${PAGETYPE} is currently under the scrutiny of the'
    text = '${OFFICEBLURB}',
    .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
    .. ' and is protected. It has been protected since $5.',
    explanation = "If you can edit this page, please discuss all changes and"
    explanation = "If you can edit this page, please discuss all changes and"
    .. " additions on the $11 first. '''Do not remove protection from this"
    .. " additions on the ${TALKPAGE} first. '''Do not remove protection from this"
    .. " page unless you are authorized by the Wikimedia Foundation to do"
    .. " page unless you are authorized by the Wikimedia Foundation to do"
    .. " so.'''",
    .. " so.'''",
    Line 242: Line 255:


    cfg.banners.edit.reset = {
    cfg.banners.edit.reset = {
    text = 'On $5 this article was reduced to a simplified,'
    text = '${RESETBLURB}'
    ..' "bare bones" version so that it may be completely rewritten to'
    .. ' ensure it meets the policies of'
    .. ' [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].'
    .. ' Standard Wikipedia policies will apply to its rewriting—which'
    .. ' Standard Wikipedia policies will apply to its rewriting—which'
    .. ' will eventually be open to all editors—and will be strictly'
    .. ' will eventually be open to all editors—and will be strictly'
    Line 258: Line 268:
    .. " No editor may remove this notice.'''",
    .. " No editor may remove this notice.'''",
    explanation = "If you can edit this page, please discuss all changes and"
    explanation = "If you can edit this page, please discuss all changes and"
    .. " additions on the $11 first. '''Do not remove protection from this"
    .. " additions on the ${TALKPAGE} first. '''Do not remove protection from this"
    .. " page unless you are authorized by the Wikimedia Foundation to do"
    .. " page unless you are authorized by the Wikimedia Foundation to do"
    .. " so.'''",
    .. " so.'''",
    Line 304: Line 314:


    cfg.banners.move.vandalism = {
    cfg.banners.move.vandalism = {
    }
    cfg.banners.create = {
    image = 'Padlock-skyblue.svg'
    }
    }


    cfg.banners.autoreview.autoconfirmed = {
    cfg.banners.autoreview.autoconfirmed = {
    text = 'All edits made to this ${PAGETYPE} by'
    .. ' [[Wikipedia:User access levels#New users|new]] or'
    .. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]'
    .. ' users are currently'