Content deleted Content added
Changed from invalid mbox "type=custom", to red "type=delete", since it got reported into the mbox error log. No change in appearance. |
Updating published sources: General: * Update for the addition of 'rvslots'. DatedCategoryDeleterTest: * Disable. It's clear that task won't be needed. BrokenRedirectDeleter: * Handle pages with newlines before the <code>#REDIRECT</code>. |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1:
{{ombox|type=content|
{{ombox|type=content|style=border:1px solid #b22222|image=[[Image:Ambox warning pn.svg|40px]]|text= Not approved.}}
▲| text = Credit to [[User:SoxBot IV/Source|SoxBot IV]] for a bit of inspiration on the code.
▲<source lang="perl">
package tasks::SandboxCleaner;
Line 17 ⟶ 8:
=begin metadata
Bot: AnomieBOT
Task: SandboxCleaner
BRFA: None
Status: On hold
Created: 2008-08-30
Clears a sandbox page to predefined content once every 12 hours (at or shortly
Line 105 ⟶ 97:
sub approved {
return
}
Line 193 ⟶ 185:
next;
}
my $intxt=$tok->{'revisions'}[0]{'slots'}{'main'}{'*'};
# Generate new page content
Line 239 ⟶ 231:
1;
</syntaxhighlight>
|