Page MenuHomePhabricator

Scribunto/Lua should have a built-in method for retrieving categories used on a page
Open, LowPublic

Description

It would be helpful to have a built-in method in Scribunto/Lua that allows retrieving a list of the categories used on a page.

For example, https://en.wikipedia.org/wiki/Einar_Schleef would return a list that includes:

  • German dramatists and playwrights
  • 1944 births
  • 2001 deaths

As these categories are included on this page.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=18596

Details

Reference
bz48175

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:44 AM
bzimport set Reference to bz48175.
bzimport added a subscriber: Unknown Object (MLST).
MZMcBride created this task.May 6 2013, 7:18 PM

I'd just like to make the explicit suggestion that the categories be exposed be on title objects (see http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Title_objects ) as they contain other information about a given page.

*** Bug 59111 has been marked as a duplicate of this bug. ***

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 18 2015, 7:31 PM