MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/API
prop=revisions (rv)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯ã¸ã§ãã¬ã¼ã¿ã¼ã¨ãã¦ä½¿ç¨ã§ãã¾ãã
- Source: MediaWiki
- License: GPL-2.0-or-later
Get revision information.
May be used in several ways:
- Get data about a set of pages (last revision), by setting titles or pageids.
- Get revisions for one given page, by using titles or pageids with start, end, or limit.
- Get data about a set of revisions by setting their IDs with revids.
- rvprop
Which properties to get for each revision:
- ids
- çã®IDã
- flags
- Revision flags (minor).
- timestamp
- çã®ã¿ã¤ã ã¹ã¿ã³ãã
- user
- ãã®çã使ããå©ç¨è ã
- userid
- ãã®çã®ä½æè ã®å©ç¨è IDã
- size
- ãã®çã®é·ã (ãã¤ã) ã
- sha1
- SHA-1 (base 16) of the revision.
- contentmodel
- Content model ID of the revision.
- comment
- ãã®çã®å©ç¨è ã«ããã³ã¡ã³ãã
- parsedcomment
- ãã®çã®å©ç¨è ã«ãããæ§æè§£æãããã³ã¡ã³ãã
- content
- ãã®çã®ããã¹ãã
- tags
- ãã®çã®ã¿ã°ã
- parsetree
- Deprecated. Use action=expandtemplates or action=parse instead. The XML parse tree of revision content (requires content model
wikitext).
- å¤ (|ãããã¯å¥ã®æååã§åºåã): idsãflagsãtimestampãuserãuseridãsizeãsha1ãcontentmodelãcommentãparsedcommentãcontentãtagsãparsetree
- æ¢å®å¤: ids|timestamp|flags|comment|user
- rvlimit
è¿ãçã®æ°ãå¶éããã
- May only be used with a single page (mode #2).
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- rvexpandtemplates
- 廿¢äºå®ã§ãã
Use action=expandtemplates instead. Expand templates in revision content (requires rvprop=content).
- Type: boolean (details)
- rvgeneratexml
- 廿¢äºå®ã§ãã
Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires rvprop=content).
- Type: boolean (details)
- rvparse
- 廿¢äºå®ã§ãã
Use action=parse instead. Parse revision content (requires rvprop=content). For performance reasons, if this option is used, rvlimit is enforced to 1.
- Type: boolean (details)
- rvsection
Only retrieve the content of this section number.
- rvdiffto
- 廿¢äºå®ã§ãã
Use action=compare instead. Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.
- rvdifftotext
- 廿¢äºå®ã§ãã
Use action=compare instead. Text to diff each revision to. Only diffs a limited number of revisions. Overrides rvdiffto. If rvsection is set, only that section will be diffed against this text.
- rvdifftotextpst
- 廿¢äºå®ã§ãã
Use action=compare instead. Perform a pre-save transform on the text before diffing it. Only valid when used with rvdifftotext.
- Type: boolean (details)
- rvcontentformat
Serialization format used for rvdifftotext and expected for output of content.
- å¤ (次ã®å¤ã®ãããã1ã¤): text/x-wikiãtext/javascriptãapplication/jsonãtext/cssãtext/plain
- rvstartid
Start enumeration from this revision's timestamp. The revision must exist, but need not belong to this page.
- May only be used with a single page (mode #2).
- Type: integer
- rvendid
Stop enumeration at this revision's timestamp. The revision must exist, but need not belong to this page.
- May only be used with a single page (mode #2).
- Type: integer
- rvstart
From which revision timestamp to start enumeration.
- May only be used with a single page (mode #2).
- Type: timestamp (allowed formats)
- rvend
åæã®çµç¹ã¨ãªãã¿ã¤ã ã¹ã¿ã³ãã
- May only be used with a single page (mode #2).
- Type: timestamp (allowed formats)
- rvdir
åæã®æ¹å:
- newer
- å¤ããã®ãå ã«è¡¨ç¤ºãã¾ããæ³¨æ: rvstart 㯠rvend 以åã§ãªããã°ãªãã¾ããã
- older
- æ°ãããã®ãå ã«è¡¨ç¤ºãã¾ã (æ¢å®)ãæ³¨æ: rvstart 㯠rvend 以éã§ãªããã°ãªãã¾ããã
- May only be used with a single page (mode #2).
- å¤ (次ã®å¤ã®ãããã1ã¤): newerãolder
- æ¢å®å¤: older
- rvuser
ãã®å©ç¨è ã«ããçã®ã¿ãçµæã«å«ããã
- May only be used with a single page (mode #2).
- Type: user name
- rvexcludeuser
ãã®å©ç¨è ã«ããçãçµæã«å«ããªãã
- May only be used with a single page (mode #2).
- Type: user name
- rvtag
ãã®ã¿ã°ãä»ä¸ãããçã®ã¿ãä¸è¦§è¡¨ç¤ºããã
- rvtoken
- 廿¢äºå®ã§ãã
Which tokens to obtain for each revision.
- å¤ (|ãããã¯å¥ã®æååã§åºåã): rollback
- rvcontinue
When more results are available, use this to continue.
- ãã¼ã¸API ããã³ Main Page ã®ææ°ã®çã®ãã¼ã¿ã¨æ¬æãåå¾ããã
- api.php?action=query&prop=revisions&titles=API|Main%20Page&rvprop=timestamp|user|comment|content [ãµã³ãããã¯ã¹ã§éã]
- Main Page ã®ç´è¿ã®5çãåå¾ããã
- api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment [ãµã³ãããã¯ã¹ã§éã]
- Main Page ã®æåã®5çãåå¾ããã
- api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer [ãµã³ãããã¯ã¹ã§éã]
- Main Page ã® 2006-05-01 以éã®æåã®5çãåå¾ããã
- api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer&rvstart=2006-05-01T00:00:00Z [ãµã³ãããã¯ã¹ã§éã]
- Main Page ã®å¿åå©ç¨è 127.0.0.1 以å¤ã«ããæåã®5çãåå¾ããã
- api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvexcludeuser=127.0.0.1 [ãµã³ãããã¯ã¹ã§éã]
- Main Page ã® MediaWiki default ã«ããæåã®5çãåå¾ããã
- api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvuser=MediaWiki%20default [ãµã³ãããã¯ã¹ã§éã]