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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: EnDashRedirectCreator: * Don't bother trying to create redirects for editnotices, since the bot account used can't create them anyway.
AnomieBOT (talk | contribs)
Updating published sources: EnDashRedirectCreator: * Apply {{tlu|User:AnomieBOT/Auto-G8}} to created redirects.
Line 221:
}
 
my $txt = "#REDIRECT [[:$target]]\n{{Redirect shell|{{R from modification|p1={{-r|$origtarget}}}}}}\n{{User:AnomieBOT/Auto-G8|target=$origtarget}}";
my $summary="Redirecting to [[:$origtarget]] because titles with en-dashes are hard to type";
$summary.=" (and resolving the double redirect to [[:$target]])" if $origtarget ne $target;