MediaWiki API súgó

Ez egy automatikusan generált MediaWiki API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/API

action=import

(main | import)
  • Ez a modul olvasási jogot igényel.
  • Ez a modul írási jogot igényel.
  • Ez a modul csak POST kéréseket fogad el.
  • Forrás: MediaWiki
  • Licenc: GPL-2.0+

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.

Paraméterek:
summary

Log entry import summary.

xml

Uploaded XML file.

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

For interwiki imports: wiki to import from.

A következő értékek egyike:
interwikipage

For interwiki imports: page to import.

fullhistory

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

Típus: logikai (részletek)
templates

For interwiki imports: import all included templates as well.

Típus: logikai (részletek)
namespace

Import to this namespace. Cannot be used together with rootpage.

A következő értékek egyike: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 104, 105, 106, 107, 110, 111
rootpage

Import as subpage of this page. Cannot be used together with namespace.

token

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

Ez a paraméter kötelező.
A lap eredeti címe: „https://hu.opensuse.org/Speciális:ApiHelp