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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: LanguageCategoryCreator: * Move some logic to a module stored on-wiki. Easier to write the validation on-wiki in Lua where all of the source data is more directly accessible. * Add error reporting link in edit summaries.
AnomieBOT (talk | contribs)
Updating published sources: LanguageCategoryCreator: * Approved!
 
(4 intermediate revisions by the same user not shown)
Line 1:
{{ombox|type=notice|text= ApprovalBRFA requestedapproved 2025-05-31.<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 84]]}}
<syntaxhighlight lang="perl">
package tasks::LanguageCategoryCreator;
Line 10:
Task: LanguageCategoryCreator
BRFA: Wikipedia:Bots/Requests for approval/AnomieBOT 84
Status: BRFAApproved 2025-05-31
Created: 2025-04-10
 
Create needed categories underfor [[:Category:Wikipedialanguage maintenancetemplates categoriessuch sortedas by month]] and [[:Category:Wikipedia categories sorted by month]]{{tl|lang}}.
 
=end metadata
Line 42:
 
=for info
ApprovalBRFA requestedapproved 2025-05-31.<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 84]]
 
=cut
 
sub approved {
return 02;
}
 
Line 73:
title => 'User:AnomieBOT',
text => '{{subst:#invoke:User:AnomieBOT/LanguageCategoryCreator|list_cat_likes}}',
prop => 'wikitext',
onlypst => 1,
formatversion => 2,
Line 175 ⟶ 174:
title => 'User:AnomieBOT',
text => "{{subst:#invoke:User:AnomieBOT/LanguageCategoryCreator|generate_cat_wikitext|cat=$title}}",
prop => 'wikitext',
onlypst => 1,
formatversion => 2,