MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=gadgets (ga)
- This module requires read rights.
- Lähde: Gadgets
- Lisenssi: GPL-2.0-or-later
Returns a list of gadgets used on this wiki.
Parametrit:
- gaprop
What gadget information to get:
- id
- Internal gadget ID.
- metadata
- The gadget metadata.
- desc
- Gadget description transformed into HTML (can be slow, use only if really needed).
- Values (separate with | or alternative): desc, id, metadata
- Default: id|metadata
- gacategories
Gadgets from what categories to retrieve.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- gaids
IDs of gadgets to retrieve.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- gaallowedonly
List only gadgets allowed to current user.
- Type: boolean (details)
- gaenabledonly
List only gadgets enabled by current user.
- Type: boolean (details)
esimerkkiä:
- Get a list of gadgets along with their descriptions
- api.php?action=query&list=gadgets&gaprop=id|desc [avaa hiekkalaatikossa]
- Get a list of gadgets with all possible properties
- api.php?action=query&list=gadgets&gaprop=id|metadata|desc [avaa hiekkalaatikossa]
- Get a list of gadgets belonging to category "foo"
- api.php?action=query&list=gadgets&gacategories=foo [avaa hiekkalaatikossa]
- Get information about gadgets "foo" and "bar"
- api.php?action=query&list=gadgets&gaids=foo|bar&gaprop=id|desc|metadata [avaa hiekkalaatikossa]
- Get a list of gadgets enabled by current user
- api.php?action=query&list=gadgets&gaenabledonly [avaa hiekkalaatikossa]