Module:Protection banner/config: Difference between revisions
Content added Content deleted
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: | 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 |
|||
-- ${PROTECTIONDATEBLURB} - a blurb explaining when the page was protected, e.g. |
|||
-- template. |
|||
-- "It was protected |
|||
-- |
-- |
||
-- ${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 = '${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" |
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 = '${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' |
.. ' 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.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' |
|||
.. ' [[Wikipedia:Pending changes|subject to review]]$8', |
|||
alt = 'Page protected with pending changes level 1', |
alt = 'Page protected with pending changes level 1', |
||
tooltip = 'All edits by unregistered and new users are subject to review', |
tooltip = 'All edits by unregistered and new users are subject to review', |
||
Line 322: | Line 323: | ||
cfg.banners.autoreview.default = { |
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', |
alt = 'Page protected with pending changes level 2', |
||
tooltip = 'All edits by users who are not reviewers or administrators are' |
tooltip = 'All edits by users who are not reviewers or administrators are' |
||
.. ' subject to review', |
.. ' subject to review', |
||
image = 'Padlock-orange.svg' |
|||
} |
} |
||
Line 366: | Line 362: | ||
.. ' [[Wikipedia:Administrators|administrators]] are currently' |
.. ' [[Wikipedia:Administrators|administrators]] are currently' |
||
.. ' [[Wikipedia:Pending changes|subject to review]]' |
.. ' [[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: | Line 588: | ||
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
||
msg['dispute-blurb-expiry'] = '${INTROBLURB} or until editing ${DISPUTESECTION} |
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-section-link-display'] = 'disputes' |
msg['dispute-section-link-display'] = 'disputes' |
||
Line 594: | Line 611: | ||
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
||
-- |
-- Talk page |
||
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
||
msg['talk-page-link-display'] = 'talk page' |
msg['talk-page-link-display'] = 'talk page' |
||
-------------------------------------------------------------------------------- |
|||
-- Edit requests |
|||
-------------------------------------------------------------------------------- |
|||
msg['edit-request-full-display'] = 'submit a request' |
msg['edit-request-full-display'] = 'submit a request' |
||
msg['edit-request-semi-display'] = 'request an edit' |
msg['edit-request-semi-display'] = 'request an edit' |
||
msg['semi-subject-page-links'] = ' $12, discuss changes on the $11,' |
|||
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
||
Line 609: | Line 629: | ||
msg['deletion-discussion-link-display'] = 'deletion discussion' |
msg['deletion-discussion-link-display'] = 'deletion discussion' |
||
msg['deletion-log-link-display'] = 'deletion log' |
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: | Line 664: | ||
msg['tracking-category-create'] = 'Wikipedia pages tagged as create-protected' |
msg['tracking-category-create'] = 'Wikipedia pages tagged as create-protected' |
||
msg['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules' |
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' |
|||
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |