Jump to content

Module:User:AnomieBOT/LanguageCategoryCreator/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Anomie (talk | contribs) at 03:20, 3 May 2025 (Add doc). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(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

{{#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:.