MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:https://www.mediawiki.org/wiki/API:Main_page/zh

prop=imageinfo (ii)

main | query | imageinfo
  • 此模块需要读取权限。

返回文件信息和上传历史。

参数:
iiprop

要获取的文件信息:

timestamp
添加时间戳至上传的版本。
user
Adds the user who uploaded each file version.
userid
Add the user ID that uploaded each file version.
comment
此版本的摘要。
parsedcomment
Parse the comment on the version.
canonicaltitle
Adds the canonical title of the file.
url
Gives URL to the file and the description page.
size
Adds the size of the file in bytes and the height, width and page count (if applicable).
dimensions
大小别名。
sha1
为文件加入SHA-1哈希值。
mime
添加文件的MIME类型。
thumbmime
Adds MIME type of the image thumbnail (requires url and param iiurlwidth).
mediatype
添加文件媒体类型。
metadata
Lists Exif metadata for the version of the file.
commonmetadata
Lists file format generic metadata for the version of the file.
extmetadata
Lists formatted metadata combined from multiple sources. Results are HTML formatted.
archivename
Adds the filename of the archive version for non-latest versions.
bitdepth
Adds the bit depth of the version.
uploadwarning
Used by the Special:Upload page to get information about an existing file. Not intended for use outside MediaWiki core.
值(以|分隔):timestamp、user、userid、comment、parsedcomment、canonicaltitle、url、size、dimensions、sha1、mime、thumbmime、mediatype、metadata、commonmetadata、extmetadata、archivename、bitdepth、uploadwarning
默认:timestamp|user
iilimit

How many file revisions to return per file.

不允许超过500个(对于机器人则是5,000个)。
默认:1
iistart

开始列举的时间戳。

iiend

列举的结束时间戳。

iiurlwidth

If iiprop=url is set, a URL to an image scaled to this width will be returned. For performance reasons if this option is used, no more than 50 scaled images will be returned.

默认:-1
iiurlheight

与iiurlwidth类似。

默认:-1
iimetadataversion

要使用的元数据版本。如果latest被指定,则使用最新版本。默认为1以便向下兼容。

默认:1
iiextmetadatalanguage

What language to fetch extmetadata in. This affects both which translation to fetch, if multiple are available, as well as how things like numbers and various values are formatted.

默认:zh-cn
iiextmetadatamultilang

If translations for extmetadata property are available, fetch all of them.

iiextmetadatafilter

If specified and non-empty, only these keys will be returned for iiprop=extmetadata.

通过“|”隔开各值。 值的最高数字是50(对于机器人则是500)。
iiurlparam

A handler specific parameter string. For example, PDFs might use page15-100px. iiurlwidth must be used and be consistent with iiurlparam.

默认:(空)
iicontinue

当更多结果可用时,使用这个继续。

iilocalonly

只看本地存储库的文件。