MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=allrevisions (arv)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯ã¸ã§ãã¬ã¼ã¿ã¼ã¨ãã¦ä½¿ç¨ã§ãã¾ãã
- ã½ã¼ã¹: MediaWiki
- ã©ã¤ã»ã³ã¹: GPL-2.0-or-later
ãã¹ã¦ã®çãä¸è¦§è¡¨ç¤ºããã
- arvprop
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
- arvslots
Which revision slots to return data for, when slot-related properties are included in arvprops. If omitted, data from the main slot will be returned in a backwards-compatible format.
- å¤ (|ãããã¯å¥ã®æååã§åºåã): main
- ãã¹ã¦ã®å¤ãæå®ããã«ã¯ã*ãç¨ãã¦ãã ããã
- arvlimit
è¿ãçã®æ°ãå¶éããã
- å: æ´æ°ã¾ã㯠max
- The value must be between 1 and 500.
- arvexpandtemplates
- 廿¢äºå®ã§ãã
Use action=expandtemplates instead. Expand templates in revision content (requires arvprop=content).
- å: çå½å¤ (詳細)
- arvgeneratexml
- 廿¢äºå®ã§ãã
Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires arvprop=content).
- å: çå½å¤ (詳細)
- arvparse
- 廿¢äºå®ã§ãã
Use action=parse instead. Parse revision content (requires arvprop=content). For performance reasons, if this option is used, arvlimit is enforced to 1.
- å: çå½å¤ (詳細)
- arvsection
Only retrieve the content of this section number.
- arvdiffto
- 廿¢äºå®ã§ãã
Use action=compare instead. Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.
- arvdifftotext
- 廿¢äºå®ã§ãã
Use action=compare instead. Text to diff each revision to. Only diffs a limited number of revisions. Overrides arvdiffto. If arvsection is set, only that section will be diffed against this text.
- arvdifftotextpst
- 廿¢äºå®ã§ãã
Use action=compare instead. Perform a pre-save transform on the text before diffing it. Only valid when used with arvdifftotext.
- å: çå½å¤ (詳細)
- arvcontentformat
- 廿¢äºå®ã§ãã
Serialization format used for arvdifftotext and expected for output of content.
- å¤ (次ã®å¤ã®ãããã1ã¤): application/jsonãtext/cssãtext/javascriptãtext/plainãtext/x-wiki
- arvuser
ãã®å©ç¨è ã«ããçã®ã¿ãä¸è¦§è¡¨ç¤ºããã
- å: å©ç¨è åãIPãã¤ã³ã¿ã¼ã¦ã£ãã®ååï¼ä¾: "prefix>ExampleName"ï¼ããã³ å©ç¨è IDï¼ä¾: #12345ï¼ã®ããããã使ã£ãå©ç¨è
- arvnamespace
ãã®åå空éã«å«ã¾ãããã¼ã¸ã®ã¿ãä¸è¦§è¡¨ç¤ºãã¾ãã
- å¤ (|ãããã¯å¥ã®æååã§åºåã): 0ã1ã2ã3ã4ã5ã6ã7ã8ã9ã10ã11ã12ã13ã14ã15
- ãã¹ã¦ã®å¤ãæå®ããã«ã¯ã*ãç¨ãã¦ãã ããã
- arvstart
åæã®å§ç¹ã¨ãªãã¿ã¤ã ã¹ã¿ã³ãã
- Type: timestamp (allowed formats)
- arvend
åæã®çµç¹ã¨ãªãã¿ã¤ã ã¹ã¿ã³ãã
- Type: timestamp (allowed formats)
- arvdir
åæã®æ¹å:
- newer
- å¤ããã®ãå ã«è¡¨ç¤ºãã¾ããæ³¨æ: arvstart 㯠arvend 以åã§ãªããã°ãªãã¾ããã
- older
- æ°ãããã®ãå ã«è¡¨ç¤ºãã¾ã (æ¢å®)ãæ³¨æ: arvstart 㯠arvend 以éã§ãªããã°ãªãã¾ããã
- å¤ (次ã®å¤ã®ãããã1ã¤): newerãolder
- Default: older
- arvexcludeuser
ãã®å©ç¨è ã«ããçãä¸è¦§è¡¨ç¤ºããªãã
- å: å©ç¨è åãIPãã¤ã³ã¿ã¼ã¦ã£ãã®ååï¼ä¾: "prefix>ExampleName"ï¼ããã³ å©ç¨è IDï¼ä¾: #12345ï¼ã®ããããã使ã£ãå©ç¨è
- arvcontinue
When more results are available, use this to continue.
- arvgeneratetitles
ã¸ã§ãã¬ã¼ã¿ã¼ã¨ãã¦ä½¿ç¨ããå ´åãçIDã§ã¯ãªããã¼ã¸åãçæãã¾ãã
- å: çå½å¤ (詳細)
- å©ç¨è Example ã«ããç´è¿ã®50çãä¸è¦§è¡¨ç¤ºããã
- api.php?action=query&list=allrevisions&arvuser=Example&arvlimit=50 [ãµã³ãããã¯ã¹ã§éã]
- List the first 50 revisions in any namespace.
- api.php?action=query&list=allrevisions&arvdir=newer&arvlimit=50 [ãµã³ãããã¯ã¹ã§éã]