Extension talk:PageTools

About this board

New feature: List of categories?

2
Lars Juergenson (talkcontribs)

Hi,

I would find it very convenient if PageTools also provided a parser function that returns a list of all the titles of the categories the current page belongs to (separated by some separator). This would be very useful for passing to functions from extensions that can consume such lists (like Semantic MediaWiki) and for looping over (with the loop extension).

I am happy to submit a patch for this, but I first wanted to ask if such a patch would be considered.

Essentially the idea would be this:

On a page that is in Category:foo, Category:Bar and Category:baz, a call like {{#pagecatories:}} returns foo;Bar;baz.

The separator should be configurable, of course, so {{#pagecatories:/}} should return foo/Bar/baz.

(I hope this is the right place to pose this question ... there isn't a dedicated issue queue for this extension, is there?)

F.trott (talkcontribs)

No problem with that. Go right ahead.

Reply to "New feature: List of categories?"
There are no older topics