미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/API
action=import
- 이 모듈은 read 권한을 요구합니다.
- 이 모듈은 write 권한을 요구합니다.
- 이 모듈은 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
업로드한 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
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.
- Type: boolean (details)
- templates
For interwiki imports: import all included templates as well.
- Type: boolean (details)
- 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, 828, 829, 2300, 2301, 2302, 2303 또는 다른 문자열: 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
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.
- 값 (|로 구분): mp, mp3 또는 다른 문자열: mp, mp3
- token
"csrf" 토큰은 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 [연습장에서 열기]