Content deleted Content added
Updating published sources: General: * Allow substitution of the data directory into the database store_dsn. WikiProjectWorker: * Done with WikiProject Video games tagging. |
Updating published sources: WikiProjectWorker: * Start run for WikiProject NATO AnomieBOT::API::Iterator * Add access to the arrayref value being used d::WikiProjectTagging: * Doc fixes |
||
Line 33:
### Request link, for edit summary.
my $req="[[User:AnomieBOT/req/
### 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 @iterators=(
{
list => '
'Category:Military facilities of NATO',
'Category:NATO installations by country',
'Category:NATO installations in Belgium',
'Category:NATO installations in Canada',
'Category:NATO installations in Germany',
'Category:NATO installations in Italy',
'Category:NATO installations in Turkey',
'Category:Enlargement of NATO',
'Category:NATO Secretaries General',
'Category:Military operations involving NATO',
'Category:NATO-led peacekeeping in the former Yugoslavia',
'Category:NATO operations in Afghanistan',
'Category:NATO military exercises',
'Category:Military units and formations of NATO',
'Category:NATO Standardisation Agreements',
'Category:NATO agencies',
'Category:NATO reporting names',
'Category:Military ranks of NATO',
'Category:NATO Supreme Allied Commanders',
'Category:NATO summits',
'Category:United States ambassadors to NATO',
],
cmnamespace => '0|1',
cmlimit => 'max',
},
);
Line 52 ⟶ 75:
### page to tag (or undef to skip).
sub filter {
$t="Talk:$t" if $_[0]->{'ns'} == 0;
return $t;
}
# Banner configurations.
my %banner_cfgs=(
'WikiProject
meta => 0,
stubauto =>
canonicalize => 'WikiProject
},
);
Line 80 ⟶ 105:
sub approved {
return
}
Line 102 ⟶ 127:
if(($api->store->{'configured'} // 0) < $seq){
### Initialize configuration here
}
# Spend a max of 5 minutes on this task before restarting
Line 183 ⟶ 177:
### PROCESSING ###
my @params=();
my $assess = undef;;
}
$assess=$api->WPBassess($title);
if(ref($assess) eq 'HASH'){
Line 244 ⟶ 195:
}
}
push @params, 'auto=yes' if ($assess // '') eq 'stub';
} else {
push @params, "class=$class";
}
$outtxt=$api->WPBadd($outtxt, $assess, sub {
}, 'WikiProject NATO',
if(ref($outtxt) eq 'HASH'){
$api->warn("Processing $title failed: ".$outtxt->{'error'}."\n");
Line 289 ⟶ 218:
}
my
my $
$api->warn("$summary in $title\n");
my $r=$api->edit($tok, $outtxt, $summary, 1, 1);
|