Module:Protection banner/config: Difference between revisions
(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" | ||
-- | -- | ||
-- ${ | -- ${PROTECTIONDATE} - the protection date, if it has been supplied to the | ||
-- | -- 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 = ' | text = '${OFFICEBLURB}', | ||
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 $ | .. " 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 = ' | text = '${RESETBLURB}' | ||
.. ' 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 $ | .. " 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.autoreview.autoconfirmed = { | cfg.banners.autoreview.autoconfirmed = { | ||