MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
prop=extracts (ex)
- このモジュールは読み取りの権限を必要とします。
 - ソース: TextExtracts
 - ライセンス: GPL-2.0-or-later
 
指定されたページのプレーンテキストまたは制限付きHTMLを返します。
パラメーター:
- exchars
 返す文字数。返される実際の本文はわずかに長くなる場合があります。
- 値は 1 以上 1,200 以下にしてください。
 - Type: integer
 - exsentences
 返す文の数。
- 値は 1 以上 10 以下にしてください。
 - Type: integer
 - exlimit
 How many extracts to return. (Multiple extracts can only be returned if exintro is set to true.)
- 20(botは20)より多くは受け付けません。
 - Type: integer or max
 - 既定値: 20
 - exintro
 最初の節の前の内容のみ返す。
- Type: boolean (details)
 - explaintext
 Return extracts as plain text instead of limited HTML.
- Type: boolean (details)
 - exsectionformat
 How to format sections in plaintext mode:
- plain
 - No formatting.
 - wiki
 - Wikitext-style formatting (== like this ==).
 - raw
 - This module's internal representation (section titles prefixed with <ASCII 1><ASCII 2><section level><ASCII 2><ASCII 1>).
 
- 値 (次の値のいずれか1つ): plain、wiki、raw
 - 既定値: wiki
 - excontinue
 When more results are available, use this to continue.
- Type: integer
 
例:
- Get a 175-character extract
 - api.php?action=query&prop=extracts&exchars=175&titles=Therion [サンドボックスで開く]