Справка MediaWiki API
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
prop=categories (cl)
- ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ ÑÑебÑÐµÑ Ð¿Ñав на ÑÑение.
- ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¸ÑполÑзован в каÑеÑÑве генеÑаÑоÑа.
- ÐÑÑоÑник: MediaWiki
- ÐиÑензиÑ: GPL-2.0+
List all categories the pages belong to.
ÐаÑамеÑÑÑ:
- 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 |): sortkey, timestamp, hidden
- clshow
Which kind of categories to show.
- Values (separate with |): hidden, !hidden
- cllimit
СколÑко каÑегоÑий на возвÑаÑ.
- РазÑеÑено не более Ñем 500 (5000 Ð´Ð»Ñ Ð±Ð¾Ñов).
- Тип: Ñелое ÑиÑло или max
- Ðо ÑмолÑаниÑ: 10
- clcontinue
Ðогда доÑÑÑпно болÑÑе ÑезÑлÑÑаÑов, иÑполÑзоваÑÑ ÑÑÐ¾Ñ ÑÑÐ¾Ð±Ñ Ð¿ÑодолжиÑÑ.
- clcategories
Only list these categories. Useful for checking whether a certain page is in a certain category.
- РазделÑйÑе знаÑÐµÐ½Ð¸Ñ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ |. ÐакÑималÑное колиÑеÑÑво знаÑений должно бÑÑÑ 50 (500 Ð´Ð»Ñ Ð±Ð¾Ñов).
- cldir
The direction in which to list.
- One value: ascending, descending
- Ðо ÑмолÑаниÑ: ascending
ÐÑимеÑÑ:
- Get a list of categories the page Albert Einstein belongs to.
- api.php?action=query&prop=categories&titles=Albert%20Einstein
- Get information about all categories used in the page Albert Einstein.
- api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info