API:CodexIcons
![]() | This page is part of the MediaWiki Action API documentation. |
MediaWiki version: | ≥ 1.44 |
GET request to retrieve Codex icons, in JSON form, for use in user scripts.
Gadgets do not need to use this API. They should instead bundle the icons directly in the module (see codexIcons
option in gadget definition syntax).
Full list of available icon names can be seen at https://mediawiki.org/w/resources/lib/codex-icons/codex-icons.json. This API module returns the same data as the JSON file, but allows selective retrieval of icons.
API documentation
![]() | The following documentation is the output of Special: |
list=codexicons
- This module requires read rights.
- Source: MediaWiki
- License: GPL-2.0-or-later
Get Codex icons
Specific parameter:
Other general parameters are available.
- names
Names of icons
- This parameter is required.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
Example:
- Get icons for cdxIconInfo and cdxIconTrash
- api.php?action=query&list=codexicons&names=cdxIconInfo|cdxIconTrash [open in sandbox]