MediaWiki:Gadget-twinklexfd.js: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (1 revision)
imported>Mlpearc
m (Text replace - "WP" to "EFD")
Line 57: Line 57:
Window.setTitle( "Nominate for deletion (XfD)" );
Window.setTitle( "Nominate for deletion (XfD)" );
Window.setScriptName( "Twinkle" );
Window.setScriptName( "Twinkle" );
Window.addFooterLink( "About deletion discussions", "WP:XFD" );
Window.addFooterLink( "About deletion discussions", "EFD:XFD" );
Window.addFooterLink( "Twinkle help", "WP:TW/DOC#xfd" );
Window.addFooterLink( "Twinkle help", "EFD:TW/DOC#xfd" );


var form = new Morebits.quickForm( Twinkle.xfd.callback.evaluate );
var form = new Morebits.quickForm( Twinkle.xfd.callback.evaluate );
Line 321: Line 321:
label: 'Non-free content review',
label: 'Non-free content review',
value: 'nfcr',
value: 'nfcr',
tooltip: 'File\'s compliance with non-free content criteria ([[WP:NFCC]]) is disputed. User notification does not occur for NFCR, as it is not deemed relevant.'
tooltip: 'File\'s compliance with non-free content criteria ([[EFD:NFCC]]) is disputed. User notification does not occur for NFCR, as it is not deemed relevant.'
}
}
]
]
Line 404: Line 404:
label: 'C2 sub-criterion: ',
label: 'C2 sub-criterion: ',
name: 'xfdcat',
name: 'xfdcat',
tooltip: 'See WP:CFDS for full explanations.',
tooltip: 'See EFD:CFDS for full explanations.',
event: function(e) {
event: function(e) {
var value = e.target.value;
var value = e.target.value;
Line 661: Line 661:
var notifytext = "\n{{subst:AFDWarning|1=" + Morebits.pageNameNorm + ( params.numbering !== '' ? '|order= ' + params.numbering : '' ) + "}} ~~~~";
var notifytext = "\n{{subst:AFDWarning|1=" + Morebits.pageNameNorm + ( params.numbering !== '' ? '|order= ' + params.numbering : '' ) + "}} ~~~~";
usertalkpage.setAppendText(notifytext);
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary("Notification: listing at [[WP:AFD|articles for deletion]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setEditSummary("Notification: listing at [[EFD:AFD|articles for deletion]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
usertalkpage.setCreateOption('recreate');
switch (Twinkle.getPref('xfdWatchUser')) {
switch (Twinkle.getPref('xfdWatchUser')) {
Line 787: Line 787:


usertalkpage.setAppendText(notifytext);
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary("Notification: nomination at [[WP:TFD|templates for discussion]] of [[" + pageobj.getPageName() + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setEditSummary("Notification: nomination at [[EFD:TFD|templates for discussion]] of [[" + pageobj.getPageName() + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
usertalkpage.setCreateOption('recreate');
switch (Twinkle.getPref('xfdWatchUser')) {
switch (Twinkle.getPref('xfdWatchUser')) {
Line 975: Line 975:
var notifytext = "\n{{subst:MFDWarning|1=" + Morebits.pageNameNorm + ( params.numbering !== '' ? '|order= ' + params.numbering : '' ) + "}} ~~~~";
var notifytext = "\n{{subst:MFDWarning|1=" + Morebits.pageNameNorm + ( params.numbering !== '' ? '|order= ' + params.numbering : '' ) + "}} ~~~~";
usertalkpage.setAppendText(notifytext);
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary("Notification: listing at [[WP:MFD|miscellany for deletion]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setEditSummary("Notification: listing at [[EFD:MFD|miscellany for deletion]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
usertalkpage.setCreateOption('recreate');
switch (Twinkle.getPref('xfdWatchUser')) {
switch (Twinkle.getPref('xfdWatchUser')) {
Line 1,012: Line 1,012:
var notifytext = "\n{{subst:idw|1=" + mw.config.get('wgTitle') + "}}";
var notifytext = "\n{{subst:idw|1=" + mw.config.get('wgTitle') + "}}";
usertalkpage.setAppendText(notifytext);
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary("Notification: listing at [[WP:FFD|files for deletion]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setEditSummary("Notification: listing at [[EFD:FFD|files for deletion]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
usertalkpage.setCreateOption('recreate');
switch (Twinkle.getPref('xfdWatchUser')) {
switch (Twinkle.getPref('xfdWatchUser')) {
Line 1,090: Line 1,090:


pageobj.setPageText("{{puf|help=off|log=" + params.date + "}}\n" + text);
pageobj.setPageText("{{puf|help=off|log=" + params.date + "}}\n" + text);
pageobj.setEditSummary("Listed at [[WP:PUF|possibly unfree files]]: [[" + params.logpage + "#" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
pageobj.setEditSummary("Listed at [[EFD:PUF|possibly unfree files]]: [[" + params.logpage + "#" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
switch (Twinkle.getPref('xfdWatchPage')) {
switch (Twinkle.getPref('xfdWatchPage')) {
case 'yes':
case 'yes':
Line 1,133: Line 1,133:
var notifytext = "\n{{subst:idw-puf|1=" + mw.config.get('wgTitle') + "}} ~~~~";
var notifytext = "\n{{subst:idw-puf|1=" + mw.config.get('wgTitle') + "}} ~~~~";
usertalkpage.setAppendText(notifytext);
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary("Notification: listing at [[WP:PUF|possibly unfree files]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setEditSummary("Notification: listing at [[EFD:PUF|possibly unfree files]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
usertalkpage.setCreateOption('recreate');
switch (Twinkle.getPref('xfdWatchUser')) {
switch (Twinkle.getPref('xfdWatchUser')) {
Line 1,272: Line 1,272:
var notifytext = "\n{{subst:CFDNote|1=" + Morebits.pageNameNorm + "}} ~~~~";
var notifytext = "\n{{subst:CFDNote|1=" + Morebits.pageNameNorm + "}} ~~~~";
usertalkpage.setAppendText(notifytext);
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary("Notification: listing at [[WP:CFD|categories for discussion]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setEditSummary("Notification: listing at [[EFD:CFD|categories for discussion]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
usertalkpage.setCreateOption('recreate');
switch (Twinkle.getPref('xfdWatchUser')) {
switch (Twinkle.getPref('xfdWatchUser')) {
Line 1,297: Line 1,297:


pageobj.setPageText("{{subst:cfr-speedy|1=" + params.target + "}}\n" + text);
pageobj.setPageText("{{subst:cfr-speedy|1=" + params.target + "}}\n" + text);
pageobj.setEditSummary("Nominated for speedy renaming; see [[WP:CFDS|Categories for discussion/Speedy]]." + Twinkle.getPref('summaryAd'));
pageobj.setEditSummary("Nominated for speedy renaming; see [[EFD:CFDS|Categories for discussion/Speedy]]." + Twinkle.getPref('summaryAd'));
switch (Twinkle.getPref('xfdWatchPage')) {
switch (Twinkle.getPref('xfdWatchPage')) {
case 'yes':
case 'yes':
Line 1,443: Line 1,443:
var notifytext = "\n{{subst:RFDNote|1=" + Morebits.pageNameNorm + "}} ~~~~";
var notifytext = "\n{{subst:RFDNote|1=" + Morebits.pageNameNorm + "}} ~~~~";
usertalkpage.setAppendText(notifytext);
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary("Notification: listing at [[WP:RFD|redirects for discussion]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setEditSummary("Notification: listing at [[EFD:RFD|redirects for discussion]] of [[" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
usertalkpage.setCreateOption('recreate');
switch (Twinkle.getPref('xfdWatchUser')) {
switch (Twinkle.getPref('xfdWatchUser')) {