Content deleted Content added
Updating published sources: WikiProjectWorker: * Stopping task, seems like it may be done anyway. |
Updating published sources: WikiProjectWorker: * Start task for WikiProject Albemarle County. d::WikiProjectTagging: * {{tl|WPBiography}} â {{tl|WikiProject Biography}}. |
||
Line 33:
### Request link, for edit summary.
my $req="[[User:AnomieBOT/req/WikiProject
### 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=
### How to find the pages?
my @cats=(
'Category:Unassessed Albemarle County articles',
);
my @iterators=(
{
generator
},
);
Line 61:
### How to copy other projects' assessments
sub copy_class {
}
sub copy_importance {
}
# Banner configurations.
my $main_banner='WikiProject
my @preprocess_templates=();
my %banner_cfgs=(
'WikiProject
meta => 1,
canonicalize => 'WikiProject Albemarle County',
},
);
Line 101 ⟶ 100:
sub approved {
return
}
Line 263 ⟶ 262:
}
return 60;▼
}▼
$page=(values %{$page->{'query'}{'pages'}})[0];
}
Line 283 ⟶ 275:
return undef unless(grep $banner eq $_, @main_banners);
my %cfg=%{$banner_cfgs{$banner}};
return '';▼
foreach my $p (@params){
next unless $p=~/^(.+?)=(.*)$/;
my ($k,$v)=($1,$2);
unless(grep(/^\s*\Q$k\E\s*=\s*$re\s*$/, @$params)){
next if(grep(/^\s*\Q$k\E\s*=\s*\Q$v\E\s*$/s, @$params));
unshift @$params, "$k=$v" unless(grep(s/^(\s*\Q$k\E\s*=\s*?)(?:\S.*?)?(\s*)$/$1$v$2/s, @$params)
}
}
return $wikitext unless $any;
if(defined($cfg{'canonicalize'})){
my $n=$cfg{'canonicalize'};
$oname=~s/^(\s*)\S(?:.*\S)?(\s*)$/$1$n$2/is;
▲ }
my $out="{{$oname";
$out.="|".join("|", @$params) if @$params;
$out.="}}";
return $out;
}, $main_banner, @params);
|