미디어위키 API 도움말

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

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

prop=pageimages (pi)

(main | query | pageimages)
  • 이 모듈은 read 권한을 요구합니다.
  • 출처: PageImages
  • 라이선스: WTFPL

섬네일이나 사진의 존재 여부 등 문서의 이미지에 관한 정보를 반환합니다.

변수:
piprop

Which information to return:

thumbnail
URL and dimensions of thumbnail image associated with page, if any.
original
URL and original dimensions of image associated with page, if any.
name
Image title.
값 (|로 구분): name, original, thumbnail 또는 다른 문자열: name, original, thumbnail
기본값: thumbnail|name
pithumbsize

섬네일 그림의 최대 너비. (단위: 화소)

Type: integer
기본값: 50
pilimit

Properties of how many pages to return.

유형: 정수 또는 max
The value must be between 1 and 50.
기본값: 50
pilicense

Limit page images to a certain license type

다음 값 중 하나: any, free 또는 다른 문자열: any, free
기본값: free
picontinue

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

Type: integer
pilangcode

Code for the language the image is going to be rendered in if multiple languages are supported

예시:
Get name and 100-pixel thumbnail of an image on the Albert Einstein page.
api.php?action=query&prop=pageimages&titles=Albert%20Einstein&pithumbsize=100 [연습장에서 열기]