Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API

list=gadgetcategories (gc)

(main | query | gadgetcategories)
  • Ten moduł wymaga praw odczytu.
  • Źródło: Gadgets
  • Licencja: GPL-2.0+

Returns a list of gadget categories.

Parametry:
gcprop

What gadget category information to get:

name
Internal category name.
title
Category title.
members
Number of gadgets in category.
Wartości (oddziel za pomocą |): name, title, members
Domyślnie: name
gcnames

Names of categories to retrieve.

Oddziel wartości za pomocą |. Maksymalna liczba wartości to 50 (500 dla botów).
Przykłady:
Get a list of existing gadget categories
api.php?action=query&list=gadgetcategories
Get all information about categories named "foo" and "bar"
api.php?action=query&list=gadgetcategories&gcnames=foo|bar&gcprop=name|title|members