MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/API
list=allrevisions (arv)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯ã¸ã§ãã¬ã¼ã¿ã¼ã¨ãã¦ä½¿ç¨ã§ãã¾ãã
- Source: MediaWiki
- License: GPL-2.0-or-later
ãã¹ã¦ã®çãä¸è¦§è¡¨ç¤ºããã
- arvprop
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
- arvlimit
è¿ãçã®æ°ãå¶éããã
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- arvexpandtemplates
- 廿¢äºå®ã§ãã
Use action=expandtemplates instead. Expand templates in revision content (requires arvprop=content).
- Type: boolean (details)
- arvgeneratexml
- 廿¢äºå®ã§ãã
Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires arvprop=content).
- Type: boolean (details)
- arvparse
- 廿¢äºå®ã§ãã
Use action=parse instead. Parse revision content (requires arvprop=content). For performance reasons, if this option is used, arvlimit is enforced to 1.
- Type: boolean (details)
- 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.
- Type: boolean (details)
- arvcontentformat
Serialization format used for arvdifftotext and expected for output of content.
- å¤ (次ã®å¤ã®ãããã1ã¤): text/x-wikiãtext/javascriptãapplication/jsonãtext/cssãtext/plain
- arvuser
ãã®å©ç¨è ã«ããçã®ã¿ãä¸è¦§è¡¨ç¤ºããã
- Type: user name
- arvnamespace
ãã®åå空éã«å«ã¾ãããã¼ã¸ã®ã¿ãä¸è¦§è¡¨ç¤ºãã¾ãã
- å¤ (|ãããã¯å¥ã®æååã§åºåã): 0ã1ã2ã3ã4ã5ã6ã7ã8ã9ã10ã11ã12ã13ã14ã15
- To specify all values, use *.
- arvstart
åæã®å§ç¹ã¨ãªãã¿ã¤ã ã¹ã¿ã³ãã
- Type: timestamp (allowed formats)
- arvend
åæã®çµç¹ã¨ãªãã¿ã¤ã ã¹ã¿ã³ãã
- Type: timestamp (allowed formats)
- arvdir
åæã®æ¹å:
- newer
- å¤ããã®ãå ã«è¡¨ç¤ºãã¾ããæ³¨æ: arvstart 㯠arvend 以åã§ãªããã°ãªãã¾ããã
- older
- æ°ãããã®ãå ã«è¡¨ç¤ºãã¾ã (æ¢å®)ãæ³¨æ: arvstart 㯠arvend 以éã§ãªããã°ãªãã¾ããã
- å¤ (次ã®å¤ã®ãããã1ã¤): newerãolder
- æ¢å®å¤: older
- arvexcludeuser
ãã®å©ç¨è ã«ããçãä¸è¦§è¡¨ç¤ºããªãã
- Type: user name
- arvcontinue
When more results are available, use this to continue.
- arvgeneratetitles
ã¸ã§ãã¬ã¼ã¿ã¼ã¨ãã¦ä½¿ç¨ããå ´åãçIDã§ã¯ãªããã¼ã¸åãçæãã¾ãã
- Type: boolean (details)
- å©ç¨è Example ã«ããç´è¿ã®50çãä¸è¦§è¡¨ç¤ºããã
- api.php?action=query&list=allrevisions&arvuser=Example&arvlimit=50 [ãµã³ãããã¯ã¹ã§éã]
- æ¨æºåå空éã«ããæåã®50çãä¸è¦§è¡¨ç¤ºããã
- api.php?action=query&list=allrevisions&arvdir=newer&arvlimit=50 [ãµã³ãããã¯ã¹ã§éã]