jenkins-bot has submitted this change and it was merged.
Change subject: Add unprotection messages ......................................................................
Add unprotection messages
Add messages for edit summaries when bot is unprotecting pages
Bug: T63312 Change-Id: I8255e075b40b40208b443633d99cf596e624c6be --- M Gruntfile.js A unprotect.py A unprotect/en.json A unprotect/qqq.json 4 files changed, 45 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/Gruntfile.js b/Gruntfile.js index e92218b..381308f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -50,6 +50,8 @@ spellcheck: __dirname + '/spellcheck/', table2wiki: __dirname + '/table2wiki/', template: __dirname + '/template/', + undelete: __dirname + '/undelete/', + unprotect: __dirname + '/unprotect/', unlink: __dirname + '/unlink/', //missing messages: weblinkchecker: __dirname + '/weblinkchecker/', welcome: __dirname + '/welcome/' diff --git a/unprotect.py b/unprotect.py new file mode 100644 index 0000000..5428491 --- /dev/null +++ b/unprotect.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +msg = { + 'en': { + 'unprotect-category': u'Bot: Unprotecting all pages from category %(cat)s', + 'unprotect-images': u'Bot: Unprotecting all images on page %(page)s', + 'unprotect-links': u'Bot: Unprotecting all pages linked from %(page)s', + 'unprotect-ref': u'Bot: Unprotecting all pages referring from %(page)s', + 'unprotect-simple': u'Bot: Unprotecting a list of files.', + }, + 'qqq': { + 'unprotect-category': u'Edit summary when the bot unprotects all pages from a category. Parameters:\n* %(cat)s - category name\nSee also:\n* {{msg-pywikibot|Delete-from-category}}', + 'unprotect-images': u'Edit summary when the bot unprotects all images on a page. Parameters:\n* %(page)s - page title\nSee also:\n* {{msg-pywikibot|Delete-images}}', + 'unprotect-links': u'Edit summary when the bot unprotects all pages linked from a page. Parameters:\n* $(page)s - page title\nSee also:\n* {{msg-pywikibot|Delete-linked-pages}}', + 'unprotect-ref': u'Edit summary when the bot unprotects all pages that link to/transclude a page (Special:WhatLinksHere). Parameters:\n* %(page)s - page title\nSee also:\n* {{msg-pywikibot|Delete-referring-pages}}', + 'unprotect-simple': u'Edit summary when the bot unprotects a list of files.', + }, +}; diff --git a/unprotect/en.json b/unprotect/en.json new file mode 100644 index 0000000..65946d0 --- /dev/null +++ b/unprotect/en.json @@ -0,0 +1,12 @@ +{ + "@metadata": { + "authors": [ + "Sn1per" + ] + }, + "unprotect-links": "Bot: Unprotecting all pages linked from %(page)s", + "unprotect-simple": "Bot: Unprotecting a list of files.", + "unprotect-category": "Bot: Unprotecting all pages from category %(cat)s", + "unprotect-ref": "Bot: Unprotecting all pages referring from %(page)s", + "unprotect-images": "Bot: Unprotecting all images on page %(page)s" +} diff --git a/unprotect/qqq.json b/unprotect/qqq.json new file mode 100644 index 0000000..e203e47 --- /dev/null +++ b/unprotect/qqq.json @@ -0,0 +1,14 @@ +{ + "@metadata": { + "authors": [ + "Valhallasw", + "Xqt", + "Sn1per" + ] + }, + "unprotect-links": "Edit summary when the bot unprotects all pages linked from a page. Parameters:\n* $(page)s - page title\nSee also:\n* {{msg-pywikibot|Delete-linked-pages}}", + "unprotect-simple": "Edit summary when the bot unprotects a list of files.", + "unprotect-category": "Edit summary when the bot unprotects all pages from a category. Parameters:\n* %(cat)s - category name\nSee also:\n* {{msg-pywikibot|Delete-from-category}}", + "unprotect-ref": "Edit summary when the bot unprotects all pages that link to/transclude a page (Special:WhatLinksHere). Parameters:\n* %(page)s - page title\nSee also:\n* {{msg-pywikibot|Delete-referring-pages}}", + "unprotect-images": "Edit summary when the bot unprotects all images on a page. Parameters:\n* %(page)s - page title\nSee also:\n* {{msg-pywikibot|Delete-images}}" +}