MediaWiki API ヘルプ

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

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

prop=extracts (ex)

(main | query | extracts)
  • このモジュールは読み取りの権限を必要とします。
  • Source: TextExtracts
  • License: GPL-2.0+

Returns plain-text or limited HTML extracts of the given pages.

パラメーター:
exchars

How many characters to return. Actual text returned might be slightly longer.

値は 1 以上 1,200 以下にしてください。
Type: integer
exsentences

How many sentences to return.

値は 1 以上 10 以下にしてください。
Type: integer
exlimit

How many extracts to return. (Multiple extracts can only be returned if exintro is set to true.)

No more than 20 (20 for bots) allowed.
Type: integer or max
既定値: 20
exintro

Return only content before the first section.

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つ): plainwikiraw
既定値: wiki
excontinue

When more results are available, use this to continue.

Type: integer