Jump to content

Module:Protection banner/config: Difference between revisions

further conversion
Enwikipedia>Mr. Stradivarius
(use the old banner config style, but with the new parameter name scheme, and make more messages based on sentences rather than on snippets)
Enwikipedia>Mr. Stradivarius
(further conversion)
Line 118:
-- is set. E.g. "Editing of this page by new or unregistered users is currently
-- 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".
Line 125 ⟶ 129:
-- "Editing of this page by new or unregistered users is currently disabled"
--
-- ${PROTECTIONDATE} - the protection date, if it has been supplied to the
-- ${PROTECTIONDATEBLURB} - a blurb explaining when the page was protected, e.g.
-- template.
-- "It was protected
--
-- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or
Line 133 ⟶ 137:
-- ${PROTECTIONLOG} - a link to the protection log or the pending changes log,
-- 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
Line 181 ⟶ 189:
tooltip = '${TOOLTIPBLURB}.',
alt = 'Page ${PROTECTIONLEVEL}'
}
 
cfg.defaultBanners = {
edit = {},
move = {},
create = {},
autoreview = {}
}
 
Line 230 ⟶ 245:
 
cfg.banners.edit.office = {
text = '${OFFICEBLURB}',
text = 'This ${PAGETYPE} is currently under the scrutiny of the'
.. ' [[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"
.. " additions on the $11{TALKPAGE} first. '''Do not remove protection from this"
.. " page unless you are authorized by the Wikimedia Foundation to do"
.. " so.'''",
Line 242 ⟶ 255:
 
cfg.banners.edit.reset = {
text = '${RESETBLURB}'
text = 'On $5 this article was reduced to a simplified,'
..' "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'
.. ' will eventually be open to all editors—and will be strictly'
Line 258 ⟶ 268:
.. " No editor may remove this notice.'''",
explanation = "If you can edit this page, please discuss all changes and"
.. " additions on the $11{TALKPAGE} first. '''Do not remove protection from this"
.. " page unless you are authorized by the Wikimedia Foundation to do"
.. " so.'''",
Line 304 ⟶ 314:
 
cfg.banners.move.vandalism = {
}
 
cfg.banners.create = {
image = 'Padlock-skyblue.svg'
}
 
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'
.. ' [[Wikipedia:Pending changes|subject to review]]$8',
alt = 'Page protected with pending changes level 1',
tooltip = 'All edits by unregistered and new users are subject to review',
Line 322 ⟶ 323:
 
cfg.banners.autoreview.default = {
text = 'All edits made to this ${PAGETYPE} by users who are not'
.. ' [[Wikipedia:Reviewing|reviewers]] or'
.. ' [[Wikipedia:Administrators|administrators]] are currently'
.. ' [[Wikipedia:Pending changes|subject to review]]$8',
alt = 'Page protected with pending changes level 2',
tooltip = 'All edits by users who are not reviewers or administrators are'
.. ' subject to review',
image = 'Padlock-orange.svg'
}
 
Line 366 ⟶ 362:
.. ' [[Wikipedia:Administrators|administrators]] are currently'
.. ' [[Wikipedia:Pending changes|subject to review]]'
 
--------------------------------------------------------------------------------
-- Protection levels
--------------------------------------------------------------------------------
 
cfg.protectionLevels = {
edit = {},
move = {},
create = {},
autoreview = {}
}
 
cfg.protectionLevels.edit.default = 'protected'
cfg.protectionLevels.edit.templateeditor = 'template-protected'
cfg.protectionLevels.edit.autoconfirmed = 'semi-protected'
cfg.protectionLevels.move.default = 'move-protected'
cfg.protectionLevels.create.default = 'creation-protected'
 
--------------------------------------------------------------------------------
Line 575 ⟶ 588:
--------------------------------------------------------------------------------
 
msg['dispute-blurb-expiry'] = '${INTROBLURB} or until editing ${DISPUTESECTION} have been resolved.'
msg['dispute-blurb-noexpiry'] = .. '${INTROBLURB} until editing ${DISPUTESECTION} have been resolved.'
 
msg['dispute-blurb-noexpiry'] = '${INTROBLURB} until editing ${DISPUTESECTION}'
.. ' have been resolved.'
 
msg['dispute-section-link-display'] = 'disputes'
 
Line 594 ⟶ 611:
 
--------------------------------------------------------------------------------
-- ExplanationTalk textpage
--------------------------------------------------------------------------------
 
msg['talk-page-link-display'] = 'talk page'
 
--------------------------------------------------------------------------------
-- Edit requests
--------------------------------------------------------------------------------
 
msg['edit-request-full-display'] = 'submit a request'
msg['edit-request-semi-display'] = 'request an edit'
 
msg['semi-subject-page-links'] = ' $12, discuss changes on the $11,'
 
--------------------------------------------------------------------------------
Line 609 ⟶ 629:
msg['deletion-discussion-link-display'] = 'deletion discussion'
msg['deletion-log-link-display'] = 'deletion log'
 
--------------------------------------------------------------------------------
-- Office blurb
--------------------------------------------------------------------------------
 
msg['office-blurb-protectiondate'] = 'This ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
.. ' and is protected. It has been protected since ${PROTECTIONDATE}.'
 
msg['office-blurb-noprotectiondate'] = 'This ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
.. ' and is protected.'
 
--------------------------------------------------------------------------------
-- Reset blurb
--------------------------------------------------------------------------------
 
msg['deletion-discussion-link-display'] = 'deletion discussion'
msg['deletion-log-link-display'] = 'deletion log'
 
text = 'On ${PROTECTIONDATE} this article was reduced to a simplified,'
..' "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]].'
 
--------------------------------------------------------------------------------
Line 618 ⟶ 664:
msg['tracking-category-create'] = 'Wikipedia pages tagged as create-protected'
msg['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules'
 
--------------------------------------------------------------------------------
-- Protection levels
--------------------------------------------------------------------------------
 
msg['protection-level-full'] = 'fully protected'
msg['protection-level-template'] = 'template-protected'
msg['protection-level-semi'] = 'semi-protected'
msg['protection-level-move'] = 'move-protected'
msg['protection-level-create'] = 'creation-protected'
msg['protection-level-default'] = 'protected'
 
--------------------------------------------------------------------------------
Cookies help us deliver our services. By using our services, you agree to our use of cookies.