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)
  • Este módulo requiere permisos de lectura.
  • Este módulo requiere permisos de escritura.
  • Este módulo solo acepta solicitudes POST.

Import a page from another wiki, or 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.

Parámetros:
summary

Resumen de importación.

xml

Se cargó el archivo XML.

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

For interwiki imports: wiki to import from.

Un valor:
interwikipage

For interwiki imports: page to import.

fullhistory

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

templates

For interwiki imports: import all included templates as well.

namespace

For interwiki imports: import to this namespace.

Un valor: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
rootpage

Importar como subpágina de esta página.

token

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

Este parámetro es obligatorio.