Jump to content
MediaWiki

API:그림회전

From mediawiki.org
This page is a translated version of the page API:Imagerotate and the translation is 22% complete.
이 문서는 MediaWiki Action API 문서의 부분입니다.
미디어위키 Action API
기본
인증
계정과 사용자
문서 운영 방법
검색
개발자 유틸리티
튜토리얼
v · d · e
Imagerotate
하나 이상의 그림을 회전합니다.
이 모듈은 제너레이터 함수와 함께 사용할 수 없습니다.
접두어 없음
요구되는 권한 edit, upload
POST만?
생성된 도움말 현재
추가된 버전
≥ 1.21
This module is currently disabled on all Wikimedia wikis due to performance concerns (phab:T35186).

토큰

To rotate an image, a CSRF token is required. The CSRF token is the same for all pages, but changes at every login. CSRF tokens can be obtained via action=query&meta=tokens with type=csrf (MW 1.24+). For older versions, you can use API:Tokens (action) 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.

예시

Rotate File:Example.png by 90 degrees.
결과
{
"imagerotate":[
{
"id":20,
"ns":6,
"title":"File:Example.png",
"result":"Success"
}
]
}


The following documentation is the output of Special:ApiHelp/imagerotate, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).

action=imagerotate

(main | imagerotate)

This module has been disabled.


AltStyle によって変換されたページ (->オリジナル) /