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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectWorker: * Run complete.
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.
Line 32:
 
### Request link, for edit summary.
my $req="[[User:AnomieBOT/req/WikiProject DipteraFilm/Marvel Cinematic Universe task force|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=2526;
 
### How to find the pages?
my @cats%catmap = (
'"Category:Acalyptratae'Agent Carter (TV series)" => "WikiProject Television",
"Category:Agent Carter (TV series) character redirects to lists" => "WikiProject Television",
'Category:Acalyptratae stubs',
"Category:Agent Carter (TV series) episodes" => "WikiProject Television",
'Category:Acartophthalmidae',
"Category:Agent Carter (TV series) images" => "WikiProject Television",
'Category:Achalcinae',
"Category:Agent Carter (TV series) seasons" => "WikiProject Television",
'Category:Acroceridae',
'"Category:Acrosticta'Agents of S.H.I.E.L.D." => "WikiProject Television",
"Category:Agents of S.H.I.E.L.D. character images" => "WikiProject Television",
'Category:Actia (genus)',
"Category:Agents of S.H.I.E.L.D. character redirects to lists" => "WikiProject Television",
'Category:Actia stubs',
"Category:Agents of S.H.I.E.L.D. episode redirects to lists" => "WikiProject Television",
'Category:Adejeania',
"Category:Agents of S.H.I.E.L.D. episodes" => "WikiProject Television",
'Category:Aedeomyia',
"Category:Agents of S.H.I.E.L.D. images" => "WikiProject Television",
'Category:Aedes',
"Category:Agents of S.H.I.E.L.D. original characters" => "WikiProject Television",
'Category:Aedini',
"Category:Agents of S.H.I.E.L.D. posters" => "WikiProject Television",
'Category:Agromyzidae',
"Category:Agents of S.H.I.E.L.D. (season 1) episodes" => "WikiProject Television",
'Category:Amethysa',
"Category:Agents of S.H.I.E.L.D. (season 2) episodes" => "WikiProject Television",
'Category:Andrenosoma',
"Category:Agents of S.H.I.E.L.D. (season 3) episodes" => "WikiProject Television",
'Category:Anisopodidae',
"Category:Agents of S.H.I.E.L.D. (season 4) episodes" => "WikiProject Television",
'Category:Anopheles',
"Category:Agents of S.H.I.E.L.D. (season 5) episodes" => "WikiProject Television",
'Category:Anophelinae',
"Category:Agents of S.H.I.E.L.D. (season 6) episodes" => "WikiProject Television",
'Category:Anthomyiidae',
"Category:Agents of S.H.I.E.L.D. (season 7) episodes" => "WikiProject Television",
'Category:Anthomyzidae',
"Category:Agents of S.H.I.E.L.D. seasons" => "WikiProject Television",
'Category:Antyxinae',
"Category:Agents of S.H.I.E.L.D.: Slingshot episode redirects to lists" => "WikiProject Television",
'Category:Armigeres',
"Category:Cloak & Dagger (TV series)" => "WikiProject Television",
'Category:Aschiza',
"Category:Cloak & Dagger (TV series) episode redirects to lists" => "WikiProject Television",
'Category:Aschiza genera',
"Category:Cloak & Dagger (TV series) seasons" => "WikiProject Television",
'Category:Aschiza stubs',
'"Category:Asilidae'Daredevil (TV series)" => "WikiProject Television",
"Category:Daredevil (TV series) episode redirects to lists" => "WikiProject Television",
'Category:Asilidae genera',
'"Category:AsilidaeDaredevil stubs'(TV series) images" => "WikiProject Television",
"Category:Daredevil (TV series) seasons" => "WikiProject Television",
'Category:Asilinae',
"Category:Helstrom (TV series) episode redirects to lists" => "WikiProject Television",
'Category:Asiloidea',
'"Category:AsiloideaInhumans genera'(TV series)" => "WikiProject Television",
"Category:Inhumans (TV series) episode redirects to lists" => "WikiProject Television",
'Category:Asiloidea stubs',
'"Category:Asilomorpha'Iron Fist (TV series)" => "WikiProject Television",
"Category:Iron Fist (TV series) episode redirects to lists" => "WikiProject Television",
'Category:Asilomorpha genera',
"Category:Iron Fist (TV series) images" => "WikiProject Television",
'Category:Asilomorpha stubs',
"Category:Iron Fist (TV series) seasons" => "WikiProject Television",
'Category:Asilomorpha subfamilies',
'"Category:AsilomorphaIron taxa'Man (film series)" => "WikiProject Television",
'"Category:AsilomorphIron fliesMan of(film Europe'series) images" => "WikiProject Television",
'"Category:Asteiidae'Jessica Jones (TV series)" => "WikiProject Television",
"Category:Jessica Jones (TV series) episode redirects to lists" => "WikiProject Television",
'Category:Athericidae',
"Category:Jessica Jones (TV series) images" => "WikiProject Television",
'Category:Atomosia',
"Category:Jessica Jones (TV series) seasons" => "WikiProject Television",
'Category:Australimyzidae',
'"Category:Austroleptidae'Loki (TV series)" => "WikiProject Television",
'"Category:Axymyiomorpha'Luke Cage (TV series)" => "WikiProject Television",
"Category:Luke Cage (TV series) episode redirects to lists" => "WikiProject Television",
'Category:Babindellinae',
"Category:Luke Cage (TV series) images" => "WikiProject Television",
'Category:Bactrocera',
"Category:Luke Cage (TV series) seasons" => "WikiProject Television",
'Category:Belgica',
"Category:Marvel Cinematic Universe crossover episodes" => "WikiProject Television",
'Category:Bibionidae',
"Category:Marvel Cinematic Universe episode lists" => "WikiProject Television",
'Category:Bibionomorpha',
"Category:Marvel Cinematic Universe episode redirects to lists" => "WikiProject Television",
'Category:Bibionomorpha genera',
"Category:Marvel Cinematic Universe episodes" => "WikiProject Television",
'Category:Bibionomorpha stubs',
"Category:Marvel Cinematic Universe seasons" => "WikiProject Television",
'Category:Blephariceridae',
"Category:Marvel Cinematic Universe television franchises" => "WikiProject Television",
'Category:Blephariceromorpha',
"Category:Marvel Cinematic Universe television program title cards" => "WikiProject Television",
'Category:Blephariceromorpha stubs',
"Category:Marvel Cinematic Universe television series" => "WikiProject Television",
'Category:Blepharoneurinae',
"Category:Marvel Cinematic Universe television show images" => "WikiProject Television",
'Category:Bolitophilidae',
"Category:Marvel Cinematic Universe television show logos" => "WikiProject Television",
'Category:Bombyliidae',
"Category:Marvel Cinematic Universe television show posters" => "WikiProject Television",
'Category:Bombyliidae genera',
"Category:Marvel's ABC television series" => "WikiProject Television",
'Category:Bombyliidae stubs',
"Category:Marvel's Netflix television series" => "WikiProject Television",
'Category:Brachycera',
"Category:Marvel Studios: Assembled episode redirects to lists" => "WikiProject Television",
'Category:Brachycera families',
"Category:Marvel Studios: Legends episode redirects to lists" => "WikiProject Television",
'Category:Brachycera genera',
"Category:Marvel's young adult television series" => "WikiProject Television",
'Category:Brachyceran flies of Europe',
'"Category:BrachyceraRunaways stubs'(TV series)" => "WikiProject Television",
"Category:Runaways (TV series) episode redirects to lists" => "WikiProject Television",
'Category:Brachycera subfamilies',
"Category:The Defenders (miniseries)" => "WikiProject Television",
'Category:Brachycera taxa',
"Category:The Defenders (miniseries) episode redirects to lists" => "WikiProject Television",
'Category:Brachycera tribes',
"Category:The Falcon and the Winter Soldier" => "WikiProject Television",
'Category:Brachystomatidae',
"Category:The Falcon and the Winter Soldier character redirects to lists" => "WikiProject Television",
'Category:Braulidae',
"Category:The Falcon and the Winter Soldier episodes" => "WikiProject Television",
'Category:Calliphoridae',
"Category:The Falcon and the Winter Soldier images" => "WikiProject Television",
'Category:Calyptratae',
"Category:The Falcon and the Winter Soldier posters" => "WikiProject Television",
'Category:Calyptratae stubs',
'"Category:Camillidae'The Punisher (TV series)" => "WikiProject Television",
"Category:The Punisher (TV series) episode redirects to lists" => "WikiProject Television",
'Category:Campichoetidae',
"Category:The Punisher (TV series) images" => "WikiProject Television",
'Category:Canacidae',
"Category:The Punisher (TV series) seasons" => "WikiProject Television",
'Category:Carnidae',
'"Category:Carnoidea'WandaVision" => "WikiProject Television",
"Category:WandaVision character redirects to lists" => "WikiProject Television",
'Category:Carnoidea genera',
'"Category:CarnoideaWandaVision stubs'episodes" => "WikiProject Television",
'"Category:Cecidomyiidae'WandaVision images" => "WikiProject Television",
'"Category:CecidomyiidaeWandaVision genera'posters" => "WikiProject Television",
 
'Category:Cecidomyiinae',
'"Category:Celyphidae'Ant-Man (film series)" => "WikiProject Film",
'"Category:Cephalia'Ant-Man (film series) images" => "WikiProject Film",
'"Category:Ceratitella'Avengers Campus" => "WikiProject Film",
'"Category:Ceratopogonidae'Avengers (film series)" => "WikiProject Film",
'"Category:Cerotainia'Avengers (film series) images" => "WikiProject Film",
"Category:B-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Ceroxys',
'"Category:Chaetopsis'Black Panther (film series)" => "WikiProject Film",
"Category:Black Panther (film series) images" => "WikiProject Film",
'Category:Chamaemyiidae',
'"Category:Chaoboridae'Captain America (film series)" => "WikiProject Film",
"Category:Captain America (film series) images" => "WikiProject Film",
'Category:Chironomidae',
'"Category:ChironomidaeCaptain stubs'Marvel (film series)" => "WikiProject Film",
"Category:Captain Marvel (film series) images" => "WikiProject Film",
'Category:Chironomoidea',
"Category:Category-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Chironomoidea genera',
"Category:C-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Chironomoidea stubs',
'"Category:Chloropidae'Doctor Strange (film series)" => "WikiProject Film",
"Category:Doctor Strange (film series) images" => "WikiProject Film",
'Category:Chloropidae genera',
"Category:Draft-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Chloropinae',
"Category:FA-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Chrysomyza',
"Category:File-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Chyromyidae',
"Category:FL-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Clusiidae',
"Category:GA-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Conopidae',
"Category:Guardians of the Galaxy (film series)" => "WikiProject Film",
'Category:Conopoidea genera',
"Category:Guardians of the Galaxy (film series) images" => "WikiProject Film",
'Category:Conopoidea stubs',
"Category:High-importance Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Coquillettidia',
"Category:List-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Cremifaniidae',
"Category:Low-importance Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Culex',
'"Category:Culicidae'Marvel Cinematic Universe" => "WikiProject Film",
"Category:Marvel Cinematic Universe album covers" => "WikiProject Film",
'Category:Culicinae',
"Category:Marvel Cinematic Universe amusement rides" => "WikiProject Film",
'Category:Culicoidea',
"Category:Marvel Cinematic Universe articles by importance" => "WikiProject Film",
'Category:Culicoidea genera',
"Category:Marvel Cinematic Universe articles by quality" => "WikiProject Film",
'Category:Culicoidea stubs',
"Category:Marvel Cinematic Universe brands" => "WikiProject Film",
'Category:Culicoides',
"Category:Marvel Cinematic Universe character images" => "WikiProject Film",
'Category:Culicomorpha',
"Category:Marvel Cinematic Universe character lists" => "WikiProject Film",
'Category:Culicomorpha genera',
"Category:Marvel Cinematic Universe character redirects to lists" => "WikiProject Film",
'Category:Culicomorpha stubs',
"Category:Marvel Cinematic Universe characters" => "WikiProject Film",
'Category:Cyamops',
"Category:Marvel Cinematic Universe crossovers" => "WikiProject Film",
'Category:Cylindrotomidae',
"Category:Marvel Cinematic Universe Did you know articles" => "WikiProject Film",
'Category:Dacinae',
'"Category:DacinaeMarvel stubs'Cinematic Universe drafts" => "WikiProject Film",
"Category:Marvel Cinematic Universe effects images" => "WikiProject Film",
'Category:Dasymetopa',
"Category:Marvel Cinematic Universe element images" => "WikiProject Film",
'Category:Dexiinae',
"Category:Marvel Cinematic Universe element redirects to lists" => "WikiProject Film",
'Category:Dexiinae stubs',
"Category:Marvel Cinematic Universe features" => "WikiProject Film",
'Category:Diadocidiidae',
"Category:Marvel Cinematic Universe film images" => "WikiProject Film",
'Category:Diaphorinae',
"Category:Marvel Cinematic Universe film posters" => "WikiProject Film",
'Category:Diastatidae',
'"Category:Diopsidae'Marvel Cinematic Universe films" => "WikiProject Film",
"Category:Marvel Cinematic Universe film series" => "WikiProject Film",
'Category:Diopsoidea',
'"Category:DiopsoideaMarvel genera'Cinematic Universe images" => "WikiProject Film",
'"Category:DiopsoideaMarvel stubs'Cinematic Universe lists" => "WikiProject Film",
"Category:Marvel Cinematic Universe ___location redirects" => "WikiProject Film",
'Category:Diptera by classification',
'"Category:DipteraMarvel byCinematic continent'Universe mass media" => "WikiProject Film",
'"Category:DipteraMarvel byCinematic ___location'Universe music" => "WikiProject Film",
'"Category:DipteraMarvel byCinematic region'Universe non-free files" => "WikiProject Film",
"Category:Marvel Cinematic Universe original characters" => "WikiProject Film",
'Category:Diptera families',
'"Category:DipteraMarvel genera'Cinematic Universe phases" => "WikiProject Film",
'"Category:DipteraMarvel ofCinematic Africa'Universe posters" => "WikiProject Film",
'"Category:DipteraMarvel ofCinematic Asia'Universe redirects" => "WikiProject Film",
"Category:Marvel Cinematic Universe redirects to lists" => "WikiProject Film",
'Category:Diptera of Australasia',
'"Category:DipteraMarvel ofCinematic Europe'Universe shorts" => "WikiProject Film",
'"Category:DipteraMarvel ofCinematic NewUniverse Zealand'shorts images" => "WikiProject Film",
'"Category:DipteraMarvel ofCinematic NorthUniverse America'soundtracks" => "WikiProject Film",
'"Category:DipteraMarvel ofCinematic Scandinavia'Universe task force" => "WikiProject Film",
'"Category:DipteraMarvel ofCinematic SouthUniverse America'task force articles" => "WikiProject Film",
"Category:Marvel Cinematic Universe task force participants" => "WikiProject Film",
'Category:Diptera pests and diseases',
'"Category:DipteraMarvel stubs'Cinematic Universe templates" => "WikiProject Film",
"Category:Marvel Cinematic Universe tie-in comics" => "WikiProject Film",
'Category:Diptera subfamilies',
"Category:Marvel Cinematic Universe video game covers" => "WikiProject Film",
'Category:Diptera superfamilies',
"Category:Marvel Cinematic Universe video games" => "WikiProject Film",
'Category:Diptera taxa',
'"Category:DipteraMarvel taxaOne-Shots" by=> rank'"WikiProject Film",
'"Category:DipteraMarvel taxonomy'One-Shots film posters" => "WikiProject Film",
"Category:Mid-importance Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Diptera tribes',
'"Category:DipteraNA-Class usedMarvel asCinematic pestUniverse controlarticles" agents'=> "WikiProject Film",
"Category:NA-importance Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Ditomyiidae',
"Category:Project-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Dixidae',
"Category:Redirect-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Dolichopodidae',
'"Category:DolichopodidaeSpider-Man genera'(2017 film series)" => "WikiProject Film",
"Category:Spider-Man (2017 film series) images" => "WikiProject Film",
'Category:Dolichopodidae stubs',
"Category:Start-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Dolichopodidae subfamilies',
"Category:Stub-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Dolichopodinae',
"Category:Template-Class Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Dolichopus',
'"Category:Dorycera'The Incredible Hulk (film)" => "WikiProject Film",
"Category:The Incredible Hulk (film) images" => "WikiProject Film",
'Category:Drosophila',
'"Category:DrosophilaThor melanogaster'(film series)" => "WikiProject Film",
'"Category:DrosophilaThor melanogaster(film genes'series) images" => "WikiProject Film",
"Category:Top-importance Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Drosophila melanogaster genetics',
"Category:Unassessed Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Drosophilidae',
"Category:Unknown-importance Marvel Cinematic Universe articles" => "WikiProject Film",
'Category:Drosophilidae genera',
'Category:Drosophilidae stubs',
'Category:Dryomyzidae',
'Category:Empididae',
'Category:Empidoidea',
'Category:Empidoidea genera',
'Category:Empidoidea stubs',
'Category:Empyelocera',
'Category:Enliniinae',
'Category:Ephydridae',
'Category:Ephydroidea',
'Category:Ephydroidea genera',
'Category:Ephydroidea stubs',
'Category:Eristalinae',
'Category:Euleia',
'Category:Eumerini',
'Category:Euxesta',
'Category:Euxesta stubs',
'Category:Exoristinae',
'Category:Exoristinae stubs',
'Category:Fanniidae',
'Category:Ficalbia',
'Category:Flies and humans',
'Category:Fly biology',
'Category:Fly ecology',
'Category:Goniaea',
'Category:Heizmannia',
'Category:Helcomyzidae',
'Category:Heleomyzidae',
'Category:Heleomyzidae stubs',
'Category:Hexachaeta',
'Category:Hippoboscidae',
'Category:Hippoboscoidea',
'Category:Hippoboscoidea genera',
'Category:Hippoboscoidea stubs',
'Category:Hodgesia',
'Category:Homalocephala',
'Category:Hoverflies',
'Category:Hoverfly genera',
'Category:Hybotidae',
'Category:Hydrophorinae',
'Category:Hydrophorus',
'Category:Keroplatidae',
'Category:Laphria',
'Category:Laphriinae',
'Category:Laphystia',
'Category:Lauxaniidae',
'Category:Lauxanioidea',
'Category:Lauxanioidea genera',
'Category:Lauxanioidea stubs',
'Category:Leptoconops',
'Category:Limoniidae',
'Category:Lists of Diptera',
'Category:Lists of Diptera by ___location',
'Category:Lists of Diptera genera',
'Category:Lonchaeidae',
'Category:Lonchaeoidea',
'Category:Lonchopteridae',
'Category:Mansonia',
'Category:Medeterinae',
'Category:Melieria',
'Category:Micropezidae',
'Category:Microphorinae',
'Category:Mimomyia',
'Category:Monogeneric Diptera families',
'Category:Monotypic Brachycera genera',
'Category:Monotypic Diptera genera',
'Category:Monotypic Diptera taxa',
'Category:Mosquito genera',
'Category:Muscidae',
'Category:Muscidae genera',
'Category:Muscidae stubs',
'Category:Muscoidea',
'Category:Muscoidea genera',
'Category:Muscoidea stubs',
'Category:Muscomorpha',
'Category:Muscomorpha genera',
'Category:Muscomorpha stubs',
'Category:Muscomorph flies of Europe',
'Category:Mycetophilidae',
'Category:Mydidae',
'Category:Myennis',
'Category:Myoleja',
'Category:Nematocera',
'Category:Nematocera families',
'Category:Nematocera genera',
'Category:Nematoceran flies of Europe',
'Category:Nematocera stubs',
'Category:Nematocera subfamilies',
'Category:Nematocera taxa',
'Category:Nematocera tribes',
'Category:Nemestrinoidea',
'Category:Nemestrinoidea genera',
'Category:Nemestrinoidea stubs',
'Category:Nerioidea',
'Category:Nerioidea genera',
'Category:Nerioidea stubs',
'Category:Neurigoninae',
'Category:Nycteribiidae',
'Category:Ochlerotatus',
'Category:Odiniidae',
'Category:Oestridae',
'Category:Oestroidea',
'Category:Oestroidea genera',
'Category:Oestroidea stubs',
'Category:Opomyzidae',
'Category:Opomyzoidea',
'Category:Opomyzoidea genera',
'Category:Opomyzoidea stubs',
'Category:Ortalis (fly)',
'Category:Orthopodomyia',
'Category:Oscinellinae',
'Category:Otites',
'Category:Otitinae',
'Category:Pallopteridae',
'Category:Paragorgopis',
'Category:Parasitic flies',
'Category:Parathalassiinae',
'Category:Paravilla',
'Category:Pediciidae',
'Category:Peloropeodinae',
'Category:Perilampsis',
'Category:Periscelididae',
'Category:Phasiinae',
'Category:Phasiinae stubs',
'Category:Phoridae',
'Category:Physiphora',
'Category:Phytalmiinae',
'Category:Phytalmiinae stubs',
'Category:Phytomyza',
'Category:Piophilidae',
'Category:Pipunculidae',
'Category:Plagioneurinae',
'Category:Platypezidae',
'Category:Platypezoidea',
'Category:Platypezoidea genera',
'Category:Platypezoidea stubs',
'Category:Platystomatidae',
'Category:Pollinator flies',
'Category:Prehistoric Diptera',
'Category:Prehistoric Diptera genera',
'Category:Procecidochares',
'Category:Psilidae',
'Category:Psychodidae',
'Category:Psychodomorpha',
'Category:Psychodomorpha genera',
'Category:Psychodomorpha stubs',
'Category:Pterocalla',
'Category:Pterocerina',
'Category:Ptychopteridae',
'Category:Ptychopteromorpha',
'Category:Pyrgotidae',
'Category:Rhagionidae',
'Category:Rhagionoidea',
'Category:Rhagionoidea stubs',
'Category:Rhagoletis',
'Category:Rhagoletis stubs',
'Category:Rhaphiinae',
'Category:Rhinophoridae',
'Category:Sarcophagidae',
'Category:Scathophagidae',
'Category:Scatopsidae',
'Category:Schizophora',
'Category:Schizophora genera',
'Category:Schizophora stubs',
'Category:Sciapodinae',
'Category:Sciaridae',
'Category:Sciaroidea',
'Category:Sciaroidea genera',
'Category:Sciaroidea stubs',
'Category:Sciomyzidae',
'Category:Sciomyzoidea',
'Category:Sciomyzoidea genera',
'Category:Sciomyzoidea stubs',
'Category:Scutelliseta',
'Category:Seioptera',
'Category:Sepsidae',
'Category:Sericomyiini',
'Category:Simuliidae',
'Category:Simulium',
'Category:Sphaeroceridae',
'Category:Sphaeroceroidea',
'Category:Sphaeroceroidea genera',
'Category:Sphaeroceroidea stubs',
'Category:Spheginobacchini',
'Category:Stratiomyidae',
'Category:Stratiomyidae stubs',
'Category:Stratiomyoidea',
'Category:Stratiomyomorpha',
'Category:Stratiomyomorpha genera',
'Category:Stratiomyomorpha stubs',
'Category:Strauzia',
'Category:Sympycninae',
'Category:Syrphidae stubs',
'Category:Syrphinae',
'Category:Syrphini',
'Category:Syrphoidea',
'Category:Syrphoidea genera',
'Category:Syrphoidea stubs',
'Category:Tabanidae',
'Category:Tabanoidea',
'Category:Tabanoidea genera',
'Category:Tabanoidea stubs',
'Category:Tabanomorpha',
'Category:Tabanomorpha genera',
'Category:Tabanomorpha stubs',
'Category:Tachina',
'Category:Tachina stubs',
'Category:Tachinidae',
'Category:Tachinidae genera',
'Category:Tachinidae stubs',
'Category:Tachininae',
'Category:Tachininae stubs',
'Category:Tachiniscinae',
'Category:Tanypodinae',
'Category:Tephritidae',
'Category:Tephritidae genera',
'Category:Tephritidae stubs',
'Category:Tephritinae',
'Category:Tephritinae stubs',
'Category:Tephritoidea',
'Category:Tephritoidea genera',
'Category:Tephritoidea stubs',
'Category:Tetanops',
'Category:Thaumaleidae',
'Category:Therevidae',
'Category:Timia (fly)',
'Category:Tipulidae',
'Category:Tipulidae stubs',
'Category:Tipuloidea',
'Category:Tipuloidea genera',
'Category:Tipuloidea stubs',
'Category:Tipulomorpha',
'Category:Tipulomorpha genera',
'Category:Tipulomorpha stubs',
'Category:Toxorhynchites',
'Category:Tripteroides',
'Category:Trypeta',
'Category:Trypeta stubs',
'Category:Trypetinae',
'Category:Trypetinae stubs',
'Category:Ulidia',
'Category:Ulidiidae',
'Category:Ulidiidae stubs',
'Category:Ulidiinae',
'Category:Uranotaenia',
'Category:Urophora',
'Category:Urophora stubs',
'Category:Vermileonomorpha',
'Category:Xanthochlorinae',
'Category:Xylomyidae',
'Category:Xylophagidae',
'Category:Xylophagomorpha',
'Category:Xylophagomorpha stubs',
);
my @cats=keys %catmap;
my @iterators=(
{
Line 488 ⟶ 236:
my $set_empty_importance = 0;
sub copy_importance {
#return ($_[0]->WPBmax($_[2]))[1];
#return '';
}
 
# Banner configurations.
my $main_banner='WikiProject DipteraFilm';
my @preprocess_templates=();
my %banner_cfgs=(
'WikiProject DipteraFilm' => {
meta => 0,
canonicalize => 'WikiProject DipteraFilm',
},
'WikiProject Television' => {
meta => 0,
canonicalize => 'WikiProject Television',
},
);
 
# Extra parameters (e.g. workgroup).
my @bio_wg = (
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',
);
 
# Set this to merge these existing banners into $main_banner.
my @merge_banners=();
 
# Set this to tag WikiProject Biography workgroups in addition to the project's own banner.
my @bio_wg = (
);
 
Line 527 ⟶ 291:
 
sub approved {
return -1;
}
 
Line 605 ⟶ 369:
my ($outtxt,$nowiki)=$api->strip_nowiki($intxt);
 
my @params=()@extra_params;
 
my $assess = undef;
Line 643 ⟶ 407:
}
 
my $need_main_banner = ($api->WPBcheck($outtxt, $main_banner@main_banners) == 0);
if(0){
# grr, already redirected so the above always returns true
$need_main_banner=1;
$api->WPBcheck($outtxt, sub {
my $banner=shift;
my $name=shift;
$need_main_banner=0 if(grep $name eq $_, @main_banners);
return undef;
}, $main_banner@main_banners);
}
 
Line 661 ⟶ 425:
my $no_summary = 0;
 
# Special: Different default parent banner depending on source category.
if(@preprocess_templates){
$main_banner = $catmap{$iter->iterval};
 
if(@merge_banners){
(undef,$outtxt)=$api->WPBcheck($outtxt, sub {
my $banner=shift;
Line 676 ⟶ 443:
$need_main_banner=0;
return "{{$main_banner}}";
}, @preprocess_templatesmerge_banners);
if(ref($outtxt) eq 'HASH'){
$api->warn("Preprocessing $title failed: ".$outtxt->{'error'}."\n");
Line 746 ⟶ 513:
}
 
$outtxt=$api->WPBadd($outtxt,my $assess,@process_banners sub= {();
$api->WPBcheck( $outtxt, sub { mypush @process_banners, $banner=shift_[0]; #}, banner@main_banners );
@process_banners = ( $main_banner my) $name=shiftunless @process_banners; # name
for my $process_banner (@process_banners) my $oname=shift;{
my $paramsouttxt=shift;$api->WPBadd($outtxt, $assess, sub {
my $wikitextbanner=shift; # banner
my $newname=shift; # name
#return '' if my $newoname=shift;
my $params=shift;
my $wikitext=shift;
my $new=shift;
#return '' if $new;
 
return undef unless(grep $banner eq $_, @main_banners);
my %cfg=%{$banner_cfgs{$banner}};
 
my $any=0;
foreach my $p (@params){
next unless $p=~/^(.+?)=(.*)$/;
my ($k,$v)=($1,$2);
my $rekre=qr/\S.*?Q$k\E/;
unless if (grep defined(/^\s*\Q $k\E\s*=\s*extra_param_aliases{$re\s*$/,k} @$params) ) {
next if(grep(/^\s*\Q my $k\E\s*aliasre =\s*(?i:\Q$v\E)\s*$/s, @$params))extra_param_aliases{$k};
unshift @ $params,kre "$k=$v" unless(grep(sqr/^(\s*\Q$k\E\s*=\s*?)(?:\S.*?)?(\s*)$/kre|$1$v$2aliasre)/s, @$params));
$any=1 unless $v eq '';}
if($k eq 'class' && exists($cfg{'meta'}) &&my ($cfg{'stubauto'}re=qr/\S.*?/'')){;
my unless(grep(/^\s*$aakre\s*=\s*$re\s*$/, @$cfgparams)){'stubauto'};
$aa=~snext if(grep(/^\s*$kre\s*=.\s*(?i:\Q$v\E)\s*$//s, @$params));
pushunshift @$params, "$aak=inherit$v" unless(grep(s/^(\s*\Q$aa\Ekre\s*=\s*?)(?:\S.*?)?(\s*)$/$1inherit1$v$2/s, @$params));
$any=1 unless $v eq '';
if($k eq 'class' && exists($cfg{'meta'}) && ($cfg{'stubauto'}//'')){
my $aa=$cfg{'stubauto'};
$aa=~s/\s*=.*//;
push @$params, "$aa=inherit" unless(grep(s/^(\s*\Q$aa\E\s*=\s*?)(?:\S.*?)?(\s*)$/$1inherit$2/s, @$params));
}
}
}
if($new && $class && (grep /^class=/, @$params) && exists($cfg{'meta'}) && ($cfg{'stubauto'}//'')){
}
if($new && $class && (grep /^class=/, @$params) && exists($cfg{'meta'})my && ($aa=$cfg{'stubauto'}//'')){;
my $aa=$cfg{'stubauto'}~s/\s*=.*//;
push @$params, "$aa=~inherit" unless(grep(s/^(\s*\Q$aa\E\s*=\s*?)(?:\S.*?)?(\s*)$/$1inherit$2/s, @$params));
push @$params, "$aa=inherit" unless(grep(s/^(\s*\Q $aa\E\s*any=\s*?)(?:\S.*?)?(\s*)$/$1inherit$2/s, @$params))1;
$any=1;}
} return $wikitext unless $any;
return $wikitext unless $any;
 
if(defined($cfg{'canonicalize'})){
my $n=$cfg{'canonicalize'};
$oname=~s/_/ /g;
$oname=~s/^(\s*)\S(?:.*\S)?(\s*)$/$1$n$2/is;
}
my $out="{{$oname";
$out.="|".join("|", @$params) if @$params;
$out.="}}";
return $out;
}, $process_banner, @params);
if(ref($outtxt) eq 'HASH'){
$api->warn("Processing $title failed: ".$outtxt->{'error'}."\n");
next;
}
mypush @summary, $out="Tagging with {{$onameprocess_banner$taggingwith}}" unless $no_summary;
$out.="|".join("|", @$params) if @$params;
$out.="}}";
return $out;
}, $main_banner, @params);
if(ref($outtxt) eq 'HASH'){
$api->warn("Processing $title failed: ".$outtxt->{'error'}."\n");
next;
}
push @summary, "Tagging with {{$main_banner}}" unless $no_summary;
 
$outtxt=$api->replace_nowiki($outtxt, $nowiki);
Line 844 ⟶ 621:
return 600;
}
 
1;
 
</syntaxhighlight>