미디어위키 API 도움말

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

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

prop=templates (tl)

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

제시된 문서에 끼워넣은 모든 문서를 반환합니다.

변수:
tlnamespace

이 이름공간에 속한 틀만 표시합니다.

값 (|로 구분): -1, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 828, 829, 2300, 2301, 2302, 2303 또는 다른 문자열: -1, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 828, 829, 2300, 2301, 2302, 2303
모든 값을 지정하려면, *를 사용하십시오.
tllimit

반환할 틀 수.

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

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

tltemplates

Only list these templates. Useful for checking whether a certain page uses a certain template.

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

The direction in which to list.

다음 값 중 하나: ascending, descending 또는 다른 문자열: ascending, descending
기본값: ascending
예시:
Get the templates used on the page Main Page.
api.php?action=query&prop=templates&titles=Main%20Page [연습장에서 열기]
Get information about the template pages used on Main Page.
api.php?action=query&generator=templates&titles=Main%20Page&prop=info [연습장에서 열기]
Get pages in the 사용자 and 틀 namespaces that are transcluded on the page Main Page.
api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10 [연습장에서 열기]