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=rollback
- 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
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
- Tags to apply to the rollback. 
- Hodnoty (oddělené | nebo alternativou.):
- user
- Name of the user whose edits are to be rolled back. 
- This parameter is required.
- Typ: uživatel, uvedený jako cokoli z: uživatelské jméno, IP, interwiki jméno (např. „prefix>Příklad“) a ID uživatele (např. „#12345“)
- summary
- Custom edit summary. If empty, default summary will be used. 
- Implicitní hodnota: (prázdné)
- 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. 
- Jedna z následujících hodnot: nochange, preferences, unwatch, watch
- Default: preferences
- token
- Token typu „rollback“ získaný pomocí action=query&meta=tokens. - For compatibility, the token used in the web UI is also accepted. 
- This parameter is required.
- Roll back the last edits to page Main Page by user Example.
- api.php?action=rollback&title=Main%20Page&user=Example&token=123ABC [otevřít v pískovišti]
- Roll back the last edits to page Main 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=Main%20Page&user=192.0.2.5&token=123ABC&summary=Reverting%20vandalism&markbot=1 [otevřít v pískovišti]