Content deleted Content added
Updating published sources: EnDashRedirectCreator: * Supplemental BRFA to update old redirects as needed. |
Updating published sources: EnDashRedirectCreator: * Supplemental BRFA approved! |
||
Line 1:
{{ombox|type=notice|text= Approved 2016-03-08<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 74]]}}
{{ombox|type=notice|text= Supplemental BFRA
<syntaxhighlight lang="perl">
package tasks::EnDashRedirectCreator;
Line 13:
Status: Approved 2016-03-08
+BRFA: Wikipedia:Bots/Requests for approval/AnomieBOT 80
+Status:
Created: 2016-03-03
Create redirects for articles with titles containing en-dashes from the
corresponding title with ASCII hyphens. Update these redirects later as
targets change.
=end metadata
Line 31 ⟶ 32:
use vars qw/@ISA/;
@ISA=qw/AnomieBOT::Task/;
my @skipNs = (
Line 84 ⟶ 83:
=for info
Supplemental BFRA
=cut
Line 147 ⟶ 146:
AND (
p2.page_id IS NULL
OR (
r2.rd_namespace != COALESCE( r1.rd_namespace, p1.page_namespace )
Line 153 ⟶ 151:
OR r2.rd_fragment != r1.rd_fragment
) AND EXISTS( SELECT 1 FROM revision WHERE rev_page = p2.page_id AND rev_actor IN ($actorIds) AND rev_parent_id = 0 )
)
$cont
Line 239 ⟶ 236:
}
if ( !exists( $tok->{'missing'} ) ) {
my $res = $api->query(
titles => $redir,
|