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/Special:MyLanguage/API:Main_page

action=import

(main | import)
  • Tento modul vyžaduje oprávnění ke čtení.
  • Tento modul vyžaduje oprávnění k zápisu.
  • Tento modul přijímá pouze požadavky POST.
  • Zdroj: MediaWiki
  • Licence: GPL-2.0-or-later

Import a page from another wiki, or from an XML file.

Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when sending a file for the xml parameter.

Parametry:
Other general parameters are available.
summary

Shrnutí do protokolovacího záznamu importu.

xml

Nahraný XML soubor.

Must be posted as a file upload using multipart/form-data.
interwikiprefix

For uploaded imports: interwiki prefix to apply to unknown usernames (and known users if assignknownusers is set).

interwikisource

For interwiki imports: wiki to import from.

Jedna z následujících hodnot: albania, argentina, australia, austria, belgium, benelux, brazil, bulgaria, canada, chile, china, colombia, costa rica, cyprus, czech republic, denmark, estonia, finland, france, germany, global, hong kong, hungary, india, indonesia, ireland, italy, japan, korea, kosovo, kwiki, latam, latvia, legacy, lithuania, luxembourg, malaysia, mediawikiwiki, mexico, netherlands, new zealand, norway, peru, philippines, poland, portugal, romania, russia, serbia, singapore, slovakia, slovenia, south africa, spain, sweden, switzerland, turkey, uk, ukraine, united arab emirates, uruguay, usa, wikipedia
interwikipage

For interwiki imports: page to import.

fullhistory

For interwiki imports: import the full history, not just the current version.

Type: boolean (details)
templates

For interwiki imports: import all included templates as well.

Type: boolean (details)
namespace

Importovat do tohoto jmenného prostoru. Nelze používat současně s parametrem rootpage.

Jedna z následujících hodnot: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 106, 107, 274, 275, 460, 461, 1198, 1199, 2300, 2301, 2302, 2303
assignknownusers

Assign edits to local users where the named user exists locally.

Type: boolean (details)
rootpage

Importovat jako podstránku k této stránce. Nelze používat současně s parametrem namespace.

tags

Change tags to apply to the entry in the import log and to the null revision on the imported pages.

Hodnoty (oddělené | nebo alternativou.):
token

Token typu „csrf“ získaný pomocí action=query&meta=tokens.

This parameter is required.