MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/API

prop=revisions (rv)

(main | query | revisions)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Get revision information.

May be used in several ways:

Get data about a set of pages (last revision), by setting titles or pageids.

Get revisions for one given page, by using titles or pageids with start, end, or limit.

Get data about a set of revisions by setting their IDs with revids.

パラメーター:
rvprop

Which properties to get for each revision:

;ids:版のID。

;flags:Revision flags (minor).

;timestamp:版のタイムスタンプ。

;user:その版を作成した利用者。

;userid:その版の作成者の利用者ID。

;size:その版の長さ (バイト) 。

;sha1:SHA-1 (base 16) of the revision.

;contentmodel:Content model ID of the revision.

;comment:その版の利用者によるコメント。

;parsedcomment:その版の利用者による、構文解析されたコメント。

;content:その版のテキスト。

;tags:その版のタグ。

;parsetree:Deprecated. Use action=expandtemplates or action=parse instead. The XML parse tree of revision content (requires content model wikitext).

値 (|もしくは別の文字列で区切る): ids、flags、timestamp、user、userid、size、sha1、contentmodel、comment、parsedcomment、content、tags、parsetree
既定値: ids|timestamp|flags|comment|user
rvlimit

返す版の数を制限する。

May only be used with a single page (mode #2).
No more than 500 (5,000 for bots) allowed.
Type: integer or max
rvexpandtemplates
廃止予定です。

Use action=expandtemplates instead. Expand templates in revision content (requires rvprop=content).

Type: boolean (details)
rvgeneratexml
廃止予定です。

Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires rvprop=content).

Type: boolean (details)
rvparse
廃止予定です。

Use action=parse instead. Parse revision content (requires rvprop=content). For performance reasons, if this option is used, rvlimit is enforced to 1.

Type: boolean (details)
rvsection

Only retrieve the content of this section number.

rvdiffto
廃止予定です。

Use action=compare instead. Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.

rvdifftotext
廃止予定です。

Use action=compare instead. Text to diff each revision to. Only diffs a limited number of revisions. Overrides rvdiffto. If rvsection is set, only that section will be diffed against this text.

rvdifftotextpst
廃止予定です。

Use action=compare instead. Perform a pre-save transform on the text before diffing it. Only valid when used with rvdifftotext.

Type: boolean (details)
rvcontentformat

Serialization format used for rvdifftotext and expected for output of content.

値 (次の値のいずれか1つ): application/json、text/x-wiki、text/javascript、text/css、text/plain
rvstartid

Start enumeration from this revision's timestamp. The revision must exist, but need not belong to this page.

May only be used with a single page (mode #2).
Type: integer
rvendid

Stop enumeration at this revision's timestamp. The revision must exist, but need not belong to this page.

May only be used with a single page (mode #2).
Type: integer
rvstart

From which revision timestamp to start enumeration.

May only be used with a single page (mode #2).
Type: timestamp (allowed formats)
rvend

列挙の終点となるタイムスタンプ。

May only be used with a single page (mode #2).
Type: timestamp (allowed formats)
rvdir

列挙の方向:

newer
古いものを先に表示します。注意: rvstart は rvend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: rvstart は rvend 以降でなければなりません。
May only be used with a single page (mode #2).
値 (次の値のいずれか1つ): newer、older
既定値: older
rvuser

この利用者による版のみを結果に含める。

May only be used with a single page (mode #2).
Type: user name
rvexcludeuser

この利用者による版を結果に含めない。

May only be used with a single page (mode #2).
Type: user name
rvtag

このタグが付与された版のみを一覧表示する。

rvtoken
廃止予定です。

Which tokens to obtain for each revision.

値 (|もしくは別の文字列で区切る): rollback
rvcontinue

When more results are available, use this to continue.