Skip to content

Commit

Permalink
xfd: tag CfD/S C2F with cfm-speedy, not cfr-speedy (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredster33 authored Nov 12, 2024
1 parent 4a07910 commit 7047d96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/twinklexfd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7047d96

Please sign in to comment.