Помоћ око Медијавикијевог API-ја
Ово је аутоматски генерисана документација за Медијавики API
Документација и примери: -{R|https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page}-
list=gadgetcategories (gc)
- This module requires read rights.
- Извор: Gadgets
- Лиценца: GPL-2.0-or-later
Returns a list of gadget categories.
Специфични параметри:
Other general parameters are available.
- gcprop
What gadget category information to get:
- name
- Internal category name.
- title
- Category title.
- members
- Number of gadgets in category.
- Values (separate with | or alternative): members, name, title
- Default: name
- gcnames
Names of categories to retrieve.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
Примери:
- Get a list of existing gadget categories
- api.php?action=query&list=gadgetcategories [open in sandbox]
- Get all information about categories named "foo" and "bar"
- api.php?action=query&list=gadgetcategories&gcnames=foo|bar&gcprop=name|title|members [open in sandbox]