MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

list=gadgetcategories (gc)

(main | query | gadgetcategories)
  • This module requires read rights.

Возвращает список категорий гаджетов.

Параметры:
gcprop

What gadget category information to get:

name
Internal category name.
title
Category title.
members
Number of gadgets in category.
Values (separate with |): name, title, members
По умолчанию: name
gcnames

Names of categories to retrieve.

Separate values with |. Maximum number of values is 50 (500 for bots).
Примеры:
Получить список существующих категорий гаджетов
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