Extension:TextExtracts/pt

A extensão TextExtracts fornece uma API que permite obter texto simples ou extratos de HTML limitado (HTML com conteúdo para algumas classes de CSS removidas) do conteúdo de página.

Instalação


Definições de Configuração

 * é uma matriz de &lt;tag>, &lt;tag>.class, .&lt;class>, #&lt;id> que irá ser excluída da extração.
 * Por exemplo,  remove o texto indentado, normalmente utilizado para "hatnotes" de não modelos que não desejados nos resumos.
 * extension.json defines as predefiniçõ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. A predefiniçã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 ).



Consulte também

 * Page Content Service
 * Page Content Service