Skip to content

Commit

Permalink
xfd: User notice templates renamed to 'Xfd notice' standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Amorymeltzer authored and wiki-ST47 committed Sep 2, 2020
1 parent e8cba4f commit 30c74a7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modules/twinklexfd.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ Twinkle.xfd.callbacks = {
}

var usertalkpage = new Morebits.wiki.page('User talk:' + initialContrib, 'Notifying initial contributor (' + initialContrib + ')');
var notifytext = '\n{{subst:AFDWarning|1=' + Morebits.pageNameNorm + (params.numbering !== '' ? '|order= ' + params.numbering : '') + '}} ~~~~';
var notifytext = '\n{{subst:Afd notice|1=' + Morebits.pageNameNorm + (params.numbering !== '' ? '|order= ' + params.numbering : '') + '}} ~~~~';
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary('Notification: [[' + params.discussionpage + '|nomination]] of [[:' + Morebits.pageNameNorm + ']] at [[WP:AFD|articles for deletion]].' + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
Expand Down Expand Up @@ -970,10 +970,10 @@ Twinkle.xfd.callbacks = {
var modNotice = mw.config.get('wgPageContentModel') === 'Scribunto' ? '|module=yes' : '';
switch (params.xfdcat) {
case 'tfd':
notifytext += '{{subst:tfdnotice|1=' + mw.config.get('wgTitle') + modNotice + '}} ~~~~';
notifytext += '{{subst:Tfd notice|1=' + mw.config.get('wgTitle') + modNotice + '}} ~~~~';
break;
case 'tfm':
notifytext += '{{subst:tfmnotice|1=' + mw.config.get('wgTitle') + '|2=' + params.target + modNotice + '}} ~~~~';
notifytext += '{{subst:Tfm notice|1=' + mw.config.get('wgTitle') + '|2=' + params.target + modNotice + '}} ~~~~';
break;
default:
alert('twinklexfd in userNotification: unknown TFD action');
Expand Down Expand Up @@ -1127,7 +1127,7 @@ Twinkle.xfd.callbacks = {
},
userNotificationMain: function(params, initialContrib, actionName) {
var usertalkpage = new Morebits.wiki.page('User talk:' + initialContrib, actionName + ' (' + initialContrib + ')');
var notifytext = '\n{{subst:MFDWarning|1=' + Morebits.pageNameNorm + (params.numbering !== '' ? '|order= ' + params.numbering : '') + '}} ~~~~';
var notifytext = '\n{{subst:Mfd notice|1=' + Morebits.pageNameNorm + (params.numbering !== '' ? '|order= ' + params.numbering : '') + '}} ~~~~';
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary('Notification: [[' + params.discussionpage + '|nomination]] of [[:' + Morebits.pageNameNorm + ']] at [[WP:MFD|miscellany for deletion]].' + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
Expand Down Expand Up @@ -1158,7 +1158,7 @@ Twinkle.xfd.callbacks = {
pageobj.getStatusElement().warn('You (' + initialContrib + ') created this page; skipping user notification');
} else {
var usertalkpage = new Morebits.wiki.page('User talk:' + initialContrib, 'Notifying initial contributor (' + initialContrib + ')');
var notifytext = '\n{{subst:fdw|1=' + mw.config.get('wgTitle') + '}}';
var notifytext = '\n{{subst:Ffd notice|1=' + mw.config.get('wgTitle') + '}}';
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary('Notification: [[' + params.discussionpage + '|listing]] of [[:' + Morebits.pageNameNorm + ']] at [[WP:FFD|files for discussion]].' + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
Expand Down Expand Up @@ -1269,7 +1269,7 @@ Twinkle.xfd.callbacks = {
}

var usertalkpage = new Morebits.wiki.page('User talk:' + initialContrib, 'Notifying initial contributor (' + initialContrib + ')');
var notifytext = '\n{{subst:cfd-notify|1=' + Morebits.pageNameNorm + '|action=' + params.action + (mw.config.get('wgNamespaceNumber') === 10 ? '|stub=yes' : '') + '}} ~~~~';
var notifytext = '\n{{subst:Cfd notice|1=' + Morebits.pageNameNorm + '|action=' + params.action + (mw.config.get('wgNamespaceNumber') === 10 ? '|stub=yes' : '') + '}} ~~~~';
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary('Notification: [[' + params.discussionpage + '|listing]] of [[:' + Morebits.pageNameNorm + ']] at [[WP:CFD|categories for discussion]].' + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
Expand Down Expand Up @@ -1454,7 +1454,7 @@ Twinkle.xfd.callbacks = {
},
userNotification: function(params, initialContrib) {
var usertalkpage = new Morebits.wiki.page('User talk:' + initialContrib, 'Notifying initial contributor (' + initialContrib + ')');
var notifytext = '\n{{subst:RFDNote|1=' + Morebits.pageNameNorm + '}} ~~~~';
var notifytext = '\n{{subst:Rfd notice|1=' + Morebits.pageNameNorm + '}} ~~~~';
usertalkpage.setAppendText(notifytext);
usertalkpage.setEditSummary('Notification: [[' + params.discussionpage + '|listing]] of [[:' + Morebits.pageNameNorm + ']] at [[WP:RFD|redirects for discussion]].' + Twinkle.getPref('summaryAd'));
usertalkpage.setCreateOption('recreate');
Expand All @@ -1464,7 +1464,7 @@ Twinkle.xfd.callbacks = {
},
targetNotification: function(params, targetTalk) {
var targettalkpage = new Morebits.wiki.page(targetTalk, 'Notifying redirect target of the discussion');
var notifytext = '\n{{subst:RFDNote|1=' + Morebits.pageNameNorm + '}} ~~~~';
var notifytext = '\n{{subst:Rfd notice|1=' + Morebits.pageNameNorm + '}} ~~~~';
targettalkpage.setAppendText(notifytext);
targettalkpage.setEditSummary('Notification: [[' + params.discussionpage + '|listing]] of [[:' + Morebits.pageNameNorm + ']] at [[WP:RFD|redirects for discussion]].' + Twinkle.getPref('summaryAd'));
targettalkpage.setCreateOption('recreate');
Expand Down

0 comments on commit 30c74a7

Please sign in to comment.