MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/API
action=revisiondelete
(main | revisiondelete)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯æ¸ãè¾¼ã¿ã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯ POST ãªã¯ã¨ã¹ãã®ã¿ãåãä»ãã¾ãã
- Source: MediaWiki
- License: GPL-2.0-or-later
çã®åé¤ããã³å¾©å ãè¡ãã¾ãã
ãã©ã¡ã¼ã¿ã¼:
- type
Type of revision deletion being performed.
- ãã®ãã©ã¡ã¼ã¿ã¼ã¯å¿ é ã§ãã
- å¤ (次ã®å¤ã®ãããã1ã¤): revisionãarchiveãoldimageãfilearchiveãlogging
- target
Page title for the revision deletion, if required for the type.
- ids
Identifiers for the revisions to be deleted.
- ãã®ãã©ã¡ã¼ã¿ã¼ã¯å¿ é ã§ãã
- è¤æ°ã®å¤ã¯ | ãããã¯ä»£ããã®æåã§åºåã£ã¦ãã ããã å¤ã®æå¤§å¤ã¯ 50 (ãããã®å ´å㯠500) ã§ãã
- hide
What to hide for each revision.
- å¤ (|ãããã¯å¥ã®æååã§åºåã): contentãcommentãuser
- show
What to unhide for each revision.
- å¤ (|ãããã¯å¥ã®æååã§åºåã): contentãcommentãuser
- suppress
Whether to suppress data from administrators as well as others.
- å¤ (次ã®å¤ã®ãããã1ã¤): yesãnoãnochange
- æ¢å®å¤: nochange
- reason
åé¤ã¾ãã¯å¾©å ã®çç±ã
- tags
Tags to apply to the entry in the deletion log.
- å¤ (|ãããã¯å¥ã®æååã§åºåã):
- token
action=query&meta=tokens ããåå¾ãããcsrfããã¼ã¯ã³
- ãã®ãã©ã¡ã¼ã¿ã¼ã¯å¿ é ã§ãã
ä¾:
- Main Page ã®ç 12345 ã®æ¬æãé ãã
- api.php?action=revisiondelete&target=Main%20Page&type=revision&ids=12345&hide=content&token=123ABC [ãµã³ãããã¯ã¹ã§éã]
- Hide all data on log entry 67890 with the reason BLP violation.
- api.php?action=revisiondelete&type=logging&ids=67890&hide=content|comment|user&reason=BLP%20violation&token=123ABC [ãµã³ãããã¯ã¹ã§éã]