API:Imagerotate

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page API:Imagerotate and the translation is 37% complete.
Other languages:
English • ‎dansk • ‎français • ‎polski • ‎română • ‎русский • ‎中文 • ‎日本語 • ‎한국어
在所有维基媒体的维基项目中该模块被禁用。

令牌

要旋转图像,需要CSRF令牌。 所有页面的CSRF令牌是相同的,但是每次登录时令牌都会改变。 CSRF tokens can be obtained via action=query&meta=tokens with type=csrf (MW 1.24+). For older versions, you can use API:令牌(操作) or API:Info to get an edit token.

参数

This module incorporates ApiPageSet and behaves similar to a query in most respects. See specifying pages and resolve redirects for more information.

  • rotation: Degrees to rotate image clockwise. 可能的值: 90, 180, 270
  • continue: When more results are available, use this to continue. (See continuing queries.) 1.24+
  • tags: Tags to apply to the entry in the upload log. 1.29+
  • titles: A list of titles to work on. Separate values with |. 不允许超过50(对于机器人则是500)。 1.23+
  • pageids: A list of page IDs to work on. Separate values with |. 不允许超过50(对于机器人则是500)。 类型: list of integers
  • revids: A list of revision IDs to work on. Separate values with |. 不允许超过50(对于机器人则是500)。 类型: list of integers
  • generator: Get the list of pages to work on by executing the specified query module. Note: Generator parameter names must be prefixed with a "g". 可能的值: see MediaWiki API generators
  • redirects: Automatically resolve redirects in titles, pageids, and revids, and in pages returned by generator.
  • converttitles: Convert titles to other variants if necessary. Only works if the wiki's content language supports variant conversion. Languages that support variant conversion include: gan, iu, kk, ku, shi, sr, tg, uz, zh
  • token: A "csrf" token retrieved from action=query&meta=tokens

错误代码

In addition to the usual stuff, any failure to rotate an image will be reported in the errormessage field in the results.

示例

File:Example.png旋转90度。



action=imagerotate

(main | imagerotate)

This module has been disabled.

⧼apihelp-disabled-extended-description⧽