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=images (im)

(main | query | images)
  • Mô đun này cần quyền đọc.
  • This module can be used as a generator.
  • Source: MediaWiki
  • License: GPL-2.0+

Returns all files contained on the given pages.

Các tham số:
imlimit

How many files to return.

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

When more results are available, use this to continue.

imimages

Only list these files. Useful for checking whether a certain page has a certain file.

Phân tách các giá trị bằng |. Maximum number of values is 50 (500 for bots).
imdir

The direction in which to list.

Một giá trị: ascending, descending
Mặc định: ascending
Các ví dụ:
Get a list of files used in the Main Page.
api.php?action=query&prop=images&titles=Main%20Page
Get information about all files used in the Main Page.
api.php?action=query&generator=images&titles=Main%20Page&prop=info