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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectWorker: * Complete!
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectWorker: * Begin run for WikiProject Thailand.
Line 33:
 
### Request link, for edit summary.
my $req="[[User:AnomieBOT/req/WikiProject Albemarle CountyThailand 1|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=1516;
 
### How to find the pages?
my @cats=(
'Category:Unassessed Albemarle County articles',
);
my @iterators=(
{
generator => 'categorymembersembeddedin',
gcmtitlegeititle => [@cats'Template:WikiProject Thai districts'],
gcmlimitgeilimit => 100,
},
);
Line 61 ⟶ 60:
### How to copy other projects' assessments
sub copy_class {
return ($_[0]->WPBmax($_[2], 'WikiProject Thailand'))[0];
#return '';
}
 
sub copy_importance {
return ($_[0]->WPBmax($_[2], 'WikiProject Thailand'))[1];
#return '';
}
 
# Banner configurations.
my $main_banner='WikiProject Albemarle CountyThailand';
my @preprocess_templates=('WikiProject Thai districts', 'WikiProject Thailand');
my %banner_cfgs=(
'WikiProject Albemarle CountyThailand' => {
meta => 1,
canonicalize => 'WikiProject Albemarle CountyThailand',
stubauto => undef,
},
);
Line 100 ⟶ 102:
 
sub approved {
return -1;
}
 
Line 230 ⟶ 232:
 
return undef if(grep $name eq $_, @main_banners);
 
push @params, 'districts=yes' if $oname eq 'WikiProject Thai districts';
push @merge, $oname;
 
return '' unless $need_main_banner;