Extension:TextExtracts/ja

TextExtracts拡張機能は、プレーンテキストまたは制限付きHTML（いくつかのCSSクラスを削除したコンテンツを含むHTML）のページコンテンツの抽出を取得するAPIを提供します.

環境設定

 * is an array of &lt;tag>, &lt;tag>.class, .&lt;class>, and #&lt;id> which will be excluded from extraction.
 * For example,  removes indented text, often used for non-templated hatnotes that are not desired in summaries.
 * extension.json defines the defaults, of which the class "noexcerpt" is one - this may be added to any template to exclude it.
 * defines whether TextExtracts should provide its extracts to the Opensearch API module. The default is.

注意
APIを利用する際に注意すべき点がいくつかあります.

It does not work for HTML extracts and there are many edge cases for which it doesn't exist. For example "Arm. gen. Ing. John Smith was a soldier." will be treated as 4 sentences. 修正する予定はありません.
 * We do not recommend the usage of `exsentences`.
 * Inline images are stripped from the response (even in HTML mode). This means if you are using the Math extension and using formulae in your lead section they may not appear in the summary output.
 * In HTML mode we cannot guarantee well formed HTML. Resulting HTML may be invalid or malformed.
 * プレーンテキストモードでは
 * citations may not be stripped (see T197266)
 * if a paragraph ends with an HTML tag e.g. ref tag, new lines may be dropped (see T201946)
 * new lines may be dropped after lists T208132

ページのプレビュー/抽出からコンテンツを削除するにはどうすればよいですか？
TextExtracts は、クラス でマークされた要素をすべて取り除きます. これはグローバルなwgExtractsRemoveClassesによって提供されます.

関連項目

 * Page Content Service
 * Page Content Service