미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 Action API 설명문서입니다.

action=compare

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

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

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

특정 매개변수:
다른 일반 매개변수를 사용할 수 있습니다.
fromtitle

비교할 첫 이름.

fromid

비교할 첫 문서 ID.

유형: 정수
fromrev

비교할 첫 판.

유형: 정수
fromslots

fromtitle, fromid 또는 fromrev로 지정된 판의 내용을 덮어씁니다.

이 매개변수는 수정할 슬롯을 지정합니다. 각 슬롯의 내용을 지정하려면 fromtext-{slot}, fromcontentmodel-{slot}fromcontentformat-{slot}을 사용하세요.

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

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

이것은 틀 매개변수입니다. 요청하실 때는 매개변수 이름 안의 {slot}fromslots 값으로 대체되어야 합니다..
fromsection-{slot}

fromtext-{slot}이 단일 문단의 내용인 경우, 이는 문단 식별자입니다. 문단 편집과 마찬가지로 fromtext, fromid 또는 fromrev로 지정된 판에 병합됩니다.

이것은 틀 매개변수입니다. 요청하실 때는 매개변수 이름 안의 {slot}fromslots 값으로 대체되어야 합니다..
fromcontentformat-{slot}

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

이것은 틀 매개변수입니다. 요청하실 때는 매개변수 이름 안의 {slot}fromslots 값으로 대체되어야 합니다..
다음 값 중 하나: application/json, application/octet-stream, application/unknown, application/vue+xml, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown 또는 다른 문자열: application/json, application/octet-stream, application/unknown, application/vue+xml, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
fromcontentmodel-{slot}

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

이것은 틀 매개변수입니다. 요청하실 때는 매개변수 이름 안의 {slot}fromslots 값으로 대체되어야 합니다..
다음 값 중 하나: Scribunto, css, javascript, json, sanitized-css, text, unknown, vue, wikitext 또는 다른 문자열: Scribunto, css, javascript, json, sanitized-css, text, unknown, vue, wikitext
frompst

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

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

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

fromcontentformat
구식입니다.

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

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

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

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

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

totitle

비교할 두 번째 제목.

toid

비교할 두 번째 문서 ID.

유형: 정수
torev

비교할 두 번째 판.

유형: 정수
torelative

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

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

totitle, toid 또는 torev로 지정된 판의 내용을 덮어씁니다.

이 매개변수는 수정할 슬롯을 지정합니다. 각 슬롯의 내용을 지정하려면 totext-{slot}, tocontentmodel-{slot}tocontentformat-{slot}을 사용하세요.

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

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

이것은 틀 매개변수입니다. 요청하실 때는 매개변수 이름 안의 {slot}toslots 값으로 대체되어야 합니다..
tosection-{slot}

totext-{slot}이 단일 문단의 내용인 경우, 이는 문단 식별자입니다. 문단 편집과 마찬가지로 totitle, toid 또는 torev로 지정된 판에 병합됩니다.

이것은 틀 매개변수입니다. 요청하실 때는 매개변수 이름 안의 {slot}toslots 값으로 대체되어야 합니다..
tocontentformat-{slot}

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

이것은 틀 매개변수입니다. 요청하실 때는 매개변수 이름 안의 {slot}toslots 값으로 대체되어야 합니다..
다음 값 중 하나: application/json, application/octet-stream, application/unknown, application/vue+xml, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown 또는 다른 문자열: application/json, application/octet-stream, application/unknown, application/vue+xml, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
tocontentmodel-{slot}

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

이것은 틀 매개변수입니다. 요청하실 때는 매개변수 이름 안의 {slot}toslots 값으로 대체되어야 합니다..
다음 값 중 하나: Scribunto, css, javascript, json, sanitized-css, text, unknown, vue, wikitext 또는 다른 문자열: Scribunto, css, javascript, json, sanitized-css, text, unknown, vue, wikitext
topst

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

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

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

tocontentformat
구식입니다.

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

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

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

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

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

prop

가져올 정보입니다.

diff
HTML의 차이입니다.
diffsize
HTML 차이의 크기(바이트 단위)입니다.
rel
해당하는 경우 'from' 이전과 'to' 이후 판의 판 ID입니다.
ids
'from'과 'to' 판의 문서와 판 ID입니다.
title
'from'과 'to' 판의 문서 제목입니다.
user
'from'과 'to' 판의 사용자 이름과 ID입니다. 사용자가 판을 삭제한 경우 fromuserhidden 또는 touserhidden 속성이 반환됩니다.
comment
'from'과 'to' 판의 설명입니다. 사용자가 판을 삭제한 경우 fromuserhidden 또는 touserhidden 속성이 반환됩니다.
parsedcomment
'from'과 to' 판의 변환된 설명입니다. 사용자가 판을 삭제한 경우 fromuserhidden 또는 touserhidden 속성이 반환됩니다.
size
'from'과 'to' 판의 크기입니다.
timestamp
'from'과 'to' 판의 타임스탬프입니다.
값 (|로 구분): comment, diff, diffsize, ids, parsedcomment, rel, size, timestamp, title, user 또는 다른 문자열: comment, diff, diffsize, ids, parsedcomment, rel, size, timestamp, title, user
기본값: diff|ids|title
slots

모든 슬롯에 대한 하나의 통합된 차이가 아니라, 각 슬롯에 대한 개별적인 차이를 반환합니다.

값 (|로 구분): main 또는 다른 문자열: main
모든 값을 지정하려면, *를 사용하십시오.
difftype

인라인 HTML로 서식화된 비교를 반환합니다.

다음 값 중 하나: table, unified 또는 다른 문자열: table, unified
기본값: table
예시:
판 1과 2의 차이를 생성합니다.
api.php?action=compare&fromrev=1&torev=2 [연습장에서 열기]