미디어위키 API 도움말

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

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

action=compare

(main | compare)
  • 이 모듈은 read 권한을 요구합니다.
  • 출처: MediaWiki
  • 라이선스: GPL-2.0-or-later

두 문서 간의 차이를 가져옵니다.

대상이 되는 두 문서의 판 번호나 문서 제목 또는 문서 ID를 지정해야 합니다.

변수:
fromtitle

비교할 첫 이름.

fromid

비교할 첫 문서 ID.

유형: 정수
fromrev

비교할 첫 판.

유형: 정수
fromtext

fromtitle, fromid 또는 fromrev로 지정된 판의 내용 대신 이 텍스트를 사용합니다.

fromsection

지정된 'from' 내용의 지정된 문단만 사용합니다.

frompst

fromtext에 사전 저장 변환을 수행합니다.

유형: 불리언 (자세한 정보)
fromcontentformat

fromtext의 콘텐츠 직렬화 포맷입니다.

다음 값 중 하나: application/json, text/x-wiki, text/javascript, text/css, text/plain 또는 alternative: application/json, text/x-wiki, text/javascript, text/css, text/plain
fromcontentmodel

fromtext의 콘텐츠 모델입니다. 지정하지 않으면 다른 변수를 참고하여 추정합니다.

다음 값 중 하나: GadgetDefinition, wikitext, javascript, json, css, text 또는 alternative: GadgetDefinition, wikitext, javascript, json, css, text
totitle

비교할 두 번째 제목.

toid

비교할 두 번째 문서 ID.

유형: 정수
torev

비교할 두 번째 판.

유형: 정수
torelative

fromtitle, fromid 또는 fromrev에서 결정된 판과 상대적인 판을 사용합니다. 다른 'to' 옵션들은 모두 무시됩니다.

다음 값 중 하나: prev, next, cur 또는 alternative: prev, next, cur
totext

totitle, toid 또는 torev로 지정된 판의 내용 대신 이 텍스트를 사용합니다.

tosection

지정된 'to' 내용의 지정된 문단만 사용합니다.

topst

totext에 사전 저장 변환을 수행합니다.

유형: 불리언 (자세한 정보)
tocontentformat

totext의 콘텐츠 직렬화 포맷입니다.

다음 값 중 하나: application/json, text/x-wiki, text/javascript, text/css, text/plain 또는 alternative: application/json, text/x-wiki, text/javascript, text/css, text/plain
tocontentmodel

totext의 콘텐츠 모델입니다. 지정하지 않으면 다른 변수를 참고하여 추정합니다.

다음 값 중 하나: GadgetDefinition, wikitext, javascript, json, css, text 또는 alternative: GadgetDefinition, wikitext, javascript, json, css, text
prop

가져올 정보입니다.

diff
HTML의 차이입니다.
diffsize
HTML 차이의 크기(바이트 단위)입니다.
rel
해당하는 경우 'from' 이전과 'to' 이후 판의 판 ID입니다.
ids
'from'과 'to' 판의 문서와 판 ID입니다.
title
'from'과 'to' 판의 문서 제목입니다.
user
'from'과 'to' 판의 사용자 이름과 ID입니다.
comment
'from'과 'to' 판의 설명입니다.
parsedcomment
'from'과 to' 판의 구문 분석된 설명입니다.
size
'from'과 'to' 판의 크기입니다.
값 (|로 구분): diff, diffsize, rel, ids, title, user, comment, parsedcomment, size 또는 alternative: diff, diffsize, rel, ids, title, user, comment, parsedcomment, size
기본값: diff|ids|title
예시:
판 1과 2의 차이를 생성합니다.
api.php?action=compare&fromrev=1&torev=2 [연습장에서 열기]