Content deleted Content added
Updating published sources: TemplateReplacer5: * Completed. TemplateReplacer7: * Approved. WikiProjectTagger: * Approved. |
Updating published sources: SourceUploader: * Sort directory pages by last modified date. * Use <nowiki><syntaxhighlight></nowiki> instead of <nowiki><source></nowiki>. d::NoWiki: * Add support for <nowiki><syntaxhighlight></nowiki>. General: * Vario |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1:
{{ombox|type=content|style=border:1px solid #b22222|image=[[Image:Ambox warning pn.svg|40px]]|text= Due to breaking changes in AnomieBOT::API, this task will probably not run anymore. If you really must run it, try getting a version from before 2009-03-23.}}
{{ombox|type=notice|text= Approved 2008-11-25, Completed 2008-11-25<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 13]]}}
<
package tasks::TemplateReplacer7;
=pod
=for warning
Due to breaking changes in AnomieBOT::API, this task will probably not run
anymore. If you really must run it, try getting a version from before
2009-03-23.
=begin metadata
Bot: AnomieBOT
Task: TemplateReplacer7
BRFA: Wikipedia:Bots/Requests for approval/AnomieBOT 13
Status:
Created: 2008-11-25
Replace {{tlx|Fluid}} (and redirects) with {{tlx|physics|2=fluid-dynamics=yes}}
Line 37 ⟶ 44:
=for info
Approved 2008-11-25, Completed 2008-11-25<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 13]]
=cut
sub approved {
return -1;
}
Line 68 ⟶ 75:
foreach my $template (@templates){
$templates{"Template:$template"}=$tf{$template};
$res=$
list => 'backlinks',
bltitle => "Template:$template",
Line 79 ⟶ 86:
# Before starting, get the list of alternate names for our target
my %WPP=('Template:Physics'=>1);
$res=$
list => 'backlinks',
bltitle => 'Template:Physics',
Line 91 ⟶ 98:
# renumbering after the wikiproject banner is removed.
my %WPB=('Template:WikiProjectBanners'=>1,'Template:WikiProjectBannerShell'=>1);
$res=$
list => 'backlinks',
bltitle => 'Template:WikiProjectBanners',
Line 98 ⟶ 105:
);
$WPB{$_->{'title'}}=1 foreach (@{$res->{'query'}{'backlinks'}});
$res=$
list => 'backlinks',
bltitle => 'Template:WikiProjectBannerShell',
Line 247 ⟶ 254:
1;
</syntaxhighlight>
|