MedijaViki API pagalba
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=categories (cl)
- This module requires read rights.
 - This module can be used as a generator.
 - Šaltinis: MediaWiki
 - Licencija: GPL-2.0-or-later
 
Nurodo visas kategorijas, kurioms priklauso puslapiai.
Parametrai:
- clprop
 Which additional properties to get for each category:
- sortkey
 - Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category.
 - timestamp
 - Adds timestamp of when the category was added.
 - hidden
 - Tags categories that are hidden with 
__HIDDENCAT__. 
- Values (separate with | or alternative): hidden, sortkey, timestamp
 - clshow
 Kokias kategorijas rodyti.
- Values (separate with | or alternative): !hidden, hidden
 - cllimit
 Kiek kategorijų gražinti.
- Type: integer or max
 - The value must be between 1 and 500.
 - Default: 10
 - clcontinue
 When more results are available, use this to continue.
- clcategories
 Nurodyti tik šias kategorijas. Naudinga, kai norima patikrinti ar tam tikras puslapis yra tam tikroje kategorijoje.
- Separate values with | or alternative.
 - Maximum number of values is 50 (500 for clients allowed higher limits).
 - cldir
 The direction in which to list.
- One of the following values: ascending, descending
 - Default: ascending
 
Pavyzdžiai:
- Gauti sąrašą kategorijų, kurioms priklauso puslapis Albert Einstein.
 - api.php?action=query&prop=categories&titles=Albert%20Einstein [open in sandbox]
 - Gauti informaciją apie visas kategorijas, panaudotas Albert Einstein puslapyje.
 - api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info [open in sandbox]