Page MenuHomePhabricator

Add support for getting category members using Lua
Closed, DuplicatePublic

Description

Please add support for getting category members using Lua.

Event Timeline

Mjbmr raised the priority of this task from to High.
Mjbmr updated the task description. (Show Details)
Mjbmr subscribed.
Mjbmr set Security to None.
Mjbmr removed a subscriber: Aklapper.
Jackmcbarn lowered the priority of this task from High to Lowest.Feb 22 2015, 1:37 AM
Jackmcbarn subscribed.

I don't see this happening, since (most) categorization happens after the part of the preprocess that Scribunto runs in, so you'd end up with paradoxes and the awkward inability to use the feature on the current page.

Once upon a time I did this (as an extension) for normal parser functions (E:PageInCat), it involved lots of hacky stuff with saved state, that the parsoid people would not approve of.

https://www.mediawiki.org/wiki/Extension:DynamicPageList_%28Wikimedia%29

is only installed for small wikis and it's not customizable and I tried to fix a known very bad annoying issue which got me into a rollback fight with local admin,

here patches:

https://gerrit.wikimedia.org/r/186762
https://gerrit.wikimedia.org/r/186817

(I didn't know how to submit patches using same id at the first time)

and here is the task: T88396

you @Bawolff ignored all of that.

I fail to really see how this is relavent here...

If you submit with same change-id line in commit message it will replace the old one.

Both patches are marked abandoned, so... they're not going to be looked at because of that. The first one I didn't ignore, the second one was submitted while I was taking a wiki break so I didn't see, and its now abandoned (not to mention, I'm just lazy when it comes to code review) but there are obvious SQL syntax errors in it that means it wouldn't of work if you tested it... (Or at least, it should not. c1.page_id won't work when c1 refers to the categorylinks table)


That said, I think i misunderstood you originally. I thought you were asking for what categories a specific page belongs to, where now I think you want to expose to lua what all the members of a category are, given a name of the category.