MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=import

(main | import)
  • Questo modulo richiede i diritti di lettura.
  • Questo modulo richiede i diritti di scrittura.
  • Questo modulo accetta solo richieste POST.
  • Fonte: MediaWiki
  • Licenza: 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.

Parametri specifici:
Sono disponibili altri parametri generali.
summary

Oggetto nel registro di importazione.

xml

File XML caricato.

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

Per importazioni interwiki: wiki da cui importare.

Uno dei seguenti valori: dev, loginwiki, meta, metawikimedia, mw, wikipedia
interwikipage

Per importazioni interwiki: pagina da importare.

fullhistory

Per importazioni interwiki: importa l'intera cronologia, non solo la versione attuale.

Tipo: booleano (dettagli)
templates

Per importazioni interwiki: importa anche tutti i template inclusi.

Tipo: booleano (dettagli)
namespace

Importa in questo namespace. Non può essere usato insieme a rootpage.

Uno dei seguenti valori: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 710, 711, 828, 829, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2300, 2301, 2302, 2303, 3000, 3001
assignknownusers

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

Tipo: booleano (dettagli)
rootpage

Importa come sottopagina di questa pagina. Non può essere usato insieme a namespace.

tags

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

Valori (separati da | o alternativa):
token

Un token "csrf" recuperato da action=query&meta=tokens

This parameter is required.