MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=compare
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ã½ã¼ã¹: MediaWiki
- ã©ã¤ã»ã³ã¹: GPL-2.0-or-later
2ã¤ã®çéã®å·®åãåå¾ãã¾ãã
"from" 㨠"to" ã®ä¸¡æ¹ã®ççªå·ããã¼ã¸åããããã¯ãã¼ã¸IDãæ¸¡ãå¿ è¦ãããã¾ãã
- fromtitle
æ¯è¼ãã1ã¤ç®ã®ãã¼ã¸åã
- fromid
æ¯è¼ãã1ã¤ç®ã®ãã¼ã¸IDã
- å: æ´æ°
- fromrev
æ¯è¼ãã1ã¤ç®ã®çã
- å: æ´æ°
- 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
- fromtext-{slot}
Text of the specified slot. If omitted, the slot is removed from the revision.
- This is a templated parameter. When making the request, {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.
- This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
- fromcontentformat-{slot}
Content serialization format of fromtext-{slot}.
- This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
- å¤ (次ã®å¤ã®ãããã1ã¤): application/jsonãtext/cssãtext/javascriptãtext/plainãtext/x-wiki
- fromcontentmodel-{slot}
Content model of fromtext-{slot}. If not supplied, it will be guessed based on the other parameters.
- This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
- å¤ (次ã®å¤ã®ãããã1ã¤): cssãjavascriptãjsonãtextãwikitext
- frompst
fromtext-{slot}ã«ä¿åå夿ãè¡ãã¾ãã
- å: çå½å¤ (詳細)
- fromtext
- 廿¢äºå®ã§ãã
fromslots=mainãæå®ãã代ããã«fromtext-main ã使ç¨ãã¦ãã ããã
- fromcontentformat
- 廿¢äºå®ã§ãã
fromslots=mainãæå®ãã代ããã«fromcontentformat-main ã使ç¨ãã¦ãã ããã
- å¤ (次ã®å¤ã®ãããã1ã¤): application/jsonãtext/cssãtext/javascriptãtext/plainãtext/x-wiki
- fromcontentmodel
- 廿¢äºå®ã§ãã
fromslots=mainãæå®ãã代ããã«fromcontentmodel-main ã使ç¨ãã¦ãã ããã
- å¤ (次ã®å¤ã®ãããã1ã¤): cssãjavascriptãjsonãtextãwikitext
- fromsection
- 廿¢äºå®ã§ãã
'from' ã®å 容ã®ãã¡æå®ãããç¯ã®ã¿ã使ç¨ãã¾ãã
- totitle
æ¯è¼ãã2ã¤ç®ã®ãã¼ã¸åã
- toid
æ¯è¼ãã2ã¤ç®ã®ãã¼ã¸IDã
- å: æ´æ°
- torev
æ¯è¼ãã2ã¤ç®ã®çã
- å: æ´æ°
- torelative
Use a revision relative to the revision determined from fromtitle, fromid or fromrev. All of the other 'to' options will be ignored.
- å¤ (次ã®å¤ã®ãããã1ã¤): 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
- totext-{slot}
Text of the specified slot. If omitted, the slot is removed from the revision.
- This is a templated parameter. When making the request, {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.
- This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
- tocontentformat-{slot}
Content serialization format of totext-{slot}.
- This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
- å¤ (次ã®å¤ã®ãããã1ã¤): application/jsonãtext/cssãtext/javascriptãtext/plainãtext/x-wiki
- tocontentmodel-{slot}
Content model of totext-{slot}. If not supplied, it will be guessed based on the other parameters.
- This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
- å¤ (次ã®å¤ã®ãããã1ã¤): cssãjavascriptãjsonãtextãwikitext
- topst
totextã«ä¿åå夿ãè¡ãã¾ãã
- å: çå½å¤ (詳細)
- totext
- 廿¢äºå®ã§ãã
toslots=mainãæå®ãã代ããã«totext-main ã使ç¨ãã¦ãã ããã
- tocontentformat
- 廿¢äºå®ã§ãã
toslots=mainãæå®ãã代ããã«tocontentformat-main ã使ç¨ãã¦ãã ããã
- å¤ (次ã®å¤ã®ãããã1ã¤): application/jsonãtext/cssãtext/javascriptãtext/plainãtext/x-wiki
- tocontentmodel
- 廿¢äºå®ã§ãã
toslots=mainãæå®ãã代ããã«tocontentmodel-main ã使ç¨ãã¦ãã ããã
- å¤ (次ã®å¤ã®ãããã1ã¤): cssãjavascriptãjsonãtextãwikitext
- tosection
- 廿¢äºå®ã§ãã
'to' ã®å 容ã®ãã¡æå®ãããç¯ã®ã¿ã使ç¨ãã¾ãã
- prop
ã©ã®æ å ±ãåå¾ããã:
- diff
- å·®åHTMLã
- diffsize
- å·®åHTMLã®ãµã¤ãº (ãã¤ãæ°)ã
- rel
- åå¨ããå ´åã'from' ã®ç´åãããã³ 'to' ã®ç´å¾ã®çIDã
- ids
- 'from' ããã³ 'to' ã®çã®ãã¼ã¸IDããã³çIDã
- title
- 'from' ããã³ 'to' ã®çã®ãã¼ã¸åã
- user
- 'from' ããã³ 'to' ã®çã®æç¨¿è ã®å©ç¨è åããã³IDã
- comment
- 'from' ããã³ 'to' ã®çã®ã³ã¡ã³ãã
- parsedcomment
- 'from' ããã³ 'to' ã®çã®æ´å½¢æ¸ã¿ã³ã¡ã³ãã
- size
- 'from' ããã³ 'to' ã®çã®ãµã¤ãºã
- timestamp
- (説æãªã)
- å¤ (|ãããã¯å¥ã®æååã§åºåã): commentãdiffãdiffsizeãidsãparsedcommentãrelãsizeãtimestampãtitleãuser
- Default: diff|ids|title
- slots
Return individual diffs for these slots, rather than one combined diff for all slots.
- å¤ (|ãããã¯å¥ã®æååã§åºåã): main
- ãã¹ã¦ã®å¤ãæå®ããã«ã¯ã*ãç¨ãã¦ãã ããã
- ç1ã¨2ã®å·®åãçæããã
- api.php?action=compare&fromrev=1&torev=2 [ãµã³ãããã¯ã¹ã§éã]