MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=rollback
- Ta modul zahteva pravice branja.
- This module requires write rights.
- Ta modul sprejema samo zahtevke POST.
- 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.
- Vtipkajte: celo število
- tags
Tags to apply to the rollback.
- Values (separate with | or alternative):
- user
Name of the user whose edits are to be rolled back.
- Ta parameter je obvezen.
- Vrsta: uporabnik, ki ustreza kateremu koli od uporabniško ime, IP, ime interwikija (npr. »predpona>ImePrimera«) in ID uporabnika (npr. »#12345«)
- summary
Povzetek urejanja po meri. Če je prazen, bo uporabljen prednastavljeni povzetek urejanja.
- Default: (empty)
- 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.
- One of the following values: nochange, preferences, unwatch, watch
- Privzeto: preferences
- token
A "rollback" token retrieved from action=query&meta=tokens
For compatibility, the token used in the web UI is also accepted.
- Ta parameter je obvezen.
- Vrnitev zadnjega urejanja strani Glavna stran uporabnika Zgled.
- api.php?action=rollback&title=Glavna%20stran&user=Example&token=123ABC [open in sandbox]
- Vrnitev zadnjih urejanj strani Glavna stran uporabnika z IP 192.0.2.5 s povzetkom odstranitev vandalizma in označitev teh urejanj in vrnitve kot urejanj botov.
- api.php?action=rollback&title=Glavna%20stran&user=192.0.2.5&token=123ABC&summary=Reverting%20vandalism&markbot=1 [open in sandbox]