#Sorting category page numerically

34 messages · Page 1 of 1 (latest)

wet zodiac
#

I'm having issues trying to sort this page numerically. I don't really know if I'm missing any extensions, but reading the documentation just has me lost. Especially the LocalSettings.php part which is basically barring me from doing a lot of things.

#

this is for a longtime minecraft world that I decided to create a wiki for

jade wharf
#

You might want to make a ticket on Phorge about changing your collation to numeric or uca-default-u-kn

misty saffron
#

Dang Kocka beats me :(

jade wharf
misty saffron
#

but yeah, $wgCategoryCollation = numeric

ornate tundra
#

Or use the numbers as the sort key in the category. Would not require backend changes to collation (which affects the entire wiki).

wet zodiac
jade wharf
#

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

ornate tundra
wet zodiac
#

I think I'm still missing something

jade wharf
#

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

wet zodiac
#

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.

jade wharf
#

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

wet zodiac
#

dont mind the terrible place names, this is an older part of my minecraft world that was made in 2021

#

Progress has been made

jade wharf
#

Why'd you add the category the second time

#

And why in noinclude

wet zodiac
#

Oh yeah so I can start with 0 or 00

jade wharf
#

You also don't need the noinclude

wet zodiac
#

Alrighty I got rid of that

#

Currently working on adding the sorting to all the state highway pages