MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
prop=stashimageinfo (sii)
- This module requires read rights.
- منبع: MediaWiki
- License: GPL-2.0-or-later
Returns file information for stashed files.
Parameters:
- siifilekey
Key that identifies a previous upload that was stashed temporarily.
- Separate values with | or alternative. Maximum number of values is ۵۰ (۵۰۰ for bots).
- siisessionkey
- توصیه.
Alias for siifilekey, for backward compatibility.
- Separate values with | or alternative. Maximum number of values is ۵۰ (۵۰۰ for bots).
- siiprop
Which file information to get:
- timestamp
- Adds timestamp for the uploaded 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
- نام مستعار برای size
- sha1
- افزودن SHA-1 hash برای پرونده
- mime
- افزودن نوع MIME برای پرونده
- thumbmime
- Adds MIME type of the image thumbnail (requires url and param siiurlwidth).
- 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.
- bitdepth
- Adds the bit depth of the version.
- badfile
- Adds whether the file is on the MediaWiki:Bad image list
- Values (separate with | or alternative): timestamp، canonicaltitle، url، size، dimensions، sha1، mime، thumbmime، metadata، commonmetadata، extmetadata، bitdepth، badfile
- پیشفرض: timestamp|url
- siiurlwidth
If siiprop=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.
- Type: integer
- پیشفرض: -1
- siiurlheight
مشابه siiurlwidth.
- Type: integer
- پیشفرض: -1
- siiurlparam
A handler specific parameter string. For example, PDFs might use page15-100px. siiurlwidth must be used and be consistent with siiurlparam.
- Default: (empty)
Examples:
- Returns information for a stashed file.
- api.php?action=query&prop=stashimageinfo&siifilekey=124sd34rsdf567 [open in sandbox]
- Returns thumbnails for two stashed files.
- api.php?action=query&prop=stashimageinfo&siifilekey=b34edoe3|bceffd4&siiurlwidth=120&siiprop=url [open in sandbox]