미디어위키 API 도움말

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

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

action=edit

(main | edit)
  • 이 모듈은 read 권한을 요구합니다.
  • 이 모듈은 write 권한을 요구합니다.
  • 이 모듈은 POST 요청만을 허용합니다.
  • 출처: MediaWiki
  • 라이선스: GPL-2.0+

문서를 만들고 편집합니다.

변수:
title

Title of the page to edit. Cannot be used together with pageid.

pageid

Page ID of the page to edit. Cannot be used together with title.

유형: 정수
section

문단 번호입니다. 0은 최상위 문단, new는 새 문단입니다.

sectiontitle

새 문단을 위한 제목.

text

문서 내용.

summary

편집 요약. 또한 section=new 및 sectiontitle이 설정되어 있지 않을 때 문단 제목.

tags

이 판에 적용할 태그를 변경합니다.

값 (|로 구분):
minor

사소한 편집.

유형: 부울 (자세한 정보)
notminor

사소하지 않은 편집.

유형: 부울 (자세한 정보)
bot

이 편집을 봇 편집으로 표시.

유형: 부울 (자세한 정보)
basetimestamp

Timestamp of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions&rvprop=timestamp.

Type: timestamp (allowed formats)
starttimestamp

Timestamp when the editing process began, used to detect edit conflicts. An appropriate value may be obtained using curtimestamp when beginning the edit process (e.g. when loading the page content to edit).

Type: timestamp (allowed formats)
recreate

Override any errors about the page having been deleted in the meantime.

유형: 부울 (자세한 정보)
createonly

이 페이지가 이미 존재하면 편집하지 않습니다.

유형: 부울 (자세한 정보)
nocreate

페이지가 존재하지 않으면 오류를 출력합니다.

유형: 부울 (자세한 정보)
watch
사용되지 않습니다.

문서를 현재 사용자의 주시문서 목록에 추가합니다.

유형: 부울 (자세한 정보)
unwatch
사용되지 않습니다.

문서를 현재 사용자의 주시문서 목록에서 제거합니다.

유형: 부울 (자세한 정보)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.

다음 값 중 하나: watch, unwatch, preferences, nochange
기본값: preferences
md5

The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.

prependtext

Add this text to the beginning of the page. Overrides text.

appendtext

Add this text to the end of the page. Overrides text.

Use section=new to append a new section, rather than this parameter.

undo

Undo this revision. Overrides text, prependtext and appendtext.

유형: 정수
undoafter

Undo all revisions from undo to this one. If not set, just undo one revision.

유형: 정수
redirect

자동으로 넘겨주기 처리하기.

유형: 부울 (자세한 정보)
contentformat

Content serialization format used for the input text.

다음 값 중 하나: application/json, text/x-wiki, text/javascript, text/css, text/plain
contentmodel

새 콘텐츠의 콘텐츠 모델.

다음 값 중 하나: GadgetDefinition, wikitext, javascript, json, css, text, Scribunto
token

A "csrf" token retrieved from action=query&meta=tokens

The token should always be sent as the last parameter, or at least after the text parameter.

이 변수는 필수 입력 사항입니다.