MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

prop=pageimages (pi)

(main | query | pageimages)
  • This module requires read rights.
  • منبع: PageImages
  • License: WTFPL

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

Parameters:
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.
Values (separate with | or alternative): thumbnail، name، original
پیش‌فرض: thumbnail|name
pithumbsize

Maximum thumbnail dimension.

Type: integer
پیش‌فرض: 50
pilimit

Properties of how many pages to return.

بيش از ۵۰ (برای ربات‌ها ۱۰۰) مجاز نيست
Type: integer or max
پیش‌فرض: 50
pilicense

Limit page images to a certain license type

One of the following values: free، any
پیش‌فرض: free
picontinue

When more results are available, use this to continue.

Type: integer
Example:
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]