Last modified: 2014-04-18 03:06:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61111, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59111 - Support categories on title objects
Support categories on title objects
Status: RESOLVED DUPLICATE of bug 48175
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-30 00:23 UTC by Brett Zamir
Modified: 2014-04-18 03:06 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brett Zamir 2013-12-30 00:23:40 UTC
I see per http://www.mediawiki.org/wiki/Extension_talk:Scribunto/Lua_reference_manual#Access_to_MediaWiki_API.3B_access_to_page_text that you don't want to expose the full MW API to Scribunto, but I was wondering whether it wouldn't be too expensive to allow title objects to have a means of accessing the categories for a given page.

I know one could hack something together to check for "[[Category:" within page content but it would be ugly if trying to deal with nowiki blocks, etc. As I recall you may have categories added to their own table anyways, so I thought I would ask about this.

(Since multiple categories are possible, I presume the ideal result form would be a table of category names, perhaps without the "Category:" prefix.)
Comment 1 db [inactive,noenotif] 2014-01-12 10:18:00 UTC
javascript already has this [mw.config.get('wgCategories')], so there should not be a big problem to add this for lua, too.
Comment 2 Liangent 2014-04-18 02:41:01 UTC
Dupe of bug 48175 ?
Comment 3 Brett Zamir 2014-04-18 03:06:20 UTC

*** This bug has been marked as a duplicate of bug 48175 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links