미디어위키 API 도움말

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

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

action=compare

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

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

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

변수:
fromtitle

비교할 첫 이름.

fromid

비교할 첫 문서 ID.

Type: integer
fromrev

비교할 첫 판.

Type: integer
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 identifier. 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.
다음 값 중 하나: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown 또는 다른 문자열: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
fromcontentmodel-{slot}

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

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

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

Type: boolean (details)
fromtext
구식입니다.

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

fromcontentformat
구식입니다.

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

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

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

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

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

totitle

비교할 두 번째 제목.

toid

비교할 두 번째 문서 ID.

Type: integer
torev

비교할 두 번째 판.

Type: integer
torelative

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

다음 값 중 하나: cur, next, prev 또는 다른 문자열: cur, next, prev
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 identifier. 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.
다음 값 중 하나: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown 또는 다른 문자열: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
tocontentmodel-{slot}

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

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

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

Type: boolean (details)
totext
구식입니다.

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

tocontentformat
구식입니다.

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

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

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

다음 값 중 하나: GeoJSON, GeoJson, MassMessageListContent, css, javascript, json, sanitized-css, text, unknown, wikitext 또는 다른 문자열: GeoJSON, GeoJson, MassMessageListContent, css, javascript, json, sanitized-css, text, unknown, 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
(설명 없음)
값 (|로 구분): comment, diff, diffsize, ids, parsedcomment, rel, size, timestamp, title, user 또는 다른 문자열: comment, diff, diffsize, ids, parsedcomment, rel, size, timestamp, title, user
기본값: 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 [연습장에서 열기]