Topic on Extension talk:CategoryTree

Flatten output to text

3
Summary by Tacsipacsi

Not possible using CategoryTree. Scribunto may be a solution one day, see phab:T199126.

Jrkenti (talkcontribs)

I have a category that incudes many pages like "abc-345", "abc-346", "abc-348", "abc-349", "abc-350"... I am interested in getting the alphabetically last one, so I can know what the next one should be called (abc-351). I thought I could just take the right-most 3 characters of the catagorytree output, but I cannot use the output like it is a string. I have tried wrapping it in several different templates, but it seems the catagorytree-execution is always last, regardless of its nested-ness. Does anyone have a nice solution to this problem? Any solution would be greatly appreciated.

Tacsipacsi (talkcontribs)

It’s not possible using CategoryTree, parser tags are not supposed to be further processed. It may be available one day using Scribunto (phab:T199126), but currently you can’t do it on Wikimedia wikis, and I don’t know about extensions installable on other wikis that would enable it, either.

Jrkenti (talkcontribs)

thanks, this is disappointing, but it is nice to have an answer.