මාධ්යවිකි API උදවු
මෙය ස්වයං-ජනිත මාධ්යවිකි API ප්රලේඛන පිටුවකි.
ප්රලේඛනය සහ උදාහරණ: https://www.mediawiki.org/wiki/API
list=gadgetcategories (gc)
- මෙම ඒකකය සදහා හිමිකම් කියවීම අවශ්ය වේ.
- Source: Gadgets
- License: GPL-2.0-or-later
Returns a list of gadget sections.
පරාමිතීන්:
Other general parameters are available.
- gcprop
What gadget section information to get:
- name
- Internal section name.
- title
- Section title.
- members
- Number of gadgets in section.
- වටිනාකම් ("|" සමග වෙන් කරන්න): members, name, title
- Default: name
- gcnames
Names of sections to retrieve.
- වටිනාකම් "|" සමග වෙන් කරන්න.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
උදාහරණ:
- Get a list of existing gadget sections
- api.php?action=query&list=gadgetcategories [open in sandbox]
- Get all information about sections named "foo" and "bar"
- api.php?action=query&list=gadgetcategories&gcnames=foo|bar&gcprop=name|title|members [open in sandbox]