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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: DeletionSortingCleaner: * Supplemental BRFA for removing deleted XfD listings: Wikipedia:Bots/Requests for approval/AnomieBOT 85
AnomieBOT (talk | contribs)
Updating published sources: DeletionSortingCleaner: * Supplemental BRFA approved!
 
(2 intermediate revisions by the same user not shown)
Line 1:
{{ombox|type=notice|text= Approved 2010-07-06<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 40]]}}
{{ombox|type=notice|text= Supplemental BFRA approved 2020-06-06<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 79]]}}
{{ombox|type=notice|text= Supplemental BFRA approval requestedapproved 2025-08-2022<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 85]]}}
<syntaxhighlight lang="perl">
package tasks::DeletionSortingCleaner;
Line 16:
+Status: Approved 2020-06-06
+BRFA: Wikipedia:Bots/Requests for approval/AnomieBOT 85
+Status: BRFAApproved 2025-08-22
Created: 2010-06-18
 
Line 23:
* Archive discussions for closed XfDs
* Remove duplicate XfD listings
* [pending approval] Remove deleted XfD listings
 
If necessary, the bot may be kept off a deletion sorting subpage by adding
Line 61:
 
=for info
Supplemental BFRA approval requestedapproved 2025-08-2022<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 85]]
 
=cut
Line 74:
 
$api->task('DeletionSortingCleaner', 0, 10, qw/d::Talk d::Templates d::Redirects/);
 
# Temporary.
my $BRFA85 = 0;
 
# Get all redirects to templates we need to subst in XfD pages
Line 278 ⟶ 275:
 
# Deleted since it was listed, so remove from page.
if ( ! $BRFA85 ) {
$api->warn("XfD page $name linked from $page does not exist, deleted at $log->{'timestamp'}\n");
return undef;
}
$deleted=1;
push @summary, "[[$name]] (was deleted)";