Помош со Извршникот на МедијаВики
Ова е самосоздадена документациска страница за извршникот на МедијаВики.
Документација и примери: https://www.mediawiki.org/wiki/API
prop=categories (cl)
- За овој модул се потребни права на читање.
- Овој модул може да се користи како создавач.
- Извор: MediaWiki
- Лиценца: GPL-2.0-or-later
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__
.
- Вредности (одделете ги со | или алтернатива): hidden, sortkey, timestamp
- clshow
Which kind of categories to show.
- Вредности (одделете ги со | или алтернатива): !hidden, hidden
- cllimit
How many categories to return.
- Тип: цел број или max
- Вредноста мора да изнесува помеѓу 1 и 500.
- По основно: 10
- clcontinue
Употребете го ова за да продолжите кога има повеќе расположиви ставки.
- clcategories
Only list these categories. Useful for checking whether a certain page is in a certain category.
- Одделувајте ги вредностите со | или алтернатива.
- Дозволени се највеќе 50 вредности (500 за клиенти со повеќе следување).
- cldir
Насока на исписот.
- Една од следниве вредности: 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]