MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
list=allgroups (ag)
- This module requires read rights.
- Source: OOJSPlus
- License: GPL-3.0-only
Lists all groups declared on wiki
Parameters:
- agprefix
Prefix search term
- agcontains
Search for all user groups that contain this value.
- agdir
Sorting direction
- One of the following values: ascending, descending
- Default: ascending
- agprop
Properties to retrieve
- displaytext
- Displaytext of the group
- Values (separate with | or alternative): displaytext
Example:
- List groups starting with "s"
- api.php?action=query&list=allgroups&agprefix=s [open in sandbox]