User:AnomieBOT/source/tasks/TemplateTalkRedirectCreator.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: TemplateTalkRedirectCreator: * Oops, missed a place that needed updating for that to work.
AnomieBOT (talk | contribs)
Updating published sources: TemplateTalkRedirectCreator: * Create redirects for "/styles.css" subpages, for both templates and modules.
Line 35:
'%/testcases',
'%/TemplateData',
'%/styles.css',
],
'Module' => [
Line 40 ⟶ 41:
'%/sandbox',
# Not %/testcases though, those talk pages are often (ab)used to run the tests.
'%/styles.css',
],
);
Line 45 ⟶ 47:
sub mapTitle {
my $title = shift;
return $1 if $title=~m!^(Template talk:.+)/(?:doc|sandbox|testcases|TemplateData|styles\.css)$!;
return $1 if $title=~m!^(Module talk:.+)/(?:doc|sandbox|styles\.css)$!;
return undef;
}