Fandom Developers Wiki
mNo edit summary
Tag: sourceedit
No edit summary
(27 intermediate revisions by 11 users not shown)
Line 1: Line 1:
  +
<noinclude><!--
  +
-->{{LangSelect}}
  +
</noinclude>
  +
<includeonly><!--
  +
-->{{Languages}}
 
{{Infobox JavaScript
 
{{Infobox JavaScript
 
| Image file = {{{image|MassProtect.png}}}
| Description = Protect multiple pages in a list fashion, similar to AjaxBatchDelete.
+
| Description = {{{description|Protect multiple pages from a list}}}
| Image file = MassProtect.png
 
| Image size = 240
+
| Scope = ps
  +
| Author =
| Scope = Wiki-wide or personal
 
| Author = [[User:Ozuzanna|Ozuzanna]]
+
*[[User:KnazO|KnazO]]
  +
*[[User:TheGoldenPatrik1|TheGoldenPatrik1]]
| Updated = 11 September 2015
 
| Code = [[/code.js]]
+
| Code =
 
*[[MediaWiki:MassProtect/code.js|code.js]]
| Skins = Oasis<br/>Monobook
 
  +
*[[MediaWiki:MassProtect.css|MassProtect.css]]
| Languages = {{#language:en}}
+
| Languages = auto
  +
| Status = stable
  +
| Type = management
 
}}
 
}}
'''MassProtect''' provides a link to a modal (without changing location) which allows the user to list pages to be protected. Protections include autoconfirmed, administrator and none. There are also options for edit, move, edit and move, or create protections.
+
'''MassProtect''' {{{intro|provides a link to a modal which allows the user to list pages to be protected. Protection options include edit, move, upload, and create with various levels: unset, none ("Allow all users"), autoconfirmed ("Block new and unregistered users"), and sysop ("Administrators and Content Moderators only").}}}
   
  +
== {{{installation|Installation}}} ==
{{Script Instal|Use=GP
+
{{Script Install
|Source=<syntaxhighlight lang="javascript">
 
  +
| codepage = MassProtect/code.js
massProtectDelay = 1000;
 
importScriptPage('MassProtect/code.js', 'dev');
 
</syntaxhighlight>
 
 
}}
 
}}
   
==Usage==
+
== {{{usage|Usage}}} ==
  +
{{{usageData|
 
In order to protect multiple pages, add the page names ('''not''' page URLs) each on a new line (including their namespace if necessary) and proceed to protect them. The script will stop when it reaches an empty line.
 
In order to protect multiple pages, add the page names ('''not''' page URLs) each on a new line (including their namespace if necessary) and proceed to protect them. The script will stop when it reaches an empty line.
   
By default, the script will do one page per second. If you'd like to modify that, add the config <code>massProtectDelay</code> before importing the script with your own number (in milliseconds) instead.
+
By default, the script will do one page per second. If you'd like to modify that, add the config <code>window.massProtectDelay</code> before importing the script with your own number (in milliseconds) instead.
===Monobook===
 
The option to use the Mass Protect script will appear in your toolbox on the left.
 
===Oasis===
 
The option to use the Mass Protect script will appear under your "My Tools" list (the toolbar at the bottom of your screen).
 
   
 
The option to use the Mass Protect script will appear under your "My Tools" list (the toolbar at the bottom of your screen).}}}
'''Please note you must not have the toolbar at the bottom hidden or the script will not function. If you do not see the "My Tools" (or other language equivalent), try clicking Customize and then "reset defaults" to not hide the "My Tools".'''
 
  +
</includeonly>

Revision as of 21:05, 27 February 2019

MassProtect provides a link to a modal which allows the user to list pages to be protected. Protection options include edit, move, upload, and create with various levels: unset, none ("Allow all users"), autoconfirmed ("Block new and unregistered users"), and sysop ("Administrators and Content Moderators only").

Installation

Usage

In order to protect multiple pages, add the page names (not page URLs) each on a new line (including their namespace if necessary) and proceed to protect them. The script will stop when it reaches an empty line.

By default, the script will do one page per second. If you'd like to modify that, add the config window.massProtectDelay before importing the script with your own number (in milliseconds) instead.

The option to use the Mass Protect script will appear under your "My Tools" list (the toolbar at the bottom of your screen).

Text above can be found here (edit)