From f15f90548437b9aafcad31d32850b78c3adc868a Mon Sep 17 00:00:00 2001 From: Freddie Date: Tue, 3 Dec 2024 19:10:49 -0800 Subject: [PATCH] speedy: add T5 --- modules/twinkleconfig.js | 6 ++++++ modules/twinklespeedy.js | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/modules/twinkleconfig.js b/modules/twinkleconfig.js index 6e11c3fb4..d3f682668 100644 --- a/modules/twinkleconfig.js +++ b/modules/twinkleconfig.js @@ -36,6 +36,7 @@ Twinkle.config.commonSets = { u1: 'U1', u2: 'U2', u5: 'U5', f1: 'F1', f2: 'F2', f3: 'F3', f7: 'F7', f8: 'F8', f9: 'F9', c1: 'C1', c4: 'C4', + t5: 'T5', r2: 'R2', r3: 'R3', r4: 'R4' }, csdCriteriaDisplayOrder: [ @@ -45,6 +46,7 @@ Twinkle.config.commonSets = { 'u1', 'u2', 'u5', 'f1', 'f2', 'f3', 'f7', 'f8', 'f9', 'c1', 'c4', + 't5', 't5', 'r2', 'r3', 'r4' ], csdCriteriaNotification: { @@ -55,6 +57,7 @@ Twinkle.config.commonSets = { u5: 'U5', f1: 'F1', f2: 'F2', f3: 'F3', f7: 'F7', f9: 'F9', c1: 'C1', + t5: 'T5', r2: 'R2', r3: 'R3', r4: 'R4' }, csdCriteriaNotificationDisplayOrder: [ @@ -64,6 +67,7 @@ Twinkle.config.commonSets = { 'u5', 'f1', 'f2', 'f3', 'f7', 'f9', 'c1', + 't5', 't5', 'r2', 'r3', 'r4' ], csdAndImageDeletionCriteria: { @@ -73,6 +77,7 @@ Twinkle.config.commonSets = { u1: 'U1', u2: 'U2', u5: 'U5', f1: 'F1', f2: 'F2', f3: 'F3', f4: 'F4', f5: 'F5', f6: 'F6', f7: 'F7', f8: 'F8', f9: 'F9', f11: 'F11', c1: 'C1', c4: 'C4', + t5: 'T5', r2: 'R2', r3: 'R3', r4: 'R4' }, csdAndImageDeletionCriteriaDisplayOrder: [ @@ -82,6 +87,7 @@ Twinkle.config.commonSets = { 'u1', 'u2', 'u5', 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f11', 'c1', 'c4', + 't5', 't5', 'r2', 'r3', 'r4' ], namespacesNoSpecial: { diff --git a/modules/twinklespeedy.js b/modules/twinklespeedy.js index d8d46952d..750c94cad 100644 --- a/modules/twinklespeedy.js +++ b/modules/twinklespeedy.js @@ -302,6 +302,13 @@ Twinkle.speedy.callback.modeChanged = function twinklespeedyCallbackModeChanged( } break; + case 10: // template + case 11: // template talk + case 828: // module + case 829: // module talk + appendList('Templates and modules', Twinkle.speedy.templateList); + break; + case 14: // category case 15: // category talk appendList('Categories', Twinkle.speedy.categoryList); @@ -709,6 +716,14 @@ Twinkle.speedy.categoryList = [ } ]; +Twinkle.speedy.templateList = [ + { + label: 'T5: Unused template subpages', + value: 't5', + tooltip: 'Unused subpages of templates and Lua modules. This does not apply to /testcases and /sandbox subpages, or subpages of Module:Sandbox.' + } +]; + Twinkle.speedy.userList = [ { label: 'U1: User request', @@ -1049,6 +1064,7 @@ Twinkle.speedy.normalizeHash = { nopermission: 'f11', catempty: 'c1', c4: 'c4', + t5: 't5', userreq: 'u1', nouser: 'u2', notwebhost: 'u5'