Content deleted Content added
Updating published sources: EnDashRedirectCreator: * Don't try to update non-redirects. * When updating redirects, preserve various templates. * When updating redirects, preserve manually added categories. * Update the disabled code for someday adding missing {{tlu|User:AnomieBOT/Auto-G8}} transclusions to prioritize new creations over those fixes. |
Updating published sources: EnDashRedirectCreator: * Handle "reason" parameter to {{tlu|User:AnomieBOT/Auto-G8}}. * Add some commented-out code for reacting to the urn link the new check in {{tlu|User:AnomieBOT/Auto-G8}} adds. |
||
Line 207:
AND (
p2.page_id IS NULL
-- TODO: BRFA for this too.
-- OR EXISTS( SELECT 1 FROM externallinks WHERE el_from = p2.page_id AND el_to_domain_index = 'urn:.' and el_to_path = 'x-anomiebot-auto-g8-mismatch:endash' )
OR (
r2.rd_namespace != COALESCE( r1.rd_namespace, p1.page_namespace )
Line 324 ⟶ 326:
my $txt = $tok->{'revisions'}[0]{'slots'}{'main'}{'*'};
if ( $txt =~ m!\{\{User:AnomieBOT/Auto-G8\|(?:[^{}|]*\|)?target=(.*?)\}\}! && $1 ne $origtarget ) {
my $oldtarget = $1;
my $tmp = $oldtarget;
Line 426 ⟶ 428:
$rextra = "\n{{R from ASCII-only}}$rextra" if $redir =~ /^[ -~]+$/;
$rextra = "\n{{R avoided double redirect|1=$origtarget}}$rextra" if $origtarget ne $target;
my $txt = "#REDIRECT [[:$target]]\n\n${extrabefore}{{Redirect category shell|\n{{R from alternative hyphenation|1={{-r|1=$origtarget}}}}$rextra\n}}\n{{User:AnomieBOT/Auto-G8|endash|target=$origtarget}}$extra";
my $summary;
if ( exists( $tok->{'missing'} ) ) {
|