MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

prop=pageimages (pi)

(main | query | pageimages)
  • This module requires read rights.
  • Source: PageImages
  • License: WTFPL

Вяртае інфармацыю аб выявах на старонцы, напрыклад, драбніцу і наяўнасць фатаграфіяў.

Specific parameters:
Other general parameters are available.
piprop

Якую інфармацыю вярнуць:

thumbnail
URL і памеры драбніцы, звязанай са старонкай, калі ёсць.
original
URL і арыгінальныя памеры выявы, звязанай са старонкай, калі ёсць.
name
Назва выявы.
thumbnail
URL and dimensions of thumbnail image associated with page, if any.
name
Image title.
original
URL and original dimensions of image associated with page, if any.
Values (separate with | or alternative): name, original, thumbnail
Default: thumbnail|name
pithumbsize

Максімальная шырыня драбніцаў у пікселях.

Type: integer
Default: 50
pilimit

Уласцівасці колькасці старонак для вяртання.

Type: integer or max
The value must be between 1 and 50.
Default: 50
pilicense

Абмежаваць выявы старонак па пэўных тыпах ліцэнзіяў

free
толькі свабодныя выявы
any
лепшая выява, свабодная ці несвабодная
One of the following values: any, free
Default: free
picontinue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

Type: integer
pilangcode

Код мовы, на якой будзе адлюстроўвацца выява, калі падтрымліваецца некалькі моў

Example:
Атрымаць назву выявы і яе драбніцу ў 100 пікселяў на старонцы Albert Einstein.
api.php?action=query&prop=pageimages&titles=Albert%20Einstein&pithumbsize=100 [open in sandbox]