미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.

설명 문서 및 예시: https://www.mediawiki.org/wiki/API

prop=categories (cl)

(main | query | categories)
  • 이 모듈은 read 권한을 요구합니다.
  • This module can be used as a generator.
  • 출처: 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.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
기본값: 10
clcontinue

When more results are available, use this to continue.

clcategories

Only list these categories. Useful for checking whether a certain page is in a certain category.

Separate values with |. Maximum number of values is 50 (500 for bots).
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
Get information about all categories used in the page Albert Einstein.
api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info