Extension:TextExtracts/ja

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

インストール


環境設定

 * is an array of &lt;tag>, &lt;tag>.class, .&lt;class>, #&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.

注意
There are various things to be aware of when using the API or software that uses the API e.g..

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
 * Articles must begin with the lead paragraph for an extract to be generated. The use of any template, and/or unclosed or empty HTML element may result in no preview for the article. E.g. " hello " will give an empty extract.

よくある質問


ページのプレビュー/抽出からコンテンツを削除するにはどうすればよいですか？
TextExtracts は、クラス でマークされた要素をすべて取り除きます. This is provided by the configuration variable (which also defines ).



関連項目

 * Page Content Service
 * Page Content Service