رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=import
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- اس ماڈیول کو اختیارات تحریر درکار ہیں۔
- یہ ماڈیول فقط POST کی درخواستیں قبول کرتا ہے۔
- ماخذ: MediaWiki
- اجازت نامہ: GPL-2.0-or-later
کسی دوسری ویکی سے یا XML فائل سے صفحہ درآمد کرتا ہے۔
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
Log entry import summary.
- xml
Uploaded XML file.
- 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
For interwiki imports: wiki to import from.
- ذیل کی قدروں میں سے کوئی ایک:
- interwikipage
For interwiki imports: page to import.
- fullhistory
For interwiki imports: import the full history, not just the current version.
- طرز: بولین (تفصیلات)
- templates
For interwiki imports: import all included templates as well.
- طرز: بولین (تفصیلات)
- namespace
Import to this namespace. Cannot be used together with rootpage.
- ذیل کی قدروں میں سے کوئی ایک: 0، 1، 2، 3، 4، 5، 6، 7، 8، 9، 10، 11، 12، 13، 14، 15، 106، 107
- assignknownusers
Assign edits to local users where the named user exists locally.
- طرز: بولین (تفصیلات)
- rootpage
Import as subpage of this page. Cannot be used together with namespace.
- tags
Change tags to apply to the entry in the import log and to the null revision on the imported pages.
- قدریں (| سے امتیاز کیا گیا ہے یا متبادل):
- token
A "csrf" token retrieved from action=query&meta=tokens
- یہ پیرامیٹر لازمی ہے۔
- Import meta:Help:ParserFunctions to namespace 100 with full history.
- api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory=&token=123ABC [تختۂ مشق میں کھولیں]