Anonymous user
MediaWiki:Gadget-twinklespeedy.js: Difference between revisions
MediaWiki:Gadget-twinklespeedy.js (view source)
Revision as of 15:42, 25 October 2013
, 10 years agoText replace - "WP" to "EFD"
m (1 revision) |
imported>Mlpearc m (Text replace - "WP" to "EFD") |
||
Line 27:
}
Twinkle.addPortletLink( Twinkle.speedy.callback, "CSD", "tw-csd", Morebits.userIsInGroup('sysop') ? "Delete page according to
};
Line 44:
dialog.setTitle( "Choose criteria for speedy deletion" );
dialog.setScriptName( "Twinkle" );
dialog.addFooterLink( "Speedy deletion policy", "
dialog.addFooterLink( "Twinkle help", "
var form = new Morebits.quickForm( callbackfunc, (Twinkle.getPref('speedySelectionStyle') === 'radioClick' ? 'change' : null) );
Line 317:
label: 'F7: Fair-use media from a commercial image agency which is not the subject of sourced commentary',
value: 'badfairuse', // same as above
tooltip: 'Non-free images or media from a commercial source (e.g., Associated Press, Getty), where the file itself is not the subject of sourced commentary, are considered an invalid claim of fair use and fail the strict requirements of
});
}
Line 434:
label: 'C1: Empty categories',
value: 'catempty',
tooltip: 'Categories that have been unpopulated for at least four days. This does not apply to categories being discussed at
},
{
Line 723:
'reason': '',
// General
'nonsense': '[[
'test': 'Test page',
'vandalism': '[[
'hoax': 'Blatant [[
'repost': 'Recreation of a page that was [[
'banned': 'Creation by a [[
'histmerge': 'Temporary deletion in order to merge page histories',
'move': 'Making way for a non-controversial move',
'xfd': 'Deleting page per result of [[
'disambig': 'Unnecessary disambiguation page',
'movedab': 'Redirect to [[
'copypaste': '[[
'g6': 'Housekeeping and routine (non-controversial) cleanup',
'author': 'One author who has requested deletion or blanked the page',
'g8': 'Page dependent on a deleted or nonexistent page',
'talk': '[[Help:Talk page|Talk page]] of a deleted or nonexistent page',
'subpage': '[[
'redirnone': '[[Wikipedia:Redirect|redirect]] to a deleted or nonexistent page',
'templatecat': 'Populated by deleted or retargeted templates',
'imagepage': 'File description page for a file that does not exist',
'attack': '[[
'negublp': 'Negative unsourced [[
'spam': 'Unambiguous [[
'copyvio': 'Unambiguous [[
'afc': 'Abandoned [[
// Articles
'nocontext': 'Short article without enough context to identify the subject',
Line 770:
'unksource': 'Lack of licensing information',
'unfree': 'Unused non-free media',
'norat': 'Non-free file without [[
'badfairuse': 'Violates [[
'nowcommons': 'Media file available on Commons',
'imgcopyvio': 'Unambiguous [[
'badfiletype': 'Useless media file (not an image, audio or video)',
'nopermission': 'No evidence of permission',
Line 781:
'userreq': 'User request to delete page in own userspace',
'nouser': 'Userpage or subpage of a nonexistent user',
'gallery': '[[
// Templates
'policy': 'Template that unambiguously misrepresents established policy',
Line 787:
't3': 'Unused, redundant template',
// Portals
'p1': '[[
'emptyportal': '[[
// Redirects
'rediruser': 'Cross-[[
'redirtypo': 'Recently created, implausible [[
};
Line 815:
reason = prompt("Enter the deletion summary to use, which will be entered into the deletion log:", "");
} else {
var presetReason = "[[
if (Twinkle.getPref("promptForSpeedyDeletionSummary").indexOf(params.normalized) !== -1) {
reason = prompt("Enter the deletion summary to use, or press OK to accept the automatically generated one.", presetReason);
Line 840:
document.getElementById( 'ca-talk' ).className !== 'new') {
var talkpage = new Morebits.wiki.page( Morebits.wikipedia.namespaces[ mw.config.get('wgNamespaceNumber') + 1 ] + ':' + mw.config.get('wgTitle'), "Deleting talk page" );
talkpage.setEditSummary('[[
talkpage.deletePage();
// this is ugly, but because of the architecture of wiki.api, it is needed
Line 979:
var title = $(value).attr('title');
var page = new Morebits.wiki.page(title, 'Deleting redirect "' + title + '"');
page.setEditSummary('[[
page.deletePage(onsuccess);
});
Line 1,079:
editsummary = 'Requesting speedy deletion (';
$.each(params.normalizeds, function(index, norm) {
editsummary += '[[
});
editsummary = editsummary.substr(0, editsummary.length - 2); // remove trailing comma
editsummary += ').';
} else if (params.normalizeds[0] === "db") {
editsummary = 'Requesting [[
} else if (params.values[0] === "histmerge") {
editsummary = "Requesting history merge with [[" + parameters["1"] + "]] ([[
} else {
editsummary = "Requesting speedy deletion ([[
}
Line 1,186:
if (!pageobj.exists()) {
text =
"This is a log of all [[
"If you no longer wish to keep this log, you can turn it off using the [[Wikipedia:Twinkle/Preferences|preferences panel]], and " +
"nominate this page for speedy deletion under [[
if (Morebits.userIsInGroup("sysop")) {
text += "\nThis log does not track outright speedy deletions made using Twinkle.\n";
Line 1,203:
text += "\n# [[:" + Morebits.pageNameNorm + "]]: ";
if (params.fromDI) {
text += "DI [[
} else {
if (params.normalizeds.length > 1) {
text += "multiple criteria (";
$.each(params.normalizeds, function(index, norm) {
text += "[[
});
text = text.substr(0, text.length - 2); // remove trailing comma
Line 1,215:
text += "{{tl|db-reason}}";
} else {
text += "[[
}
}
Line 1,286:
return null;
}
if (deldisc !== "" && deldisc.substring(0, 9) !== "Wikipedia" && deldisc.substring(0, 3) !== "
{
statelem.error( 'The deletion discussion page name, if provided, must start with "Wikipedia:". Cannot proceed.' );
|