MediaWiki API súgó

Ez egy automatikusan generált MediaWiki API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/API

list=gadgets (ga)

(main | query | gadgets)
  • Ez a modul olvasási jogot igényel.
  • Forrás: Gadgets
  • Licenc: GPL-2.0+

Returns a list of gadgets used on this wiki.

Paraméterek:
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).
Értékek (elválasztó: |): id, metadata, desc
Default: id|metadata
gacategories

Gadgets from what categories to retrieve.

Separate values with |. Maximum number of values is 50 (500 for bots).
gaids

IDs of gadgets to retrieve.

Separate values with |. Maximum number of values is 50 (500 for bots).
gaallowedonly

List only gadgets allowed to current user.

Típus: logikai (részletek)
gaenabledonly

List only gadgets enabled by current user.

Típus: logikai (részletek)
Examples:
Get a list of gadgets along with their descriptions
api.php?action=query&list=gadgets&gaprop=id|desc [open in sandbox]
Get a list of gadgets with all possible properties
api.php?action=query&list=gadgets&gaprop=id|metadata|desc [open in sandbox]
Get a list of gadgets belonging to category "foo"
api.php?action=query&list=gadgets&gacategories=foo [open in sandbox]
Get information about gadgets "foo" and "bar"
api.php?action=query&list=gadgets&gaids=foo|bar&gaprop=id|desc|metadata [open in sandbox]
Get a list of gadgets enabled by current user
api.php?action=query&list=gadgets&gaenabledonly [open in sandbox]