미디어위키 API 도움말

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

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

action=compare

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

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

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

변수:
fromtitle

비교할 첫 이름.

fromid

비교할 첫 문서 ID.

유형: 정수
fromrev

비교할 첫 판.

유형: 정수
fromslots

Override content of the revision specified by fromtitle, fromid or fromrev.

This parameter specifies the slots that are to be modified. Use fromtext-{slot}, fromcontentmodel-{slot}, and fromcontentformat-{slot} to specify content for each slot.

값 (|로 구분): main 또는 다른 문자열: main
fromtext-{slot}

지정된 슬롯의 텍스트입니다. 생략할 경우 판에서 슬롯이 제거됩니다.

이것은 틀 변수입니다. 요청하실 때 {slot} in the parameter's name should be replaced with values of fromslots.
fromsection-{slot}

When fromtext-{slot} is the content of a single section, this is the section number. It will be merged into the revision specified by fromtitle, fromid or fromrev as if for a section edit.

이것은 틀 변수입니다. 요청하실 때 {slot} in the parameter's name should be replaced with values of fromslots.
fromcontentformat-{slot}

fromtext-{slot}의 콘텐츠 직렬화 포맷입니다.

이것은 틀 변수입니다. 요청하실 때 {slot} in the parameter's name should be replaced with values of fromslots.
다음 값 중 하나: text/x-wiki, text/javascript, application/json, text/css, text/plain 또는 다른 문자열: text/x-wiki, text/javascript, application/json, text/css, text/plain
fromcontentmodel-{slot}

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

이것은 틀 변수입니다. 요청하실 때 {slot} in the parameter's name should be replaced with values of fromslots.
다음 값 중 하나: wikitext, javascript, json, css, text 또는 다른 문자열: wikitext, javascript, json, css, text
frompst

fromtext-{slot}에 사전 저장 변환을 수행합니다.

유형: 불리언 (자세한 정보)
fromtext
구식입니다.

fromslots=main을 지정하고 fromtext-main을 대신 사용합니다.

fromcontentformat
구식입니다.

fromslots=main을 지정하고 fromcontentformat-main을 대신 사용합니다.

다음 값 중 하나: text/x-wiki, text/javascript, application/json, text/css, text/plain 또는 다른 문자열: text/x-wiki, text/javascript, application/json, text/css, text/plain
fromcontentmodel
구식입니다.

fromslots=main을 지정하고 fromcontentmodel-main을 대신 사용합니다.

다음 값 중 하나: wikitext, javascript, json, css, text 또는 다른 문자열: wikitext, javascript, json, css, text
fromsection
구식입니다.

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

totitle

비교할 두 번째 제목.

toid

비교할 두 번째 문서 ID.

유형: 정수
torev

비교할 두 번째 판.

유형: 정수
torelative

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

다음 값 중 하나: prev, next, cur 또는 다른 문자열: prev, next, cur
toslots

Override content of the revision specified by totitle, toid or torev.

This parameter specifies the slots that are to be modified. Use totext-{slot}, tocontentmodel-{slot}, and tocontentformat-{slot} to specify content for each slot.

값 (|로 구분): main 또는 다른 문자열: main
totext-{slot}

지정된 슬롯의 텍스트입니다. 생략하면 이 슬롯은 판에서 제거됩니다.

이것은 틀 변수입니다. 요청하실 때 {slot} in the parameter's name should be replaced with values of toslots.
tosection-{slot}

When totext-{slot} is the content of a single section, this is the section number. It will be merged into the revision specified by totitle, toid or torev as if for a section edit.

이것은 틀 변수입니다. 요청하실 때 {slot} in the parameter's name should be replaced with values of toslots.
tocontentformat-{slot}

totext-{slot}의 콘텐츠 직렬화 포맷입니다.

이것은 틀 변수입니다. 요청하실 때 {slot} in the parameter's name should be replaced with values of toslots.
다음 값 중 하나: text/x-wiki, text/javascript, application/json, text/css, text/plain 또는 다른 문자열: text/x-wiki, text/javascript, application/json, text/css, text/plain
tocontentmodel-{slot}

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

이것은 틀 변수입니다. 요청하실 때 {slot} in the parameter's name should be replaced with values of toslots.
다음 값 중 하나: wikitext, javascript, json, css, text 또는 다른 문자열: wikitext, javascript, json, css, text
topst

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

유형: 불리언 (자세한 정보)
totext
구식입니다.

toslots=main을 지정하고 totext-main을 대신 사용합니다.

tocontentformat
구식입니다.

toslots=main을 지정하고 tocontentformat-main을 대신 사용합니다.

다음 값 중 하나: text/x-wiki, text/javascript, application/json, text/css, text/plain 또는 다른 문자열: text/x-wiki, text/javascript, application/json, text/css, text/plain
tocontentmodel
구식입니다.

toslots=main을 지정하고 tocontentmodel-main을 대신 사용합니다.

다음 값 중 하나: wikitext, javascript, json, css, text 또는 다른 문자열: wikitext, javascript, json, css, text
tosection
구식입니다.

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

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 또는 다른 문자열: diff, diffsize, rel, ids, title, user, comment, parsedcomment, size
기본값: diff|ids|title
slots

Return individual diffs for these slots, rather than one combined diff for all slots.

값 (|로 구분): main 또는 다른 문자열: main
모든 값을 지정하려면, *를 사용하십시오.
예시:
판 1과 2의 차이를 생성합니다.
api.php?action=compare&fromrev=1&torev=2 [연습장에서 열기]