API:Changing wiki content/ja
From MediaWiki.org
Quick overview:
- Quick start guide
- FAQ
- チュートリアル
- フォーマット
- エラーの報告
- 使用制限
- クロスサイト リクエスト
- 認証
- クエリ
- 検索の提案
- ウィキテキストの構文解析とテンプレートの展開
- ページのキャッシュの破棄
- パラメーター情報
- ウィキの本文の変更
- ウォッチリストのフィード
- ウィキデータ /en
- 拡張機能
- MediaWikiおよび拡張機能内でのAPIの使用
- その他
- 実装
- クライアント コード
- アサート
Changing wiki content through the API is enabled by default as of MediaWiki 1.14; it can be disabled by setting $wgEnableWriteAPI = false; in LocalSettings.php. In MediaWiki 1.13 and earlier, you have to explicitly enable the write API with $wgEnableWriteAPI = true;
各モジュールの詳細情報は対応する下位セクションを参照してください。
- 編集 新しいページを作成または既存のページを修正する操作について。
- 移動 記事を改名または移動する操作について。
- ロールバック ページへの最後の一連の投稿をロールバックする操作について。
- 削除 既存の記事を削除する操作について。
- 復元 削除されたリビジョンを閲覧または復元する操作について。
- 保護 ページに対する保護レベルを変更する操作について。
- ブロック 利用者をブロックまたはブロック解除する操作について。
- ウォッチ about the action to watch and unwatch pages.
- メール送信 about the action to send email to other users.
- 巡回 about the action to patrol changes.
- 取り込み about the action to import pages from other wikis.
- User group membership about the action to add and remove users to and from groups.
- アップロード about the action to upload files.
- トークン about the action to get session-based tokens required for some actions.
起こりうるエラー[edit | edit source]
Some wikis restrict the use of these modules to certain groups of users, or disallow it altogether. All aforementioned modules can return the following errors:
- code: noapiwrite
- info: Editing of this wiki through the API is disabled. Make sure the
$wgEnableWriteAPI=true;
statement is included in the wiki's LocalSettings.php file
- info: Editing of this wiki through the API is disabled. Make sure the
- code: writeapidenied
- info: You're not allowed to edit this wiki through the API