User "Bawolff" posted a comment on MediaWiki.r90760.
Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90760#c18736
Commit summary:
New extension: CategorySortHeaders, to make custom headers instead of just the
first character of sortkey
depends on r90759
Comment:
>You mention that 1.17 is the oldest supported, even though you just committed
>a change in trunk?
Yeah, I'm planning to change that next commit. I thought I could already do
this in 1.17, but found out I couldn't when MediaWiki started throwing
exceptions at me. I also have to change CustomHeaderCollation::getFirstLetter.
At the time I thought it worked on the encoded cl_sortkey field, but actually
it works on the human-readable field (the function still works by coincidence
though)
>It would be nice to use some char which is not allowed in the titles... but of
>course the parser doesn't support it. Maybe with a magic word?
Yes, I used <code>^</code> because its so rarely used. I also considered using
some obscure unicode character, but thought that'd be more trouble then it was
worth since it'd be hard to type. The magic word idea might be cool, something
similar to #defaultsort. Could have {{#catheader:header|sortkey}} and then
converts that to a sortkey with the parts separated by control characters. This
extension was originally inspired by the patch at
[[Help_talk:Categories#Sort_by_more_than_one_character]] where they use
parenthesis, but I think those are much too common a character.
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview