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

(main | 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.

Specific parameters:
Other general parameters are available.
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.

Values (separate with | or alternative):
user

Name of the user whose edits are to be rolled back.

This parameter is required.
Type: user, by any of username, IP, Temporary user, interwiki name (e.g. "prefix>ExampleName") and user ID (e.g. "#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.

One of the following values: nochange, preferences, unwatch, watch
Default: preferences
token

A "rollback" token retrieved from action=query&meta=tokens

For compatibility, the token used in the web UI is also accepted.

This parameter is required.
Examples:

Roll back the last edits to page [[{{#seo: |title=SpiritVale Wiki — Classes, Items, Maps, Monsters & Guides |title_mode=replace |description=SpiritVale Wiki: the community hub for classes, builds, skills, items, maps, monsters, crafting, and guides for the action MMORPG SpiritVale. |keywords=SpiritVale, Spirit Vale, MMORPG, wiki, classes, builds, skills, guides, maps, monsters, items, crafting, cards, artifacts |type=website |site_name=SpiritVale Wiki |locale=en-US |image=SpiritValeLogo.png |image_alt=SpiritVale logo and montage representing classes, items, combat, and world |robots=index, follow }}

Error creating thumbnail: Unable to save thumbnail to destination

Click to Search

Welcome to the SpiritVale Wiki

SpiritVale is a free-to-play, class-based action MMORPG inspired by Ragnarok Online. Build your own hero, battle corrupted creatures, and uncover lost history in a world torn by magic and decay.

Choose a base class — Warrior, Knight, Mage, Rogue, Scout, Acolyte, or Summoner — and unlock unique skill trees and advanced specializations as you grow. Explore diverse biomes, battle powerful bosses, and team up with friends in real-time, action-based combat.

We also have a database with full details on items, monsters, and more: spiritvale.info

<templatestyles src="Template:PatchHighlights/styles.css" />

Recent Updates
{{#ask:

Publish date::+ | sort=Publish date,Modification date | order=desc,desc | limit=3 | ?Publish date | ?Patch blurb | ?Modification date | format=template | template=PatchHighlights/Card | named args=yes | mainlabel=Page | link=none | searchlabel=

| default=
No recent updates found.
}}


Classes

Base Advanced I Advanced II Advanced III
Warrior
Knight Paladin
Rogue Shinobi
Scout
Mage Wizard
Acolyte Priest
Summoner

]] by user Example.

api.php?action=rollback&title=Main%20Page&user=Example&token=123ABC [open in sandbox]

Roll back the last edits to page [[{{#seo: |title=SpiritVale Wiki — Classes, Items, Maps, Monsters & Guides |title_mode=replace |description=SpiritVale Wiki: the community hub for classes, builds, skills, items, maps, monsters, crafting, and guides for the action MMORPG SpiritVale. |keywords=SpiritVale, Spirit Vale, MMORPG, wiki, classes, builds, skills, guides, maps, monsters, items, crafting, cards, artifacts |type=website |site_name=SpiritVale Wiki |locale=en-US |image=SpiritValeLogo.png |image_alt=SpiritVale logo and montage representing classes, items, combat, and world |robots=index, follow }}

Error creating thumbnail: Unable to save thumbnail to destination

Click to Search

Welcome to the SpiritVale Wiki

SpiritVale is a free-to-play, class-based action MMORPG inspired by Ragnarok Online. Build your own hero, battle corrupted creatures, and uncover lost history in a world torn by magic and decay.

Choose a base class — Warrior, Knight, Mage, Rogue, Scout, Acolyte, or Summoner — and unlock unique skill trees and advanced specializations as you grow. Explore diverse biomes, battle powerful bosses, and team up with friends in real-time, action-based combat.

We also have a database with full details on items, monsters, and more: spiritvale.info

<templatestyles src="Template:PatchHighlights/styles.css" />

Recent Updates
{{#ask:

Publish date::+ | sort=Publish date,Modification date | order=desc,desc | limit=3 | ?Publish date | ?Patch blurb | ?Modification date | format=template | template=PatchHighlights/Card | named args=yes | mainlabel=Page | link=none | searchlabel=

| default=
No recent updates found.
}}


Classes

Base Advanced I Advanced II Advanced III
Warrior
Knight Paladin
Rogue Shinobi
Scout
Mage Wizard
Acolyte Priest
Summoner

]] 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 sandbox]