#Sorting category page numerically
34 messages · Page 1 of 1 (latest)
this is for a longtime minecraft world that I decided to create a wiki for
https://www.mediawiki.org/wiki/Help:Categories
https://www.mediawiki.org/wiki/Manual:$wgCategoryCollation
https://www.unicode.org/reports/tr10/#Customization
this is the documentation I've been trying to follow, but I don't even know where to begin
You might want to make a ticket on Phorge about changing your collation to numeric or uca-default-u-kn
Dang Kocka beats me :(
Or if you want make a pull request to change it yourself https://github.com/miraheze/mw-config/blob/255b88525c6b3236c008d6654859aa1ecccfa747/LocalSettings.php#L476-L486
but yeah, $wgCategoryCollation = numeric
Or use the numbers as the sort key in the category. Would not require backend changes to collation (which affects the entire wiki).
I just threw numeric in there as a placeholder because my endgoal is to get it to sort by numeric values
Yeah I know and the numeric collation is the right collation that can help you there
But if you don't want to bother with a Phorge ticket or a pull request you can also go and set your sortkey on all these pages
{{DEFAULTSORT:Indiana State Route 025}} will get the page Indiana State Route 25 to sort correctly
See https://meta.miraheze.org/wiki/Category%3AMiraheze_Monthly_issues as an example
I think I'm still missing something
DEFAULTSORT goes onto the individual articles, not on the category itself
And you might want to use the source editor
VisualEditor can do it too but it's hidden somewhere under the settings menu
Ok, I added this to the Indiana State Route 25 page
But I'm still getting this, there's gotta be something insanely simple that I'm messing up at this point.
I don't really have access to the LocalSettings.php thing that I see on almost every page. I think thats whats killing me.
The two sortkeys that you've set are cancelling each other
You set the default one to have 025, and then cancelled that by setting the category-specific one to have 25 instead
Use either one or the other
I gave you DEFAULTSORT as an example because it applies to all categories on the page, but if you only have one category then it doesn't matter which approach you take
Yeah the state routes only fall under a single category at the moment.
dont mind the terrible place names, this is an older part of my minecraft world that was made in 2021
Progress has been made
Ahh I see what u mean. Yeah I just copy and pasted the bottom line. I can just include it in the category line without making another.
Oh yeah so I can start with 0 or 00
You also don't need the noinclude