Ajuda API da MediaWiki
Esta é uma página de documentação API do MediaWiki gerada automaticamente.
Documentação e exemplos: https://www.mediawiki.org/wiki/API
action=tag
(main | tag)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Fonte: MediaWiki
- Licença: GPL-2.0+
Add or remove change tags from individual revisions or log entries.
Parâmetros:
- rcid
- One or more recent changes IDs from which to add or remove the tag. 
- Type: list of integers
- Separe os valores com |. Maximum number of values is 50 (500 for bots).
- revid
- One or more revision IDs from which to add or remove the tag. 
- Type: list of integers
- Separe os valores com |. Maximum number of values is 50 (500 for bots).
- logid
- One or more log entry IDs from which to add or remove the tag. 
- Type: list of integers
- Separe os valores com |. Maximum number of values is 50 (500 for bots).
- add
- Tags to add. Only manually defined tags can be added. 
- Valores (separar com |):
- remove
- Tags to remove. Only tags that are either manually defined or completely undefined can be removed. 
- Separe os valores com |. Maximum number of values is 50 (500 for bots).
- reason
- Motivo para a mudança. 
- Padrão: (vazio)
- token
- A "csrf" token retrieved from action=query&meta=tokens 
- Este parâmetro é obrigatório.
Exemplos:
- Add the vandalism tag to revision ID 123 without specifying a reason
- api.php?action=tag&revid=123&add=vandalism&token=123ABC [abrir na página de testes]
- 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 [abrir na página de testes]