MediaWiki API hulp
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=rollback
- Voor deze module zijn leesrechten nodig.
 - Voor deze module zijn schrijfrechten nodig.
 - This module only accepts POST requests.
 - Bron: MediaWiki
 - Licentie: 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.
- Waarden (gescheiden met | of alternatief):
 - user
 Name of the user whose edits are to be rolled back.
- Deze parameter is vereist.
 - Type: gebruiker, met een van gebruikersnaam, IP-adres, interwikinaam (bijv. "voorvoegsel>VoorbeeldNaam") en gebruikers-ID (bijv. "#12345")
 - summary
 Custom edit summary. If empty, default summary will be used.
- 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.
- Een van de volgende waarden: nochange, preferences, unwatch, watch
 - Standaard: preferences
 - token
 A "rollback" token retrieved from action=query&meta=tokens
For compatibility, the token used in the web UI is also accepted.
- Deze parameter is vereist.
 
- Roll back the last edits to page Main Page by user Example.
 - api.php?action=rollback&title=Main%20Page&user=Example&token=123ABC [open in de zandbak]
 - 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 [open in de zandbak]