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
برای درونریزی میانویکی: درونریزی به این فضای نام.
- One of the following values: 0، 1، 2، 3، 4، 5، 6، 7، 8، 9، 10، 11، 12، 13، 14، 15، 3000، 3001، 3002، 3003، 3004، 3005، 3006، 3007، 3008، 3009، 3010، 3011، 2300، 2301، 2302، 2303، 106، 107، 828، 829
- rootpage
درونریزی به عنوان زیر صفحهٔ این صفحه.
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Example:
- Import meta:Help:ParserFunctions to namespace 100 with full history.
- api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory=&token=123ABC