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
- 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.
- 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:
 - 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
 - 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.
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
- Questo parametro è obbligatorio.
 
- Importa meta:Help:ParserFunctions nel namespace 100 con cronologia completa.
 - api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory=&token=123ABC [apri in una sandbox]