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: T20596: parser function to detect if the current page is in a given category