Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentaÄnà stránka k MediaWiki API.
Dokumentace a pÅÃklady: https://www.mediawiki.org/wiki/API
action=tag
(main | tag)
- Tento modul vyžaduje oprávnÄnà ke ÄtenÃ.
- Tento modul vyžaduje oprávnÄnà k zápisu.
- Tento modul pÅijÃmá pouze požadavky POST.
- Zdroj: MediaWiki
- Licence: GPL-2.0-or-later
Add or remove change tags from individual revisions or log entries.
Parametry:
- rcid
One or more recent changes IDs from which to add or remove the tag.
- Typ: seznam celých ÄÃsel
- Hodnoty oddÄlujte pomocà | nebo alternativou. Maximálnà poÄet hodnot je 50 (pro boty 500).
- revid
One or more revision IDs from which to add or remove the tag.
- Typ: seznam celých ÄÃsel
- Hodnoty oddÄlujte pomocà | nebo alternativou. Maximálnà poÄet hodnot je 50 (pro boty 500).
- logid
One or more log entry IDs from which to add or remove the tag.
- Typ: seznam celých ÄÃsel
- Hodnoty oddÄlujte pomocà | nebo alternativou. Maximálnà poÄet hodnot je 50 (pro boty 500).
- add
Tags to add. Only manually defined tags can be added.
- Hodnoty (oddÄlené | nebo alternativou.):
- remove
Tags to remove. Only tags that are either manually defined or completely undefined can be removed.
- Hodnoty oddÄlujte pomocà | nebo alternativou. Maximálnà poÄet hodnot je 50 (pro boty 500).
- reason
Reason for the change.
- Implicitnà hodnota: (prázdné)
- tags
Tags to apply to the log entry that will be created as a result of this action.
- Hodnoty (oddÄlené | nebo alternativou.):
- token
Token typu âcsrfâ zÃskaný pomocà action=query&meta=tokens.
- Tento parametr je povinný.
PÅÃklady:
- Add the vandalism tag to revision ID 123 without specifying a reason
- api.php?action=tag&revid=123&add=vandalism&token=123ABC [otevÅÃt v pÃskoviÅ¡ti]
- 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 [otevÅÃt v pÃskoviÅ¡ti]