MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/API
prop=deletedrevisions (drv)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯ã¸ã§ãã¬ã¼ã¿ã¼ã¨ãã¦ä½¿ç¨ã§ãã¾ãã
- Source: MediaWiki
- License: GPL-2.0-or-later
Get deleted revision information.
May be used in several ways:
- Get deleted revisions for a set of pages, by setting titles or pageids. Ordered by title and timestamp.
- Get data about a set of deleted revisions by setting their IDs with revids. Ordered by revision ID.
- drvprop
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
- drvlimit
è¿ãçã®æ°ãå¶éããã
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- drvexpandtemplates
- 廿¢äºå®ã§ãã
Use action=expandtemplates instead. Expand templates in revision content (requires drvprop=content).
- Type: boolean (details)
- drvgeneratexml
- 廿¢äºå®ã§ãã
Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires drvprop=content).
- Type: boolean (details)
- drvparse
- 廿¢äºå®ã§ãã
Use action=parse instead. Parse revision content (requires drvprop=content). For performance reasons, if this option is used, drvlimit is enforced to 1.
- Type: boolean (details)
- drvsection
Only retrieve the content of this section number.
- drvdiffto
- 廿¢äºå®ã§ãã
Use action=compare instead. Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.
- drvdifftotext
- 廿¢äºå®ã§ãã
Use action=compare instead. Text to diff each revision to. Only diffs a limited number of revisions. Overrides drvdiffto. If drvsection is set, only that section will be diffed against this text.
- drvdifftotextpst
- 廿¢äºå®ã§ãã
Use action=compare instead. Perform a pre-save transform on the text before diffing it. Only valid when used with drvdifftotext.
- Type: boolean (details)
- drvcontentformat
Serialization format used for drvdifftotext and expected for output of content.
- å¤ (次ã®å¤ã®ãããã1ã¤): text/x-wikiãtext/javascriptãapplication/jsonãtext/cssãtext/plain
- drvstart
åæã®å§ç¹ã¨ãªãã¿ã¤ã ã¹ã¿ã³ããçIDã®ä¸è¦§ãå¦çããã¨ãã«ã¯ç¡è¦ããã¾ãã
- Type: timestamp (allowed formats)
- drvend
åæã®çµç¹ã¨ãªãã¿ã¤ã ã¹ã¿ã³ããçIDã®ä¸è¦§ãå¦çããã¨ãã«ã¯ç¡è¦ããã¾ãã
- Type: timestamp (allowed formats)
- drvdir
åæã®æ¹å:
- newer
- å¤ããã®ãå ã«è¡¨ç¤ºãã¾ããæ³¨æ: drvstart 㯠drvend 以åã§ãªããã°ãªãã¾ããã
- older
- æ°ãããã®ãå ã«è¡¨ç¤ºãã¾ã (æ¢å®)ãæ³¨æ: drvstart 㯠drvend 以éã§ãªããã°ãªãã¾ããã
- å¤ (次ã®å¤ã®ãããã1ã¤): newerãolder
- æ¢å®å¤: older
- drvtag
ãã®ã¿ã°ãä»ä¸ãããçã®ã¿è¡¨ç¤ºãã¾ãã
- drvuser
ãã®å©ç¨è ã«ããçã®ã¿ãä¸è¦§è¡¨ç¤ºã
- Type: user name
- drvexcludeuser
ãã®å©ç¨è ã«ããçãä¸è¦§è¡¨ç¤ºããªãã
- Type: user name
- drvcontinue
When more results are available, use this to continue.
- ãã¼ã¸ Main Page ããã³ Talk:Main Page ã®åé¤ãããçã¨ãã®å 容ãä¸è¦§è¡¨ç¤ºããã
- api.php?action=query&prop=deletedrevisions&titles=Main%20Page|Talk:Main%20Page&drvprop=user|comment|content [ãµã³ãããã¯ã¹ã§éã]
- åé¤ãããç 123456 ã«é¢ããæ å ±ãä¸è¦§è¡¨ç¤ºããã
- api.php?action=query&prop=deletedrevisions&revids=123456 [ãµã³ãããã¯ã¹ã§éã]