mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Infobox JavaScript |
{{Infobox JavaScript |
||
| Image file = MassEdit.png |
| Image file = MassEdit.png |
||
− | | Description = Modal for |
+ | | Description = Modal for creating pages or editing/delete content from extant pages |
| Status = stable |
| Status = stable |
||
| Scope = Personal<br />Site-wide |
| Scope = Personal<br />Site-wide |
||
| Author = [[User:Eizen|Eizen]] |
| Author = [[User:Eizen|Eizen]] |
||
− | | Updated = |
+ | | Updated = |
| Code = [[MediaWiki:MassEdit/code.js|code.js]] |
| Code = [[MediaWiki:MassEdit/code.js|code.js]] |
||
⚫ | |||
− | [[MediaWiki:MassEdit/code2.js|code2.js]] <small>(beta)</small> |
||
⚫ | |||
| Languages = {{Language list|be|en|nl|ru|uk}} |
| Languages = {{Language list|be|en|nl|ru|uk}} |
||
}} |
}} |
||
− | ''' |
+ | '''{{PAGENAME}}''' is a script that enables users to create a set of inputted pages or edit/delete content from a set of extant pages. It can affix templates to the top or bottom of articles, add categories to pages, remove all instances of a word or phrase, or create new articles at will. Users can adjust the standard edit summary and rate of edit at will through the addition of a <tt>window</tt> object. |
− | |||
− | As the author has experienced bugs while using the similar [[AutoEditPages]] script, MassEdit was created to serve as a slightly simpler, cleaner, more optimized version of AutoEditPages with additional i18n support. |
||
Due to the potential for abuse in the form of vandalism or spam, the script can only be used by local staff (i.e. admins, bureaucrats, content-moderators, and rollbacks), FANDOM Staff, FANDOM Helpers, and VSTF. |
Due to the potential for abuse in the form of vandalism or spam, the script can only be used by local staff (i.e. admins, bureaucrats, content-moderators, and rollbacks), FANDOM Staff, FANDOM Helpers, and VSTF. |
||
Line 22: | Line 19: | ||
<syntaxhighlight lang="javascript"> |
<syntaxhighlight lang="javascript"> |
||
importArticles({ |
importArticles({ |
||
− | type: |
+ | type: "script", |
articles: [ |
articles: [ |
||
− | + | "u:dev:MassEdit/code.js" |
|
] |
] |
||
}); |
}); |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
+ | Users may further configure the script through the addition of a <tt>window</tt> object denoting their preferences. Users may modify the standard edit summary at will by including an <tt>editSummary</tt> string, and can adjust the edit rate of the script by modifying the integer value of <tt>editInterval</tt>. An example config object is shown below. |
||
− | If the script has been installed properly, a "MassEdit" option will appear on the Oasis toolbar and in the Monobook "toolbox" module. |
||
+ | <syntaxhighlight lang="javascript"> |
||
+ | window.massEditConfig = { |
||
+ | editSummary: "Your edit summary", |
||
+ | editInterval: 1000 |
||
+ | }; |
||
+ | </syntaxhighlight> |
||
+ | |||
+ | {| width="100%" class="wikitable" style="text-align: center;" |
||
+ | ! Variables |
||
+ | ! Type |
||
+ | ! Default value(s) |
||
+ | |- |
||
+ | | <code>editSummary</code> |
||
+ | | String |
||
+ | | <code>Editing page content (script)</code> |
||
+ | |- |
||
+ | | <code>editInterval</code> |
||
+ | | Integer |
||
+ | | <code>500</code> |
||
+ | |- |
||
+ | |} |
||
{{ImportArticles}} |
{{ImportArticles}} |
||
== Changelog == |
== Changelog == |
||
− | + | ;05-02-17: Initial revision |
|
− | + | ;06-02-17: Revision of regex, removal of character limit |
|
+ | ;18-12-17: Retrofitting of [[I18n-js]], addition of "find-and-delete" option, addition of config options, cleanup |
Revision as of 12:17, 18 December 2017
MassEdit is a script that enables users to create a set of inputted pages or edit/delete content from a set of extant pages. It can affix templates to the top or bottom of articles, add categories to pages, remove all instances of a word or phrase, or create new articles at will. Users can adjust the standard edit summary and rate of edit at will through the addition of a window object.
Due to the potential for abuse in the form of vandalism or spam, the script can only be used by local staff (i.e. admins, bureaucrats, content-moderators, and rollbacks), FANDOM Staff, FANDOM Helpers, and VSTF.
Installation
Add the following to your personal common.js or global.js files or your wiki's MediaWiki:Common.js file:
importArticles({
type: "script",
articles: [
"u:dev:MassEdit/code.js"
]
});
Users may further configure the script through the addition of a window object denoting their preferences. Users may modify the standard edit summary at will by including an editSummary string, and can adjust the edit rate of the script by modifying the integer value of editInterval. An example config object is shown below.
window.massEditConfig = {
editSummary: "Your edit summary",
editInterval: 1000
};
Variables | Type | Default value(s) |
---|---|---|
editSummary
|
String | Editing page content (script)
|
editInterval
|
Integer | 500
|
Template:ImportArticles
Changelog
- 05-02-17
- Initial revision
- 06-02-17
- Revision of regex, removal of character limit
- 18-12-17
- Retrofitting of I18n-js, addition of "find-and-delete" option, addition of config options, cleanup