MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
list=allrevisions (arv)
- このモジュールは読み取りの権限を必要とします。
 - このモジュールはジェネレーターとして使用できます。
 - ソース: MediaWiki
 - ライセンス: GPL-2.0-or-later
 
すべての版を一覧表示する。
- arvprop
 Which properties to get for each revision:
- ids
 - 版のID。
 - flags
 - Revision flags (minor).
 - timestamp
 - 版のタイムスタンプ。
 - user
 - その版を作成した利用者。
 - userid
 - その版の作成者の利用者ID。
 - size
 - その版の長さ (バイト) 。
 - slotsize
 - Length (bytes) of each revision slot.
 - sha1
 - SHA-1 (base 16) of the revision.
 - slotsha1
 - SHA-1 (base 16) of each revision slot.
 - contentmodel
 - Content model ID of each revision slot.
 - comment
 - その版の利用者によるコメント。
 - parsedcomment
 - その版の利用者による、構文解析されたコメント。
 - content
 - 各リビジョンスロットの内容。
 - 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). 
- 値 (|もしくは別の文字列で区切る): ids、flags、timestamp、user、userid、size、slotsize、sha1、slotsha1、contentmodel、comment、parsedcomment、content、tags、roles、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
 - To specify all values, use *.
 - arvlimit
 返す版の数を制限する。
- 500(botは5,000)より多くは受け付けません。
 - Type: integer or max
 - arvexpandtemplates
 - 廃止予定です。
 Use action=expandtemplates instead. Expand templates in revision content (requires arvprop=content).
- Type: boolean (details)
 - arvgeneratexml
 - 廃止予定です。
 Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires arvprop=content).
- Type: boolean (details)
 - arvparse
 - 廃止予定です。
 Use action=parse instead. Parse revision content (requires arvprop=content). For performance reasons, if this option is used, arvlimit is enforced to 1.
- Type: boolean (details)
 - arvsection
 Only retrieve the content of this section number.
- 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.
- Type: boolean (details)
 - arvcontentformat
 - 廃止予定です。
 Serialization format used for arvdifftotext and expected for output of content.
- 値 (次の値のいずれか1つ): text/x-wiki、text/javascript、application/json、text/css、text/plain
 - arvuser
 この利用者による版のみを一覧表示する。
- Type: user name
 - arvnamespace
 この名前空間に含まれるページのみを一覧表示します。
- 値 (|もしくは別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
 - To specify all values, use *.
 - arvstart
 列挙の始点となるタイムスタンプ。
- Type: timestamp (allowed formats)
 - arvend
 列挙の終点となるタイムスタンプ。
- Type: timestamp (allowed formats)
 - arvdir
 列挙の方向:
- newer
 - 古いものを先に表示します。注意: arvstart は arvend 以前でなければなりません。
 - older
 - 新しいものを先に表示します (既定)。注意: arvstart は arvend 以降でなければなりません。
 
- 値 (次の値のいずれか1つ): newer、older
 - 既定値: older
 - arvexcludeuser
 この利用者による版を一覧表示しない。
- Type: user name
 - arvcontinue
 When more results are available, use this to continue.
- arvgeneratetitles
 ジェネレーターとして使用する場合、版IDではなくページ名を生成します。
- Type: boolean (details)
 
- 利用者 Example による直近の50版を一覧表示する。
 - api.php?action=query&list=allrevisions&arvuser=Example&arvlimit=50 [サンドボックスで開く]
 - 標準名前空間にある最初の50版を一覧表示する。
 - api.php?action=query&list=allrevisions&arvdir=newer&arvlimit=50 [サンドボックスで開く]