MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=import

(main | import)
  • Voor deze module zijn leesrechten nodig.
  • Voor deze module zijn schrijfrechten nodig.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Importeer een pagina van een andere wiki, of van een XML-bestand.

Merk op dat de HTTP POST moet worden uitgevoerd als bestandsupload (d.w.z. door middel van multipart/form-data) wanneer een bestand wordt verstuurd voor de xml parameter.

Parameters:
summary

Importeersamenvatting voor het logboek.

xml

GeĆ¼pload XML-bestand.

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

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

interwikisource

Voor interwiki-imports: wiki om van te importeren.

One of the following values:
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

Naar deze naamruimte importeren. Kan niet in combinatie met rootpage gebruikt worden.

One of the following values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 106, 107, 108, 109, 112, 113, 114, 115, 200, 201, 274, 275, 2300, 2301, 2302, 2303
assignknownusers

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

Type: boolean (details)
rootpage

Als subpagina van deze pagina importeren. Kan niet in combinatie met namespace gebruikt worden.

tags

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

Values (separate with | or alternative):
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.