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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectWorker: * Start run for WP:WikiProject Film/Marvel Cinematic Universe task force * Some cleanup of the code. d::WikiProjectTagging: * {{tl|WikiProjectBanners}} seems to have been merged with {{tl|WikiProjectBannerShell}} at some point, remove the code that decided between them.
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectTagger, WikiProjectWorker: * Retire these tasks, WikiProject templates have changed a bunch since I last ran these.
 
(7 intermediate revisions by the same user not shown)
Line 1:
{{ombox|type=notice|text= Approved 2009-04-08<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 28]]}}
{{ombox|type=notice|text= Retired 2024-01-29. Haven't had call to run this in a while, and the related templates have changed so I'd probably have to update this code to run it again.}}
<syntaxhighlight lang="perl">
package tasks::WikiProjectWorker;
Line 10 ⟶ 11:
Task: WikiProjectWorker
BRFA: Wikipedia:Bots/Requests for approval/AnomieBOT 28
Status: ApprovedInactive 20092024-0401-0829
Created: 2009-03-27
OnDemand: true
Line 32 ⟶ 33:
 
### Request link, for edit summary.
my $req="[[User:AnomieBOT/req/WikiProject Film/MarvelHigher Cinematic Universe task forceEducation|request]]";
 
### Increment this number every time a new run is started, so we don't have to
### mess around with deleting previous runs' database entries.
my $seq=2628;
 
### How to find the pages?
my %catmap = (
"Category:AgentArticles Carterusing (TVinfobox series)university" => "WikiProject TelevisionHigher education",
"Category:Agent Carter (TV series) character redirects to lists" => "WikiProject Television",
"Category:Agent Carter (TV series) episodes" => "WikiProject Television",
"Category:Agent Carter (TV series) images" => "WikiProject Television",
"Category:Agent Carter (TV series) seasons" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D." => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. character images" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. character redirects to lists" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. episode redirects to lists" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. episodes" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. images" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. original characters" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. posters" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. (season 1) episodes" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. (season 2) episodes" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. (season 3) episodes" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. (season 4) episodes" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. (season 5) episodes" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. (season 6) episodes" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. (season 7) episodes" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. seasons" => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D.: Slingshot episode redirects to lists" => "WikiProject Television",
"Category:Cloak & Dagger (TV series)" => "WikiProject Television",
"Category:Cloak & Dagger (TV series) episode redirects to lists" => "WikiProject Television",
"Category:Cloak & Dagger (TV series) seasons" => "WikiProject Television",
"Category:Daredevil (TV series)" => "WikiProject Television",
"Category:Daredevil (TV series) episode redirects to lists" => "WikiProject Television",
"Category:Daredevil (TV series) images" => "WikiProject Television",
"Category:Daredevil (TV series) seasons" => "WikiProject Television",
"Category:Helstrom (TV series) episode redirects to lists" => "WikiProject Television",
"Category:Inhumans (TV series)" => "WikiProject Television",
"Category:Inhumans (TV series) episode redirects to lists" => "WikiProject Television",
"Category:Iron Fist (TV series)" => "WikiProject Television",
"Category:Iron Fist (TV series) episode redirects to lists" => "WikiProject Television",
"Category:Iron Fist (TV series) images" => "WikiProject Television",
"Category:Iron Fist (TV series) seasons" => "WikiProject Television",
"Category:Iron Man (film series)" => "WikiProject Television",
"Category:Iron Man (film series) images" => "WikiProject Television",
"Category:Jessica Jones (TV series)" => "WikiProject Television",
"Category:Jessica Jones (TV series) episode redirects to lists" => "WikiProject Television",
"Category:Jessica Jones (TV series) images" => "WikiProject Television",
"Category:Jessica Jones (TV series) seasons" => "WikiProject Television",
"Category:Loki (TV series)" => "WikiProject Television",
"Category:Luke Cage (TV series)" => "WikiProject Television",
"Category:Luke Cage (TV series) episode redirects to lists" => "WikiProject Television",
"Category:Luke Cage (TV series) images" => "WikiProject Television",
"Category:Luke Cage (TV series) seasons" => "WikiProject Television",
"Category:Marvel Cinematic Universe crossover episodes" => "WikiProject Television",
"Category:Marvel Cinematic Universe episode lists" => "WikiProject Television",
"Category:Marvel Cinematic Universe episode redirects to lists" => "WikiProject Television",
"Category:Marvel Cinematic Universe episodes" => "WikiProject Television",
"Category:Marvel Cinematic Universe seasons" => "WikiProject Television",
"Category:Marvel Cinematic Universe television franchises" => "WikiProject Television",
"Category:Marvel Cinematic Universe television program title cards" => "WikiProject Television",
"Category:Marvel Cinematic Universe television series" => "WikiProject Television",
"Category:Marvel Cinematic Universe television show images" => "WikiProject Television",
"Category:Marvel Cinematic Universe television show logos" => "WikiProject Television",
"Category:Marvel Cinematic Universe television show posters" => "WikiProject Television",
"Category:Marvel's ABC television series" => "WikiProject Television",
"Category:Marvel's Netflix television series" => "WikiProject Television",
"Category:Marvel Studios: Assembled episode redirects to lists" => "WikiProject Television",
"Category:Marvel Studios: Legends episode redirects to lists" => "WikiProject Television",
"Category:Marvel's young adult television series" => "WikiProject Television",
"Category:Runaways (TV series)" => "WikiProject Television",
"Category:Runaways (TV series) episode redirects to lists" => "WikiProject Television",
"Category:The Defenders (miniseries)" => "WikiProject Television",
"Category:The Defenders (miniseries) episode redirects to lists" => "WikiProject Television",
"Category:The Falcon and the Winter Soldier" => "WikiProject Television",
"Category:The Falcon and the Winter Soldier character redirects to lists" => "WikiProject Television",
"Category:The Falcon and the Winter Soldier episodes" => "WikiProject Television",
"Category:The Falcon and the Winter Soldier images" => "WikiProject Television",
"Category:The Falcon and the Winter Soldier posters" => "WikiProject Television",
"Category:The Punisher (TV series)" => "WikiProject Television",
"Category:The Punisher (TV series) episode redirects to lists" => "WikiProject Television",
"Category:The Punisher (TV series) images" => "WikiProject Television",
"Category:The Punisher (TV series) seasons" => "WikiProject Television",
"Category:WandaVision" => "WikiProject Television",
"Category:WandaVision character redirects to lists" => "WikiProject Television",
"Category:WandaVision episodes" => "WikiProject Television",
"Category:WandaVision images" => "WikiProject Television",
"Category:WandaVision posters" => "WikiProject Television",
 
"Category:Ant-Man (film series)" => "WikiProject Film",
"Category:Ant-Man (film series) images" => "WikiProject Film",
"Category:Avengers Campus" => "WikiProject Film",
"Category:Avengers (film series)" => "WikiProject Film",
"Category:Avengers (film series) images" => "WikiProject Film",
"Category:B-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Black Panther (film series)" => "WikiProject Film",
"Category:Black Panther (film series) images" => "WikiProject Film",
"Category:Captain America (film series)" => "WikiProject Film",
"Category:Captain America (film series) images" => "WikiProject Film",
"Category:Captain Marvel (film series)" => "WikiProject Film",
"Category:Captain Marvel (film series) images" => "WikiProject Film",
"Category:Category-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:C-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Doctor Strange (film series)" => "WikiProject Film",
"Category:Doctor Strange (film series) images" => "WikiProject Film",
"Category:Draft-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:FA-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:File-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:FL-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:GA-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Guardians of the Galaxy (film series)" => "WikiProject Film",
"Category:Guardians of the Galaxy (film series) images" => "WikiProject Film",
"Category:High-importance Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:List-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Low-importance Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Marvel Cinematic Universe" => "WikiProject Film",
"Category:Marvel Cinematic Universe album covers" => "WikiProject Film",
"Category:Marvel Cinematic Universe amusement rides" => "WikiProject Film",
"Category:Marvel Cinematic Universe articles by importance" => "WikiProject Film",
"Category:Marvel Cinematic Universe articles by quality" => "WikiProject Film",
"Category:Marvel Cinematic Universe brands" => "WikiProject Film",
"Category:Marvel Cinematic Universe character images" => "WikiProject Film",
"Category:Marvel Cinematic Universe character lists" => "WikiProject Film",
"Category:Marvel Cinematic Universe character redirects to lists" => "WikiProject Film",
"Category:Marvel Cinematic Universe characters" => "WikiProject Film",
"Category:Marvel Cinematic Universe crossovers" => "WikiProject Film",
"Category:Marvel Cinematic Universe Did you know articles" => "WikiProject Film",
"Category:Marvel Cinematic Universe drafts" => "WikiProject Film",
"Category:Marvel Cinematic Universe effects images" => "WikiProject Film",
"Category:Marvel Cinematic Universe element images" => "WikiProject Film",
"Category:Marvel Cinematic Universe element redirects to lists" => "WikiProject Film",
"Category:Marvel Cinematic Universe features" => "WikiProject Film",
"Category:Marvel Cinematic Universe film images" => "WikiProject Film",
"Category:Marvel Cinematic Universe film posters" => "WikiProject Film",
"Category:Marvel Cinematic Universe films" => "WikiProject Film",
"Category:Marvel Cinematic Universe film series" => "WikiProject Film",
"Category:Marvel Cinematic Universe images" => "WikiProject Film",
"Category:Marvel Cinematic Universe lists" => "WikiProject Film",
"Category:Marvel Cinematic Universe ___location redirects" => "WikiProject Film",
"Category:Marvel Cinematic Universe mass media" => "WikiProject Film",
"Category:Marvel Cinematic Universe music" => "WikiProject Film",
"Category:Marvel Cinematic Universe non-free files" => "WikiProject Film",
"Category:Marvel Cinematic Universe original characters" => "WikiProject Film",
"Category:Marvel Cinematic Universe phases" => "WikiProject Film",
"Category:Marvel Cinematic Universe posters" => "WikiProject Film",
"Category:Marvel Cinematic Universe redirects" => "WikiProject Film",
"Category:Marvel Cinematic Universe redirects to lists" => "WikiProject Film",
"Category:Marvel Cinematic Universe shorts" => "WikiProject Film",
"Category:Marvel Cinematic Universe shorts images" => "WikiProject Film",
"Category:Marvel Cinematic Universe soundtracks" => "WikiProject Film",
"Category:Marvel Cinematic Universe task force" => "WikiProject Film",
"Category:Marvel Cinematic Universe task force articles" => "WikiProject Film",
"Category:Marvel Cinematic Universe task force participants" => "WikiProject Film",
"Category:Marvel Cinematic Universe templates" => "WikiProject Film",
"Category:Marvel Cinematic Universe tie-in comics" => "WikiProject Film",
"Category:Marvel Cinematic Universe video game covers" => "WikiProject Film",
"Category:Marvel Cinematic Universe video games" => "WikiProject Film",
"Category:Marvel One-Shots" => "WikiProject Film",
"Category:Marvel One-Shots film posters" => "WikiProject Film",
"Category:Mid-importance Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:NA-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:NA-importance Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Project-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Redirect-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Spider-Man (2017 film series)" => "WikiProject Film",
"Category:Spider-Man (2017 film series) images" => "WikiProject Film",
"Category:Start-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Stub-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Template-Class Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:The Incredible Hulk (film)" => "WikiProject Film",
"Category:The Incredible Hulk (film) images" => "WikiProject Film",
"Category:Thor (film series)" => "WikiProject Film",
"Category:Thor (film series) images" => "WikiProject Film",
"Category:Top-importance Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Unassessed Marvel Cinematic Universe articles" => "WikiProject Film",
"Category:Unknown-importance Marvel Cinematic Universe articles" => "WikiProject Film",
);
my @cats=keys %catmap;
Line 241 ⟶ 74:
 
# Banner configurations.
my $main_banner='WikiProject FilmHigher education';
my %banner_cfgs=(
'WikiProject FilmHigher education' => {
meta => 01,
canonicalizeimportance => 'WikiProject Film',
canonicalize => 'WikiProject Higher education',
},
'WikiProject Television' => {
meta => 0,
canonicalize => 'WikiProject Television',
},
);
 
# Extra parameters (e.g. workgroup).
my @extra_params=( 'mcu=yes' );
my $taggingwith = @extra_params ? '|' . join( '|', @extra_params ) : '';
 
# Regex fragment to match any aliases of params in @extra_params.
my %extra_param_aliases = ( 'mcu' => qr/MCU/ );
 
# Possible main banners, usually just $main_banner.
my @main_banners=(
$main_banner,
'WikiProject Television',
);
 
Line 287 ⟶ 116:
=for info
Approved 2009-04-08<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 28]]
 
=for info
Retired 2024-01-29. Haven't had call to run this in a while, and the related templates have changed so I'd probably have to update this code to run it again.
 
=cut
 
sub approved {
return -1;
}