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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: EnDashRedirectCreator: * Supplemental BRFA approved!
AnomieBOT (talk | contribs)
Updating published sources: EnDashRedirectCreator: * Improve formatting of the created redirect.
Line 294:
 
$target .= '#' . $fragment if defined( $fragment );
my $tosection = defined( $fragment ) ? '"\n{{R to section}}'" : '';
my $double = $origtarget eq $target ? '' : "\n{{R avoided double redirect|1=$origtarget}}";
my $txt = "#REDIRECT [[:$target]]\n\n{{Redirect category shell|\n{{R from modification|1={{-r|$origtarget}}}}$double$tosection\n}}\n{{User:AnomieBOT/Auto-G8|target=$origtarget}}";
my $summary;
if ( exists( $tok->{'missing'} ) ) {