Page MenuHomePhabricator

User categories creation should be able to use templates
Open, Needs TriagePublic

Description

When babel creates a new user category using MediaWiki:Babel-autocreate-text-levels and MediaWiki:Babel-autocreate-text-main, it interprets the content of the page. It means that if a template is used for these categories (as on WP:FR), we cannot make babel generate the pages with the template as this one is transcluded. We tried on WP:FR (see this message) to use the template, and got this behavior instead of that one.

As suggested by an administrator on this page, this has to do with the function BabelAutoCreate::create(), which should use ->plain() instead of ->text().
I'm not familiar with the WM extensions code, so I wouldn't know if this is the correct action to take. However, using templates is a basic action of wikipedia, and babel should support it.

I found the T168610 task in which the same issue is reported.

Thanks, Epok.

Event Timeline

Epok created this task.Dec 11 2018, 9:37 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 11 2018, 9:37 AM
Epok updated the task description. (Show Details)Dec 11 2018, 9:40 AM
Epok updated the task description. (Show Details)
Epok updated the task description. (Show Details)Dec 11 2018, 9:42 AM
Epok updated the task description. (Show Details)Jan 24 2019, 8:17 PM