MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=changecontentmodel
(main | changecontentmodel)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯æ¸ãè¾¼ã¿ã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯ POST ãªã¯ã¨ã¹ãã®ã¿ãåãä»ãã¾ãã
- ã½ã¼ã¹: MediaWiki
- ã©ã¤ã»ã³ã¹: GPL-2.0-or-later
Change the content model of a page
ãã©ã¡ã¼ã¿ã¼:
- title
Title of the page to change the contentmodel of. Cannot be used together with pageid.
- pageid
Page ID of the page to change the contentmodel of. Cannot be used together with title.
- å: æ´æ°
- summary
Edit summary and log entry reason
- tags
Change tags to apply to the log entry and edit.
- å¤ (|ãããã¯å¥ã®æååã§åºåã):
- model
Content model of the new content.
- ãã®ãã©ã¡ã¼ã¿ã¼ã¯å¿ é ã§ãã
- å¤ (次ã®å¤ã®ãããã1ã¤): cssãjavascriptãjsonãtextãwikitext
- bot
Mark the content model change with a bot flag.
- å: çå½å¤ (詳細)
- token
action=query&meta=tokens ããåå¾ãããcsrfããã¼ã¯ã³
- ãã®ãã©ã¡ã¼ã¿ã¼ã¯å¿ é ã§ãã
ä¾:
- Change the main page to have the
textcontent model - api.php?action=changecontentmodel&title=Main Page&model=text&token=123ABC [ãµã³ãããã¯ã¹ã§éã]