Помош со Извршникот на МедијаВики

Ова е самосоздадена документациска страница за извршникот на МедијаВики.

Документација и примери: https://www.mediawiki.org/wiki/API

prop=categories (cl)

(main | query | categories)
  • За овој модул се потребни права на читање.
  • Овој модул може да се користи како создавач.
  • Извор: 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__.
Вредности (одделете ги со |): sortkey, timestamp, hidden
clshow

Which kind of categories to show.

Вредности (одделете ги со |): hidden, !hidden
cllimit

How many categories to return.

Не се допушта повеќе од 500 (5.000 за ботови).
Тип: цел број или 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.

Една вредност: ascending, descending
По основно: ascending
Примери:
Get a list of categories the page Albert Einstein belongs to.
api.php?action=query&prop=categories&titles=Albert%20Einstein [open in sandbox]
Get information about all categories used in the page Albert Einstein.
api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info [open in sandbox]