API:Changing wiki content/ja

From MediaWiki.org
Jump to: navigation, search
Tools clipart.png このページは MediaWiki API 説明文書の一部です。
言語: English  • Deutsch • español • 日本語 • polski • русский
MediaWiki API

Quick overview:

v · d · e

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
  • code: writeapidenied
    • info: You're not allowed to edit this wiki through the API