I'd like to change the sorting of the core special pages on Special:Specialpages and found https://www.mediawiki.org/w/index.php?title=Manual:$wgSpecialPageGroups&... That is basically what I'm looking for, and since I'm working on upgradinge to MW 1.25, everything is fine for now.
But how would I do that in MW 1.26? SpecialPage::getGroupName does not help me at all; in fact, searching for it redirects to Manual:$wgSpecialPageGroups. :/ Manual:Special_pages only teaches me how to use it when constructing my own special page, but I'd like to be able to change the sorting via localsetting.php. Am I missing something?
Looking at the code I figured out how to do it: For "special:name", create the page "MediaWiki:Specialpages-specialpagegroup-name". The text of this message is considered to be the group name under which special:name is filed at special:specialpages. And if you want to create the new group "mygroup", create a "MediaWiki:Specialpages-specialpagegroup-"-page with content "mygroup". You can then define the name of this group in "MediaWiki:Specialpages-group-mygroup".
Now, while this works perfectly and is certainly nice to have, it is kind of cumbersome if you want to customize a lot of groups. It would be more convenient if you could define this stuff in the localsettings.
Am 04.09.2015 um 13:47 schrieb Stip:
I'd like to change the sorting of the core special pages on Special:Specialpages and found https://www.mediawiki.org/w/index.php?title=Manual:$wgSpecialPageGroups&... That is basically what I'm looking for, and since I'm working on upgradinge to MW 1.25, everything is fine for now.
But how would I do that in MW 1.26? SpecialPage::getGroupName does not help me at all; in fact, searching for it redirects to Manual:$wgSpecialPageGroups. :/ Manual:Special_pages only teaches me how to use it when constructing my own special page, but I'd like to be able to change the sorting via localsetting.php. Am I missing something?
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 04/09/15 17:25, Stip wrote:
Looking at the code I figured out how to do it: For "special:name", create the page "MediaWiki:Specialpages-specialpagegroup-name". The text of this message is considered to be the group name under which special:name is filed at special:specialpages. And if you want to create the new group "mygroup", create a "MediaWiki:Specialpages-specialpagegroup-"-page with content "mygroup". You can then define the name of this group in "MediaWiki:Specialpages-group-mygroup".
Now, while this works perfectly and is certainly nice to have, it is kind of cumbersome if you want to customize a lot of groups. It would be more convenient if you could define this stuff in the localsettings.
Doing it in LocalSettings you wouldn't be able to show a different group name per language.
Of course, you can also add those messages into a message file, which would be quite similar to a LocalSettings customization.
mediawiki-l@lists.wikimedia.org