7/14/2023 0 Comments Text extractor extensionReturn extracts as plain text instead of limited HTML. Return only content before the first section. Type: integer or max The value must be between 1 and 20. (Multiple extracts can only be returned if exintro is set to true.) Type: integer The value must be between 1 and 10. Type: integer The value must be between 1 and 1,200. Actual text returned might be slightly longer. The following documentation is the output of Special: ApiHelp/ query+extracts, automatically generated by the pre-release version of MediaWiki that is running on this site (). This module cannot be used as a generator. Returns plain-text or limited HTML extracts of the given pages $wgExtractsExtendOpenSearchXml defines whether TextExtracts should provide its extracts to the Opensearch API module.extension.json defines the defaults, of which the class "noexcerpt" is one - this may be added to any template to exclude it. , # which will be excluded from extraction.įor example, $wgExtractsRemoveClasses = 'dl' removes indented text, often used for non-templated hatnotes that are not desired in summaries. $wgExtractsRemoveClasses is an array of.Require_once " $IP /extensions/TextExtracts/TextExtracts.php" Configuration settings If you are familiar with Git and have shell access to your server, you can also obtain the extension as follows: There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).Įxtract the snapshot and place it in the extensions/TextExtracts/ directory of your MediaWiki installation. Each branch is associated with a past MediaWiki release.Some extensions have tags for stable releases. The extension can be retrieved directly from Git : The TextExtracts extension provides an API which allows retrieval of plain-text or limited HTML (HTML with content for some CSS classes removed) extracts of page content. Translate the TextExtracts extension if it is available at
0 Comments
Leave a Reply. |