Page MenuHomePhabricator

Can bot Babel AutoCreate automatically categorize newly created categories?
Closed, DuplicatePublic

Description

On cswiki, bot Babel AutoCreate creates new categories automatically. But I have to categorize them into a category tree by my bot, with the following string:

[[Kategorie:Wikipedisté podle jazyka|{{subst:str right|{{subst:PAGENAME}}|5}}]]

Is it possible to add this functionality into Babel AutoCreate bot?

Event Timeline

In fact it is a maintenance script rather than a real bot. If there is a configuration variable feel free to ask for its change by changing this ticket into a site request, or if this is a feature request (there is no way how to to it currently), please write it somewhere :). Another way how to fulfil this request is to create a community bot which would monitor new categories created by Babel AutoCreate and categorize them as the community wish.

Maybe, but it should be tested somehow. BTW https://cs.wikipedia.org/wiki/MediaWiki:Babel-autocreate-text-levels is not the correct text inserted to newly created categories, compare with https://cs.wikipedia.org/wiki/Kategorie:User_zh-Hant.

Btw, I’ve tried to come up with some long-term solutions since we switched to Babel for all our userboxes, and mainly ran into additional problems with it.

Adding a template on this page doesn’t work, because 1) templates are getting substituted, 2) variables like {{PAGENAME}} don’t work with system messages that Babel uses when creating a category. If someone could fix at least some of these bugs, I think that you could fix the problems with its category creation quite easily via MediaWiki:Babel-autocreate-text-main and MediaWiki:Babel-autocreate-text-levels messages.

https://ru.wikipedia.org/wiki/Шаблон:Категория_Вавилона – template that I created for this
https://ru.wikipedia.org/?oldid=93182170 – unsuccessful variant with a template
https://ru.wikipedia.org/?diff=93342302&oldid=93320412 – demo of problematic Babel output