Skip to content

Commit

Permalink
speedy: allow admins to delete under multiple criteria, generating de…
Browse files Browse the repository at this point in the history
…letion summaries from parsing the template that would have been placed by a non-admin

twinkle: delete talk pages by default
  • Loading branch information
MusikAnimal committed Nov 18, 2015
1 parent 681f7bc commit 97acb89
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 181 deletions.
27 changes: 27 additions & 0 deletions modules/backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// var criteria = [], extendedRationales = [];
// $.each(params.normalizeds, function(index, norm) {
// criteria.push("[[WP:CSD#" + norm.toUpperCase() + "|" + norm.toUpperCase() + "]]");
// var parameters = params.templateParams[index] || [];
// for (var param in parameters) {
// if (typeof parameters[param] === 'string') {
// var paramStr;
// if (param === 'article' || param === 'source') {
// paramStr = "[[" + parameters[param] + "]]";
// } else {
// paramStr = parameters[param];
// }
// extendedRationales.push(paramStr);
// }
// }
// });

// var presetReason;
// if (params.normalizeds.length > 1) {
// presetReason = "Multiple reasons: speedy deletion criteria " + criteria.join(", ");
// } else {
// presetReason = criteria.join(",") + ": " + Twinkle.speedy.rationaleData[ params.values[0] ].summary;
// }

// if (extendedRationales.length) {
// presetReason += ": " + extendedRationales.join(", ");
// }

0 comments on commit 97acb89

Please sign in to comment.