MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/API
action=compare
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- Source: MediaWiki
- License: GPL-2.0-or-later
2ã¤ã®çéã®å·®åãåå¾ãã¾ãã
"from" 㨠"to" ã®ä¸¡æ¹ã®ççªå·ããã¼ã¸åããããã¯ãã¼ã¸IDãæ¸¡ãå¿ è¦ãããã¾ãã
- fromtitle
æ¯è¼ãã1ã¤ç®ã®ãã¼ã¸åã
- fromid
æ¯è¼ãã1ã¤ç®ã®ãã¼ã¸IDã
- Type: integer
- fromrev
æ¯è¼ãã1ã¤ç®ã®çã
- Type: integer
- fromtext
Use this text instead of the content of the revision specified by fromtitle, fromid or fromrev.
- fromsection
Only use the specified section of the specified 'from' content.
- frompst
Do a pre-save transform on fromtext.
- Type: boolean (details)
- fromcontentformat
Content serialization format of fromtext.
- å¤ (次ã®å¤ã®ãããã1ã¤): text/x-wikiãtext/javascriptãapplication/jsonãtext/cssãtext/plain
- fromcontentmodel
Content model of fromtext. If not supplied, it will be guessed based on the other parameters.
- å¤ (次ã®å¤ã®ãããã1ã¤): wikitextãjavascriptãjsonãcssãtext
- totitle
æ¯è¼ãã2ã¤ç®ã®ãã¼ã¸åã
- toid
æ¯è¼ãã2ã¤ç®ã®ãã¼ã¸IDã
- Type: integer
- torev
æ¯è¼ãã2ã¤ç®ã®çã
- Type: integer
- torelative
Use a revision relative to the revision determined from fromtitle, fromid or fromrev. All of the other 'to' options will be ignored.
- å¤ (次ã®å¤ã®ãããã1ã¤): prevãnextãcur
- totext
Use this text instead of the content of the revision specified by totitle, toid or torev.
- tosection
Only use the specified section of the specified 'to' content.
- topst
Do a pre-save transform on totext.
- Type: boolean (details)
- tocontentformat
Content serialization format of totext.
- å¤ (次ã®å¤ã®ãããã1ã¤): text/x-wikiãtext/javascriptãapplication/jsonãtext/cssãtext/plain
- tocontentmodel
Content model of totext. If not supplied, it will be guessed based on the other parameters.
- å¤ (次ã®å¤ã®ãããã1ã¤): wikitextãjavascriptãjsonãcssãtext
- prop
Which pieces of information to get.
- diff
- The diff HTML.
- diffsize
- The size of the diff HTML, in bytes.
- rel
- The revision IDs of the revision previous to 'from' and after 'to', if any.
- ids
- The page and revision IDs of the 'from' and 'to' revisions.
- title
- The page titles of the 'from' and 'to' revisions.
- user
- The user name and ID of the 'from' and 'to' revisions.
- comment
- The comment on the 'from' and 'to' revisions.
- parsedcomment
- The parsed comment on the 'from' and 'to' revisions.
- size
- The size of the 'from' and 'to' revisions.
- å¤ (|ãããã¯å¥ã®æååã§åºåã): diffãdiffsizeãrelãidsãtitleãuserãcommentãparsedcommentãsize
- æ¢å®å¤: diff|ids|title
- ç1ã¨2ã®å·®åãçæããã
- api.php?action=compare&fromrev=1&torev=2 [ãµã³ãããã¯ã¹ã§éã]