MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=tag

(main | tag)
  • Questo modulo richiede i diritti di lettura.
  • Questo modulo richiede i diritti di scrittura.
  • Questo modulo accetta solo richieste POST.
  • Fonte: MediaWiki
  • Licenza: GPL-2.0-or-later

Add or remove change tags from individual revisions or log entries.

Parametri:
rcid

One or more recent changes IDs from which to add or remove the tag.

Type: list of integers
Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients allowed higher limits).
revid

One or more revision IDs from which to add or remove the tag.

Type: list of integers
Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients allowed higher limits).
logid

One or more log entry IDs from which to add or remove the tag.

Type: list of integers
Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients allowed higher limits).
add

Tags to add. Only manually defined tags can be added.

Valori (separati da | o alternativa):
remove

Tags to remove. Only tags that are either manually defined or completely undefined can be removed.

Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients allowed higher limits).
reason

Motivo per la modifica.

Predefinito: (vuoto)
tags

Tags to apply to the log entry that will be created as a result of this action.

Valori (separati da | o alternativa):
token

Un token "csrf" recuperato da action=query&meta=tokens

This parameter is required.
Esempi:
Add the vandalism tag to revision ID 123 without specifying a reason
api.php?action=tag&revid=123&add=vandalism&token=123ABC [apri in una sandbox]
Remove the spam tag from log entry ID 123 with the reason Wrongly applied
api.php?action=tag&logid=123&remove=spam&reason=Wrongly+applied&token=123ABC [apri in una sandbox]