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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: TFATitleSubpageCreator: * Handle simple linktrail.
AnomieBOT (talk | contribs)
Updating published sources: TFATitleSubpageCreator: * Allow for bolding being inside the piped part of the link, rather than around the whole link.
Line 77:
my $template="Template:TFA title/$date";
 
unless(
unless( $_->{'revisions'}[0]{'*'}=~/'''\s*\[\[\s*([^|\]]+?)\s*(?:\|[^]]+)?\]\][a-z]*\s*'''/ || $_->{'revisions'}[0]{'*'}=~m!<b>\s*\[\[\s*([^|\]]+?)\s*(?:\|[^]]+)?\]\]\s*</b>!){ ||
$_->{'revisions'}[0]{'*'}=~/\[\[\s*([^|\]]+?)\s*\|\s*'''[^]]+'''\s*\]\]/ || $_->{'revisions'}[0]{'*'}=~m!\[\[\s*([^|\]]+?)\s*\|\s*<b>[^]]+</b>\s*\]\]!
){
$api->warn("No FA link in $title?\n");
warn $_->{'revisions'}[0]{'*'};