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)

(main | query | gadgets)
  • Questo modulo richiede i diritti di lettura.
  • Fonte: Gadgets
  • Licenza: GPL-2.0-or-later

Returns a list of gadgets used on this wiki.

Parametri:
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).
Valori (separati da | o alternativa): desc, id, metadata
Default: id|metadata
gacategories

Gadgets from what categories to retrieve.

Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
gaids

ID degli accessori da recuperare.

Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
gaallowedonly

Elenca solo accessori consentiti all'utente attuale.

Tipo: booleano (dettagli)
gaenabledonly

Elenca solo accessori attivati dall'utente attuale.

Tipo: booleano (dettagli)
Esempi:
Get a list of gadgets along with their descriptions
api.php?action=query&list=gadgets&gaprop=id|desc [apri in una sandbox]
Get a list of gadgets with all possible properties
api.php?action=query&list=gadgets&gaprop=id|metadata|desc [apri in una sandbox]
Get a list of gadgets belonging to category "foo"
api.php?action=query&list=gadgets&gacategories=foo [apri in una sandbox]
Get information about gadgets "foo" and "bar"
api.php?action=query&list=gadgets&gaids=foo|bar&gaprop=id|desc|metadata [apri in una sandbox]
Get a list of gadgets enabled by current user
api.php?action=query&list=gadgets&gaenabledonly [apri in una sandbox]