Trợ giúp về API MediaWiki

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

prop=pageimages (pi)

(main | query | pageimages)
  • Mô đun này cần quyền đọc.
  • Source: PageImages
  • License: WTFPL

Returns information about images on the page, such as thumbnail and presence of photos.

Các tham số:
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.
Các giá trị (phân tách bằng |): thumbnail, name, original
Mặc định: thumbnail|name
pithumbsize

Maximum width in pixels of thumbnail images.

Type: integer
Mặc định: 50
pilimit

Properties of how many pages to return.

Không cho phép hơn 50 (100 đối với các bot).
Type: integer or max
Mặc định: 50
pilicense

Limit page images to a certain license type

Một trong các giá trị: free, any
Mặc định: free
picontinue

When more results are available, use this to continue.

Type: integer
Ví dụ:
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 [open in sandbox]