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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: OrphanReferenceFixer: * Stupid bug screwed up <nowiki>{{#tag:ref}}</nowiki> refs. WikiProjectWorker: * Done! WikiProjectTagger: * Add a log message for when the bot thinks it's done, so I can easily check the log to determ
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectWorker: * Forgot to merge banners on non-mainspace talk pages. Oops!
Line 48:
{
generator => 'embeddedin',
geititle => ['Template:SFBAProject','Template:WikiProject Los Angeles'],
geinamespace => 1,
geifilterredir => 'nonredirects',
geilimit => '100',
Line 56 ⟶ 55:
cllimit => 'max',
tllimit => 'max',
},
{
generator => 'categorymembers',
gcmtitle => \@cats,
gcmnamespace => '0|1',
gcmlimit => '100',
prop => 'categories|templates',
clcategories => 'Category:Unincorporated communities in California|Category:Ghost towns in California|Category:California ranchos',
cllimit => 'max',
tllimit => 'max',
},
);
Line 74 ⟶ 63:
return undef if $_[0]->{'redirect'};
$_[0]->{'title'}='Talk:'.$_[0]->{'title'} if $_[0]->{'ns'}==0;
$_[0]->{'title'}=~s/^([^:]*):/$1 talk:/ if($_[0]->{'ns'}!=0 && ($_[0]->{'ns'}&1)==0);
return $_[0]->{'title'};
}
Line 88 ⟶ 78:
# Banner configurations.
my $main_banner='WikiProject California';
my @preprocess_templates=('SFBAProject','WikiProject Los Angeles');
my %banner_cfgs=(
'WikiProject California' => {
Line 114 ⟶ 104:
 
sub approved {
return -1;
}
 
Line 249 ⟶ 239:
push @merge, $banner;
push @params, 'sfba=yes', defined($imp)?"sfba-importance=$imp":() if $banner eq 'SFBAProject';
push @params, 'la=yes', defined($imp)?"la-importance=$imp":() if $banner eq 'WikiProject Los Angeles';
 
return '' unless $need_main_banner;