Помощ за МедияУики API
Това е автоматично генерирана страница за документация на МедияУики API.
Документация и примери: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=rollback
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: MediaWiki
- License: GPL-2.0-or-later
Undo the last edit to the page.
If the last user who edited the page made multiple edits in a row, they will all be rolled back.
- title
Title of the page to roll back. Cannot be used together with pageid.
- pageid
Page ID of the page to roll back. Cannot be used together with title.
- Type: integer
Tags to apply to the rollback.
- Стойности (разделени с | или алтернативния разделител):
- user
Name of the user whose edits are to be rolled back.
- This parameter is required.
- Type: user, by any of потребителско име, IP, Temporary user, име на междууикито (напр. „представка>ПримерноИме“) и Идентификатор на потребителя (напр. „#12345“)
- summary
Custom edit summary. If empty, default summary will be used.
- По подразбиране: (празно)
- markbot
Mark the reverted edits and the revert as bot edits.
- Type: boolean (details)
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.
- Една от следните стойности: nochange, preferences, unwatch, watch
- Default: preferences
- token
Маркер „rollback“, получен от action=query&meta=tokens
За съвместимост, се приема и маркерът, който се използва в уеб-интерфейса.
- This parameter is required.
- Roll back the last edits to page Начална страница by user Example.
- api.php?action=rollback&title=%D0%9D%D0%B0%D1%87%D0%B0%D0%BB%D0%BD%D0%B0%20%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&user=Example&token=123ABC [open in sandbox]
- Roll back the last edits to page Начална страница by IP user 192.0.2.5 with summary Reverting vandalism, and mark those edits and the revert as bot edits.
- api.php?action=rollback&title=%D0%9D%D0%B0%D1%87%D0%B0%D0%BB%D0%BD%D0%B0%20%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0&user=192.0.2.5&token=123ABC&summary=Reverting%20vandalism&markbot=1 [open in sandbox]