미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.

설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=import

(main | 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 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.

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, 420, 421 또는 다른 문자열: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 420, 421
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.

값 (|로 구분): 또는 다른 문자열:
token

"csrf" 토큰은 action=query&meta=tokens에서 가져옵니다

이 변수는 필수입니다.