Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speedy: add T5 #2097

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions modules/twinkleconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -45,6 +46,7 @@ Twinkle.config.commonSets = {
'u1', 'u2', 'u5',
'f1', 'f2', 'f3', 'f7', 'f8', 'f9',
'c1', 'c4',
't5', 't5',
'r2', 'r3', 'r4'
],
csdCriteriaNotification: {
Expand All @@ -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: [
Expand All @@ -64,6 +67,7 @@ Twinkle.config.commonSets = {
'u5',
'f1', 'f2', 'f3', 'f7', 'f9',
'c1',
't5', 't5',
'r2', 'r3', 'r4'
],
csdAndImageDeletionCriteria: {
Expand All @@ -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: [
Expand All @@ -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: {
Expand Down
16 changes: 16 additions & 0 deletions modules/twinklespeedy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please walk me through what this code is doing?

break;

case 14: // category
case 15: // category talk
appendList('Categories', Twinkle.speedy.categoryList);
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -1049,6 +1064,7 @@ Twinkle.speedy.normalizeHash = {
nopermission: 'f11',
catempty: 'c1',
c4: 'c4',
t5: 't5',
userreq: 'u1',
nouser: 'u2',
notwebhost: 'u5'
Expand Down
Loading