Jump to content

Module:User:AnomieBOT/LanguageCategoryCreator/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Pppery (talk | contribs) at 00:20, 10 May 2025 (Since the protection isn't due to being a high-risk template standard prot propogation logic doesn't apply here). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This module is used by AnomieBOT's LanguageCategoryCreator task as on-wiki configuration of categories to create and the wikitext for those categories, and to validate categories before creating them based on other module data.

It likely has no on-wiki transclusions, since the bot uses it via the action API action=parse.

Usage

[edit]

{{#invoke:User:AnomieBOT/LanguageCategoryCreator|list_cat_likes}}

Returns SQL LIKE patterns for categories that may need creating, one per line.

{{#invoke:User:AnomieBOT/LanguageCategoryCreator|generate_cat_wikitext|cat=title}}

Returns the wikitext to use when creating the named category. title is the category name, without the Category: prefix, using spaces rather than underscores. If the category is invalid, returns an error message prefixed with ERROR:.