MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=deletedrevisions (drv)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯ã¸ã§ãã¬ã¼ã¿ã¼ã¨ãã¦ä½¿ç¨ã§ãã¾ãã
- ã½ã¼ã¹: MediaWiki
- ã©ã¤ã»ã³ã¹: GPL-2.0-or-later
åé¤ãããçã®æ å ±ãåå¾ãã¾ãã
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
- ãã®çã®é·ã (ãã¤ã) ã
- slotsize
- Length (bytes) of each revision slot.
- sha1
- SHA-1 (base 16) of the revision. If the content has been revision deleted, a sha1hidden property will be returned.
- slotsha1
- SHA-1 (base 16) of each revision slot. If the content has been revision deleted, a sha1hidden property will be returned.
- contentmodel
- Content model ID of each revision slot.
- comment
- ãã®çã®å©ç¨è ã«ããã³ã¡ã³ãã
- parsedcomment
- ãã®çã®å©ç¨è ã«ãããæ§æè§£æãããã³ã¡ã³ãã
- content
- åãªãã¸ã§ã³ã¹ãããã®å 容ã
- tags
- ãã®çã®ã¿ã°ã
- roles
- List content slot roles that exist in the revision.
- parsetree
- 廿¢äºå®ã§ãã Use action=expandtemplates or action=parse instead. The XML parse tree of revision content (requires content model
wikitext).
- å¤ (|ãããã¯å¥ã®æååã§åºåã): commentãcontentãcontentmodelãflagsãidsãparsedcommentãrolesãsha1ãsizeãslotsha1ãslotsizeãtagsãtimestampãuserãuseridãparsetree
- Default: ids|timestamp|flags|comment|user
- drvslots
Which revision slots to return data for, when slot-related properties are included in drvprops. If omitted, data from the main slot will be returned in a backwards-compatible format.
- å¤ (|ãããã¯å¥ã®æååã§åºåã): main
- ãã¹ã¦ã®å¤ãæå®ããã«ã¯ã*ãç¨ãã¦ãã ããã
- drvlimit
è¿ãçã®æ°ãå¶éããã
- å: æ´æ°ã¾ã㯠max
- The value must be between 1 and 500.
- drvexpandtemplates
- 廿¢äºå®ã§ãã
Use action=expandtemplates instead. Expand templates in revision content (requires drvprop=content).
- å: çå½å¤ (詳細)
- drvgeneratexml
- 廿¢äºå®ã§ãã
Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires drvprop=content).
- å: çå½å¤ (詳細)
- drvparse
- 廿¢äºå®ã§ãã
Use action=parse instead. Parse revision content (requires drvprop=content). For performance reasons, if this option is used, drvlimit is enforced to 1.
- å: çå½å¤ (詳細)
- 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.
- å: çå½å¤ (詳細)
- drvcontentformat
- 廿¢äºå®ã§ãã
Serialization format used for drvdifftotext and expected for output of content.
- å¤ (次ã®å¤ã®ãããã1ã¤): application/jsonãtext/cssãtext/javascriptãtext/plainãtext/x-wiki
- drvstart
åæã®å§ç¹ã¨ãªãã¿ã¤ã ã¹ã¿ã³ããçIDã®ä¸è¦§ãå¦çããã¨ãã«ã¯ç¡è¦ããã¾ãã
- Type: timestamp (allowed formats)
- drvend
åæã®çµç¹ã¨ãªãã¿ã¤ã ã¹ã¿ã³ããçIDã®ä¸è¦§ãå¦çããã¨ãã«ã¯ç¡è¦ããã¾ãã
- Type: timestamp (allowed formats)
- drvdir
åæã®æ¹å:
- newer
- å¤ããã®ãå ã«è¡¨ç¤ºãã¾ããæ³¨æ: drvstart 㯠drvend 以åã§ãªããã°ãªãã¾ããã
- older
- æ°ãããã®ãå ã«è¡¨ç¤ºãã¾ã (æ¢å®)ãæ³¨æ: drvstart 㯠drvend 以éã§ãªããã°ãªãã¾ããã
- å¤ (次ã®å¤ã®ãããã1ã¤): newerãolder
- Default: older
- drvtag
ãã®ã¿ã°ãä»ä¸ãããçã®ã¿è¡¨ç¤ºãã¾ãã
- drvuser
ãã®å©ç¨è ã«ããçã®ã¿ãä¸è¦§è¡¨ç¤ºã
- å: å©ç¨è åãIPãã¤ã³ã¿ã¼ã¦ã£ãã®ååï¼ä¾: "prefix>ExampleName"ï¼ããã³ å©ç¨è IDï¼ä¾: #12345ï¼ã®ããããã使ã£ãå©ç¨è
- drvexcludeuser
ãã®å©ç¨è ã«ããçãä¸è¦§è¡¨ç¤ºããªãã
- å: å©ç¨è åãIPãã¤ã³ã¿ã¼ã¦ã£ãã®ååï¼ä¾: "prefix>ExampleName"ï¼ããã³ å©ç¨è IDï¼ä¾: #12345ï¼ã®ããããã使ã£ãå©ç¨è
- 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&drvslots=*&drvprop=user|comment|content [ãµã³ãããã¯ã¹ã§éã]
- åé¤ãããç 123456 ã«é¢ããæ å ±ãä¸è¦§è¡¨ç¤ºããã
- api.php?action=query&prop=deletedrevisions&revids=123456 [ãµã³ãããã¯ã¹ã§éã]