API:Managetags/ja

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page API:Managetags and the translation is 91% complete.
Other languages:
English • ‎dansk • ‎français • ‎polski • ‎ไทย • ‎中文 • ‎日本語

パラメーター

  • operation: 実施する操作の指定。 取りうる値: create, delete, activate, deactivate
  • tag: どのタグの新規作成、除去、有効と無効の切り替えを実施するか。 既存のタグは新規作成できません。 既存のタグしか除去できません。 タグを有効に切り替えるには、既存で拡張機能が使用中ではないものに限定されます。 タグを無効に切り替えるには、既存で手動で設定済みのものに限定されます。
  • reason: どんな理由 (オプション) で、タグの新規作成、除去、有効と無効の切り替えを実施するか。
  • ignorewarnings: Whether to ignore any warnings that are issued during the operation. 型: boolean
  • token: action=query&meta=tokens から取得した「csrf」トークン。



action=managetags

(main | managetags)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Perform management tasks relating to change tags.

Parameters:
operation

Which operation to perform:

create
Create a new change tag for manual use.
delete
Remove a change tag from the database, including removing the tag from all revisions, recent change entries and log entries on which it is used.
activate
Activate a change tag, allowing users to apply it manually.
deactivate
Deactivate a change tag, preventing users from applying it manually.
This parameter is required.
One of the following values: create, delete, activate, deactivate
tag

Tag to create, delete, activate or deactivate. For tag creation, the tag must not exist. For tag deletion, the tag must exist. For tag activation, the tag must exist and not be in use by an extension. For tag deactivation, the tag must be currently active and manually defined.

This parameter is required.
reason

An optional reason for creating, deleting, activating or deactivating the tag.

ignorewarnings

Whether to ignore any warnings that are issued during the operation.

Type: boolean (details)
tags

Change tags to apply to the entry in the tag management log.

Values (separate with | or alternative): possible vandalism, repeating characters
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.