Extension:TextExtracts/pt-br

A extensão  'TextExtracts'  fornece uma API que permite extrações de texto simples ou HTML limitado (HTML com conteúdo e algumas classes CSS removidas) do conteúdo da página.

Instalação


Parâmetros de configuração

 * é um array de &lt;tag>, &lt;tag>.class, .&lt;class>, #&lt;id> que será excluído da extração.
 * Por exemplo,  remove o texto indentado, normalmente utilizado para notas de cabeçalho de não modelos que não desejados nos resumos.
 * extension.json define os padrões, das quais a classe "noexcerpt" é uma - isto poderá ser adicionado a qualquer modelo para excluí-lo.
 * defines se "TextExtracts" deverá fornecer os seus extratos para o módulo da API Opensearch. O padrão é " ".

Caveats
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 plan to fix this.
 * 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.
 * In plaintext mode:
 * 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.

How can I remove content from a page preview/extract?
TextExtracts will strip any element that is marked with the class. This is provided by the configuration variable (which also defines ).