Utente:Daimona Eaytoy/Massblock.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m Qualche ritocco |
m Ultimi ritocchini |
||
Riga 5:
* Adapted from [[:en:User:Timotheus Canens/massblock.js]].
* Go to [[Special:Massblock]] to use it.
* If you want to add localized messages, add a localMsg variable after loading
*
*
* @todo This should handle the async loop more nicely, and properly use Promise
▲ * @author (i.e. blame him) https://it.wikipedia.org/wiki/User:Daimona_Eaytoy
* rejections.
*/
( function( mw, $ ) {
Riga 18 ⟶ 20:
blockAllowsTalkEdit;
// To add
// are in defaultMsg below.
var localMsg = {
'document-title': 'Il mass-blocker attira-trote',
Riga 50 ⟶ 53:
'failed-actions': 'Azioni non riuscite e relativi errori:',
'failure-help': 'aiuto'
};▼
// Default english messages. Don't change these!
var defaultMsg = {▼
'document-title': 'Mass-blocking tool - Wikipedia, the free encyclopedia',▼
'page-title': 'Mass-blocking tool',▼
'abuse-disclaimer': '<b>If you abuse this tool, it\'s <i>your</i> fault, not mine.</b>',▼
'basic-data': 'Basic data',▼
'blockusers': 'Users to block (one on each line, please):',▼
'talkmsg': 'Replace talk page with, or text to add if the expiry is not infinite (leave blank to leave no message):',▼
'upmsg': 'Replace user page text with (leave blank for no change):',▼
'block-options-label': 'Block options',▼
'further-options-label': 'Further options',▼
'common-reasons': 'Common reasons:',▼
'other-reason': 'Other reason',▼
'extra-reason': 'Other/additional reason:',▼
'exptime': 'Expiration time, in english (blank for indefinite):',▼
'summary-default': 'Blocked user.',▼
'talksummary': 'Edit summary for talk page edit:',▼
'talkprotect': 'Protect the talk (sysop level, infinite):',▼
'upsummary': 'Edit summary for user page edit:',▼
'upprotect': 'Protect the user page (sysop level, infinite):',▼
'protect-reason-label': 'Reason for protection:',▼
'protect-reason-default': 'Blocked user.',▼
'anononly': 'Block anonymous users only (IPs only):',▼
'autoblock': 'Enable autoblock (accounts only):',▼
'nocreate': 'Block account creation:',▼
'noemail': 'Block email:',▼
'notalk': 'Remove talk page access:',▼
'override': 'Override existing blocks:',▼
'submit-text': 'Block',▼
'result-alert': 'Blocked $1 users. Edited $2 talk pages and $3 user pages. Protected $4 talk pages and $5 user pages.',▼
'failed-actions': 'Failed actions with errors:',▼
'failure-help': 'help',▼
};
Riga 373 ⟶ 410:
}
▲ var defaultMsg = {
▲ 'document-title': 'Mass-blocking tool - Wikipedia, the free encyclopedia',
▲ 'page-title': 'Mass-blocking tool',
▲ 'abuse-disclaimer': '<b>If you abuse this tool, it\'s <i>your</i> fault, not mine.</b>',
▲ 'basic-data': 'Basic data',
▲ 'blockusers': 'Users to block (one on each line, please):',
▲ 'talkmsg': 'Replace talk page with, or text to add if the expiry is not infinite (leave blank to leave no message):',
▲ 'upmsg': 'Replace user page text with (leave blank for no change):',
▲ 'block-options-label': 'Block options',
▲ 'further-options-label': 'Further options',
▲ 'common-reasons': 'Common reasons:',
▲ 'other-reason': 'Other reason',
▲ 'extra-reason': 'Other/additional reason:',
▲ 'exptime': 'Expiration time, in english (blank for indefinite):',
▲ 'summary-default': 'Blocked user.',
▲ 'talksummary': 'Edit summary for talk page edit:',
▲ 'talkprotect': 'Protect the talk (sysop level, infinite):',
▲ 'upsummary': 'Edit summary for user page edit:',
▲ 'upprotect': 'Protect the user page (sysop level, infinite):',
▲ 'protect-reason-label': 'Reason for protection:',
▲ 'protect-reason-default': 'Blocked user.',
▲ 'anononly': 'Block anonymous users only (IPs only):',
▲ 'autoblock': 'Enable autoblock (accounts only):',
▲ 'nocreate': 'Block account creation:',
▲ 'noemail': 'Block email:',
▲ 'notalk': 'Remove talk page access:',
▲ 'override': 'Override existing blocks:',
▲ 'submit-text': 'Block',
▲ 'result-alert': 'Blocked $1 users. Edited $2 talk pages and $3 user pages. Protected $4 talk pages and $5 user pages.',
▲ 'failed-actions': 'Failed actions with errors:',
▲ 'failure-help': 'help',
▲ };
/**
* Get a localised messages, or the default one as fallback.
|