MediaWiki API súgó
Ez egy automatikusan generált MediaWiki-API-dokumentációs lap.
Dokumentáció és példák: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=tag
(main | tag)
- Ez a modul olvasási jogot igényel.
- Ez a modul írási jogot igényel.
- Ez a modul csak POST kéréseket fogad el.
- Forrás: MediaWiki
- Licenc: GPL-2.0-or-later
Add or remove change tags from individual revisions or log entries.
Paraméterek:
- rcid
- One or more recent changes IDs from which to add or remove the tag. 
- Type: list of integers
- Az értékékeket a | karakterrel vagy az alternatív elválasztóval válaszd el.
- 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
- Az értékékeket a | karakterrel vagy az alternatív elválasztóval válaszd el.
- 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
- Az értékékeket a | karakterrel vagy az alternatív elválasztóval válaszd el.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- add
- Tags to add. Only manually defined tags can be added. 
- Értékek (elválasztó: | vagy más):
- remove
- Tags to remove. Only tags that are either manually defined or completely undefined can be removed. 
- Az értékékeket a | karakterrel vagy az alternatív elválasztóval válaszd el.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- reason
- Reason for the change. 
- Alapértelmezett: (üres)
- tags
- Tags to apply to the log entry that will be created as a result of this action. 
- Értékek (elválasztó: | vagy más):
- token
- Egy „csrf” token, az action=query&meta=tokens kéréssel lekérve 
- This parameter is required.
Példák:
- Add the vandalism tag to revision ID 123 without specifying a reason
- api.php?action=tag&revid=123&add=vandalism&token=123ABC [megnyitás a homokozóban]
- 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 [megnyitás a homokozóban]