MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=import
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- منبع: MediaWiki
- License: 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
- خلاصه درونریزی. 
- xml
- پرونده XML بارگذاری شد. 
- Must be posted as a file upload using multipart/form-data.
- interwikiprefix
- For uploaded imports: interwiki prefix to apply to unknown user names (and known users if assignknownusers is set). 
- 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، 828، 829، 2300، 2301، 2302، 2303
- assignknownusers
- Assign edits to local users where the named user exists locally. 
- Type: boolean (details)
- 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.
- Import meta:Help:ParserFunctions to namespace 100 with full history.
- api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory=&token=123ABC [open in sandbox]