Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_pag

prop=extracts (ex)

(main | query | extracts)
  • Ten moduł wymaga praw odczytu.
  • Źródło: TextExtracts
  • Licencja: GPL-2.0-or-later

Returns plain-text or limited HTML extracts of the given pages.

Parametry:
exchars

How many characters to return. Actual text returned might be slightly longer.

Type: integer
The value must be between 1 and 1200.
exsentences

How many sentences to return.

Type: integer
The value must be between 1 and 10.
exlimit

How many extracts to return. (Multiple extracts can only be returned if exintro is set to true.)

Type: integer or max
The value must be between 1 and 20.
Default: 20
exintro

Return only content before the first section.

Type: boolean (details)
explaintext

Return extracts as plain text instead of limited HTML.

Type: boolean (details)
exsectionformat

How to format sections in plaintext mode:

plain
No formatting.
wiki
Wikitext-style formatting (== like this ==).
raw
This module's internal representation (section titles prefixed with <ASCII 1><ASCII 2><section level><ASCII 2><ASCII 1>).
Jedna z następujących wartości: plain, raw, wiki
Default: wiki
excontinue

Gdy będzie dostępnych więcej wyników, użyj tego do kontynuowania.

Type: integer