MediaWiki:Gadget-twinkleblock.js: Difference between revisions

Content deleted Content added
Repo at fd5b702: customize "Could not load search results" text for page selector; remove stray comment; match from beginning of words only in namespace selector; create links to pages selected for partial block; use ajax lookup in partial block pages menu
Repo at 65e9dea: Fix bug in block conversion display; Add additional partial blocking templates; disable partial block preset menu
Line 528:
var statusStr = relevantUserName + ' is ' + (Twinkle.block.currentBlockInfo.partial === '' ? 'partially blocked' : 'blocked sitewide');
var infoStr = 'Submit query to reblock with supplied options';
if (Twinkle.block.currentBlockInfo.partial === undefined && partialpartialBox) {
infoStr += ' and convert to a partial block';
} else if (Twinkle.block.currentBlockInfo.partial === '' && !partialpartialBox) {
infoStr += ' and convert to a sitewide block';
}
Line 984:
sig: null
},
 
// Begin partial block templates, accessed in Twinkle.block.blockGroupsPartial
'uw-pblock': {
autoblock: true,
Line 991 ⟶ 993:
reasonParam: true,
summary: 'You have been [[WP:PB|partially blocked]] from certain areas of the encyclopedia'
},
'uw-pblockindef': {
autoblock: true,
expiry: 'infinity',
forRegisteredOnly: true,
nocreate: false,
pageParam: false,
reasonParam: true,
summary: 'You have been indefinitely [[WP:PB|partially blocked]] from certain areas of the encyclopedia'
},
'uw-ewpblock': {
autoblock: true,
expiry: '24 hours',
nocreate: false,
pageParam: false,
reasonParam: true,
reason: '[[WP:Edit warring|Edit warring]]',
summary: 'You have been [[WP:PB|blocked]] from editing certain areas of the encyclopedia to prevent further [[WP:DE|disruption]] due to [[WP:EW|edit warring]]'
},
'uw-acpblock': {
autoblock: true,
expiry: '48 hours',
nocreate: true,
pageParam: false,
reasonParam: true,
reason: 'Misusing [[WP:Sock puppetry|multiple accounts]]',
summary: 'You have been [[WP:PB|blocked]] from creating accounts for misusing [[WP:SOCK|multiple accounts]]'
},
'uw-acpblockindef': {
autoblock: true,
expiry: 'infinity',
forRegisteredOnly: true,
nocreate: true,
pageParam: false,
reasonParam: true,
reason: 'Misusing [[WP:Sock puppetry|multiple accounts]]',
summary: 'You have been indefinitely [[WP:PB|blocked]] from creating accounts for misusing [[WP:SOCK|multiple accounts]]'
},
'uw-epblock': {
autoblock: true,
expiry: 'infinity',
forRegisteredOnly: true,
nocreate: false,
noemail: true,
pageParam: false,
reasonParam: true,
reason: 'Email [[WP:Harassment|harassment]]',
summary: 'You have been [[WP:PB|blocked]] from emailing other editors for [[WP:Harassment|harassment]]'
}
};
Line 1,096 ⟶ 1,146:
label: 'Partial block reasons',
list: [
{ label: 'PartialGeneric partial block (custom reason)', value: 'uw-pblock', selected: true },
{ label: 'Generic partial block (custom reason) - indefinite', value: 'uw-pblockindef' },
{ label: 'Edit warring', value: 'uw-ewpblock' },
{ label: 'Misusing multiple accounts', value: 'uw-acpblock' },
{ label: 'Misusing multiple accounts - indefinite', value: 'uw-acpblockindef' },
{ label: 'Email harassment', value: 'uw-epblock' }
]
}