MediaWiki:Gadget-Twinkle.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
Baris 10.001:
parameters["1"] = dbrationale;
break;
case 'u1h1':
if (mw.config.get('wgNamespaceNumber') === 3 && !((/\//).test(mw.config.get('wgTitle'))))
{
Baris 10.013:
}
break;
case 'f8b8':
var pagenamespaces = mw.config.get('wgPageName').replace( '_', ' ' );
var filename = prompt( '[CSD F8] Please enter the name of the file on Commons:', pagenamespaces );
Baris 10.035:
parameters.date = "~~~~~";
break;
case 'g4u4':
var deldisc = prompt( '[CSD G4] Please enter the name of the page where the deletion discussion took place. \nNOTE: For regular AfD and MfD discussions, just click OK - a link will be automatically provided.', "" );
if (deldisc === null)
Baris 10.049:
parameters["1"] = deldisc;
break;
case 'g5u5':
var banneduser = prompt( '[CSD G5] Please enter the username of the banned user if available:', "" );
if (banneduser === null)
Baris 10.058:
parameters["1"] = banneduser;
break;
case 'g6u6':
switch( value ) {
case 'histmerge':
Baris 10.103:
parameters["1"] = copytitle;
break;
case 'g6u6':
var g6rationale = prompt( '[CSD G6] Please provide an optional rationale (leave empty to skip):', "" );
if (g6rationale === null)
Baris 10.119:
}
break;
case 'g7u7':
if (Twinkle.getPref('speedyPromptOnG7'))
{
Baris 10.134:
}
break;
case 'g12u12':
var url = prompt( '[CSD G12] Please enter the URL if available, including the "http://":', "" );
if (url === null)
Baris 10.143:
parameters.url = url;
break;
case 'f9b9':
var f9url = prompt( '[CSD F9] Please enter the URL of the copyvio, including the "http://". \nIf you cannot provide a URL, please do not use CSD F9. (Exception: for copyvios of non-Internet sources, leave the box blank.)', "" );
if (f9url === null)
Baris 10.170:
parameters.article = duptitle;
break;
case 'f1b1':
var img = prompt( '[CSD F1] Enter the file this is redundant to, excluding the "Image:" or "File:" prefix:', "" );
if (img === null)
Baris 10.203:
}
break;
case 'g10u10':
parameters.blanked = 'yes';
// it is actually blanked elsewhere in code, but setting the flag here
Baris 10.302:
 
// for sysops only
if (['f4b4', 'f5b5', 'f6b6', 'f11b11'].indexOf(norm) !== -1) {
alert("Tagging with F4, F5, F6, and F11 is not possible using the CSD module. Try using DI instead, or unchecking \"Tag page only\" if you meant to delete the page.");
return;
Baris 10.323:
$.each(normalizeds, function(index, norm) {
if (Twinkle.getPref('notifyUserOnSpeedyDeletionNomination').indexOf(norm) !== -1) {
if (norm === 'g6u6' && ['disambig', 'copypaste'].indexOf(values[index]) === -1) {
return true;
}