-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
speedy: allow admins to delete under multiple criteria, generating de…
…letion summaries from parsing the template that would have been placed by a non-admin twinkle: delete talk pages by default
- Loading branch information
1 parent
681f7bc
commit 97acb89
Showing
3 changed files
with
226 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(", "); | ||
// } |
Oops, something went wrong.