Page MenuHomePhabricator

Sort by skill level in babel language category
Closed, ResolvedPublic

Description

Although the extension takes care of the creation of them, some might prefer to have a single category per language rather than a bunch of categories which clutter the wiki and are hard to navigate.
In this case, users should be sorted by reversed language level so that native speakers are listed first and so on, as in Meta (more ideas on [[m:Template talk:User language category]]).

Details

Reference
bz31311

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:52 PM
bzimport set Reference to bz31311.
bzimport added a subscriber: Unknown Object (MLST).

If we could set the categories through a MediaWiki message (like "[[Category:User $1-$2|{{PAGENAME}}]]"), they could easily be customized for whatever system each community desires.

(In reply to comment #1)

If we could set the categories through a MediaWiki message (like
"[[Category:User $1-$2|{{PAGENAME}}]]"), they could easily be customized for
whatever system each community desires.

But this creates problems with autocreation and is WONTFIX'ed by bug 31074 comment 2. Is such a flexibility really needed?

(In reply to comment #2)

But this creates problems with autocreation and is WONTFIX'ed by bug 31074
comment 2. Is such a flexibility really needed?

It's preferred: Meta has an existing category structure which works well for the translation community. Making the category format configurable is of fairly generic use, instead of hardcoding Meta's format.

Could an equivalent message be put into LocalSettings? Something like $wgBabelCategoryNameFormat (default null?) would provide the same flexibility, while still ensuring that only sysadmins can trigger the autocreation.

Alternatively, don't trigger an autocreation when the MediaWiki: page changes.

(In reply to comment #3)

It's preferred: Meta has an existing category structure which works well for
the translation community. Making the category format configurable is of fairly
generic use, instead of hardcoding Meta's format.

I'm such a Meta fan that I assume few wikis can have invented a better system. :-p But seriously, how many category systems can one possibly invent for such levels? Either all levels are in one category or each level has it's own category, I don't think one would want to put odd levels in one category and even ones in another, and so on.

Could an equivalent message be put into LocalSettings? Something like
$wgBabelCategoryNameFormat (default null?) would provide the same flexibility,
while still ensuring that only sysadmins can trigger the autocreation.

Yes, this seems a solution. I'd say to the developers: just do what's easier for you.

robert wrote:

$wgBabelCategoryNames = array(
'1' => false,
'2' => false,
'3' => false,
'4' => false,
'5' => false',
'N' => false
);

$wgBabelMainCategory = 'User %code%';

Job done.

Did you read comment 0? Even disregarding the fact that with the configuration the result on Meta is that no category at all is used (https://meta.wikimedia.org/?oldid=2918169 ), the reverse order is needed if one actually wants to use a single category.

Nikerabbit removed a subscriber: wikibugs-l-list.
Nikerabbit subscribed.

Configuration exists, but no sorting. Should the scope be clarified?

Should the scope be clarified?

What part is unclear?

If the scope is the title of the bug, then this task is resolved.

Nemo_bis renamed this task from Add configuration to use a single category per language to Add configuration to correctly use a single category per language.Sep 29 2016, 9:29 AM

Fixed

Nikerabbit renamed this task from Add configuration to correctly use a single category per language to Sort by skill level in babel language category.Sep 29 2016, 12:50 PM
Iniquity assigned this task to siebrand.
Iniquity reassigned this task from siebrand to Nikerabbit.