Nápověda k MediaWiki API

Toto je automaticky generovaná dokumentační stránka k MediaWiki API.

Dokumentace a příklady: https://www.mediawiki.org/wiki/API

prop=extracts (ex)

(main | query | extracts)
  • Tento modul vyžaduje oprávnění ke čtení.
  • Zdroj: TextExtracts
  • Licence: GPL-2.0+

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.

Hodnota musí ležet mezi 1 a 1 200.
Typ: celé číslo
exsentences

How many sentences to return.

Hodnota musí ležet mezi 1 a 10.
Typ: celé číslo
exlimit

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

Není dovoleno více než 20 (20 pro boty).
Type: integer or max
Implicitní hodnota: 20
exintro

Return only content before the first section.

Typ: boolean (podrobnosti)
explaintext

Return extracts as plain text instead of limited HTML.

Typ: boolean (podrobnosti)
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 následujících hodnot: plain, wiki, raw
Implicitní hodnota: wiki
excontinue

When more results are available, use this to continue.

Typ: celé číslo