https://bugzilla.wikimedia.org/show_bug.cgi?id=46291
Web browser: ---
Bug ID: 46291
Summary: SelectCategory is overriding the Mediawiki
{{DEFAULTSORT}} magic word
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: SelectCategory
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
Hi,
First sorry if I'm wrong because I'm not a real techie guy and as you will
notice my English is not perfect.
I'm using an older version of this extension but I had a look at the current
code and it seems that this is still the same.
The {{DEFAULTSORT}} magic word (which can be used to change the default sort
key of a category (ex: "Ete" instead of "Été")) is being overridden by the
extension.
The problem seems to be this line:
$default_sortkey = "|{{PAGENAME}}";
As far as I understand, this line forces the sort key to be equal to the page's
title and makes it impossible to set a custom sortkey. This is really a big
issue especially on non English-language wikis that use accented and other
special characters.
Moreover I don't understand why you're manually adding this sortkey. If no
sortkey is being set (ex: "[[Category:Examplename]]" instead of
"[[Category:Examplename|Examplename]]"), the name of the category
("Examplename") will be used by default, won't it? I thought this was already a
default feature of Mediawiki. Am I wrong?
Reference about the magic word:
http://www.mediawiki.org/wiki/Help:Magic_words#Technical_metadata (look for
"DEFAULTSORT")
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l