MediaWiki:Gadget-twinkleprod.js: Difference between revisions

m
1 revision: new version of Twinkle
imported>AzaToth
m (v2.0-556-g0beacc0: use .utc() for timestamps and format them the sme way as the wiki does)
 
m (1 revision: new version of Twinkle)
 
(2 intermediate revisions by 2 users not shown)
Line 19:
}
Twinkle.addPortletLink( Twinkle.prod.callback, "PROD", "tw-prod", "Propose deletion via WPEFD:PROD" );
};
 
Line 28:
Window.setTitle( "Proposed deletion (PROD)" );
Window.setScriptName( "Twinkle" );
Window.addFooterLink( "Proposed deletion policy", "WPEFD:PROD" );
Window.addFooterLink( "BLP PROD policy", "WPEFD:BLPPROD" );
Window.addFooterLink( "Twinkle help", "WPEFD:TW/DOC#prod" );
 
var form = new Morebits.quickForm( Twinkle.prod.callback.evaluate );
Line 47:
value: 'prod',
checked: true,
tooltip: 'Normal proposed deletion, per [[WPEFD:PROD]]'
},
{
label: 'BLP PROD (proposed deletion of unsourced BLPs)',
value: 'prodblp',
tooltip: 'Proposed deletion of new, completely unsourced biographies of living persons, per [[WPEFD:BLPPROD]]'
}
]
Line 185:
}
 
summaryText = "Proposing article for deletion per [[WPEFD:" + (params.blp ? "BLP" : "") + "PROD]].";
text = "{{subst:prod" + (params.blp ? " blp" : ("|1=" + Morebits.string.formatReasonText(params.reason))) + "}}\n" + text;
}
Line 203:
}
 
summaryText = "Endorsing proposed deletion per [[WPEFD:" + (params.blp ? "BLP" : "") + "PROD]].";
text = text.replace( prod_re, text.match( prod_re ) + "\n{{prod-2|1=" + (params.blp ?
"article is a [[WPEFD:BLPPROD|biography of a living person with no sources]]" :
Morebits.string.formatReasonText(params.reason)) + "}}\n" );
 
Line 250:
if (!pageobj.exists()) {
text =
"This is a log of all [[WPEFD:PROD|proposed deletion]] tags applied or endorsed by this user using [[WPEFD:TW|Twinkle]]'s PROD module.\n\n" +
"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 [[WPEFD:CSD#U1|CSD U1]].\n";
}
 
0

edits