From 7047d9633c703f400eab5702e33088a1b1aa97eb Mon Sep 17 00:00:00 2001 From: fredster33 Date: Mon, 11 Nov 2024 23:36:56 -0800 Subject: [PATCH] xfd: tag CfD/S C2F with cfm-speedy, not cfr-speedy (#2043) --- modules/twinklexfd.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/twinklexfd.js b/modules/twinklexfd.js index 86bb6f85a..d571fe9fe 100644 --- a/modules/twinklexfd.js +++ b/modules/twinklexfd.js @@ -1805,8 +1805,11 @@ Twinkle.xfd.callbacks = { taggingCategory: function(pageobj) { var text = pageobj.getPageText(); var params = pageobj.getCallbackParameters(); - - params.tagText = '{{subst:cfr-speedy|1=' + params.cfdstarget.replace(/^:?Category:/, '') + '}}\n'; + if (params.xfdcat === 'C2F') { + params.tagText = '{{subst:cfm-speedy|1=' + params.cfdstarget.replace(/^:?Category:/, '') + '}}\n'; + } else { + params.tagText = '{{subst:cfr-speedy|1=' + params.cfdstarget.replace(/^:?Category:/, '') + '}}\n'; + } params.discussionpage = ''; // CFDS is just a bullet in a bulleted list. There's no section to link to, so we set this to blank. Blank will be recognized by both the generate userspace log code and the generate userspace log edit summary code as "don't wikilink to a section". if (pageobj.canEdit()) { pageobj.setPageText(params.tagText + text);