Pomoc MediaWiki API
To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API
list=gadgets (ga)
- Ten moduł wymaga praw odczytu.
Returns a list of gadgets used on this wiki.
Parametry:
- 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).
- Wartości (oddziel za pomocą |): id, metadata, desc
- Domyślnie: id|metadata
- gacategories
Gadgets from what categories to retrieve.
- Oddziel wartości za pomocą |. Maksymalna ilość wartości to 50 (500 dla botów).
- gaids
IDs of gadgets to retrieve.
- Oddziel wartości za pomocą |. Maksymalna ilość wartości to 50 (500 dla botów).
- gaallowedonly
List only gadgets allowed to current user.
- gaenabledonly
List only gadgets enabled by current user.
Przykłady:
- Get a list of gadgets along with their descriptions
- api.php?action=query&list=gadgets&gaprop=id|desc
- Get a list of gadgets with all possible properties
- api.php?action=query&list=gadgets&gaprop=id|metadata|desc
- Get a list of gadgets belonging to category "foo"
- api.php?action=query&list=gadgets&gacategories=foo
- Get information about gadgets "foo" and "bar"
- api.php?action=query&list=gadgets&gaids=foo|bar&gaprop=id|desc|metadata
- Get a list of gadgets enabled by current user
- api.php?action=query&list=gadgets&gaenabledonly