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)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: 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.

Parameters:
summary

ملخص إدخال سجل الاستيراد.

xml

ملف XML مرفوع.

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

بالنسبة لواردات الإنترويكي: ويكي للاستيراد منه.

One of the following values:
interwikipage

بالنسبة لواردات الإنترويكي: صفحة لاستيرادها.

fullhistory

بالنسبة لواردات الإنترويكي: استيراد التاريخ كاملا، وليست النسخة الحالية فقط.

Type: boolean (details)
templates

بالنسبة لواردات الإنترويكي: الإستيراد شمل كافة القوالب كذلك.

Type: boolean (details)
namespace

استيراد إلى هذا النطاق. لا يمكن أن يُستخدَم إلى جانب rootpage.

One of the following values: 0، 1، 2، 3، 4، 5، 6، 7، 8، 9، 10، 11، 12، 13، 14، 15
rootpage

استيراد كصفحة فرعية لهذه الصفحة. لا يمكن أن يُستخدَم إلى جانب rootpage.

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.