MediaWiki API ヘルプ

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

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

list=allrevisions (arv)

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

すべての版を一覧表示する。

パラメーター:
その他一般パラメーターが利用可能です。
arvprop

Which properties to get for each revision:

ids
版のID。
flags
Revision flags (minor).
timestamp
版のタイムスタンプ。
user
その版を作成した利用者。その利用者が版指定削除されていた場合、 userhidden プロパティが返されます。
userid
その版の作成者の利用者ID。その利用者が版指定削除されていた場合、 userhidden プロパティが返されます。
size
その版の長さ (バイト) 。
slotsize
Length (bytes) of each revision slot.
sha1
SHA-1 (base 16) of the revision. If the content has been revision deleted, a sha1hidden property will be returned.
slotsha1
SHA-1 (base 16) of each revision slot. If the content has been revision deleted, a sha1hidden property will be returned.
contentmodel
Content model ID of each revision slot.
comment
その版の利用者によるコメント。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
parsedcomment
その版の利用者による、構文解析されたコメント。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
content
各版スロットの内容。コンテンツが版削除された場合には、プロパティ texthidden を返します。
tags
その版のタグ。
roles
List content slot roles that exist in the revision.
parsetree
廃止予定です。 Use action=expandtemplates or action=parse instead. The XML parse tree of revision content (requires content model wikitext).
値 (| または別の文字列で区切る): comment、content、contentmodel、flags、ids、parsedcomment、roles、sha1、size、slotsha1、slotsize、tags、timestamp、user、userid、parsetree
既定: ids|timestamp|flags|comment|user
arvslots

Which revision slots to return data for, when slot-related properties are included in arvprops. If omitted, data from the main slot will be returned in a backwards-compatible format.

値 (| または別の文字列で区切る): main
すべての値を指定するには、*を用いてください。
arvlimit

返す版の数を制限する。

型: 整数または max
値は1以上500以下です。
arvexpandtemplates
廃止予定です。

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

型: 真偽値 (詳細)
arvgeneratexml
廃止予定です。

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

型: 真偽値 (詳細)
arvparse
廃止予定です。

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

型: 真偽値 (詳細)
arvsection

Only retrieve the content of the section with this identifier.

arvdiffto
廃止予定です。

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

arvdifftotext
廃止予定です。

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

arvdifftotextpst
廃止予定です。

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

型: 真偽値 (詳細)
arvcontentformat
廃止予定です。

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

値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
arvuser

この利用者による版のみを一覧表示する。

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
arvnamespace

この名前空間に含まれるページのみを一覧表示します。

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
すべての値を指定するには、*を用いてください。
arvstart

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

Type: timestamp (allowed formats)
arvend

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

Type: timestamp (allowed formats)
arvdir

列挙の方向:

newer
古いものを先に表示します。注意: arvstart は arvend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: arvstart は arvend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定: older
arvexcludeuser

この利用者による版を一覧表示しない。

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
arvcontinue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

arvgeneratetitles

ジェネレーターとして使用する場合、版IDではなくページ名を生成します。

型: 真偽値 (詳細)