미디어위키 API 도움말

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

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

prop=categories (cl)

(main | query | categories)
  • 이 모듈은 read 권한을 요구합니다.
  • 이 모듈은 생성기로 사용할 수 있습니다.
  • 출처: MediaWiki
  • 라이선스: GPL-2.0-or-later

문서가 속하는 모든 분류를 나열합니다.

변수:
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 또는 다른 문자열: hidden, sortkey, timestamp
clshow

Which kind of categories to show.

값 (|로 구분): !hidden, hidden 또는 다른 문자열: !hidden, hidden
cllimit

반환할 분류의 개수입니다.

유형: 정수 또는 max
The value must be between 1 and 500.
기본값: 10
clcontinue

더 많은 결과를 이용할 수 있을 때, 계속하려면 이것을 사용하십시오.

clcategories

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

| 또는 대안으로 값을 구분합니다.
Maximum number of values is 50 (500 for clients allowed higher limits).
cldir

The direction in which to list.

다음 값 중 하나: ascending, descending 또는 다른 문자열: 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 [연습장에서 열기]