Reverting means undoing the effects of one or more edits, which results in the page being restored to a previous version. However, reverting good-faith actions of other editors may be disruptive and can even lead to the reverter being temporarily blocked from editing. Read the three-revert rule (part of the Edit warring policy). Other Wikipedia essays to check out: Reverting and Revert only when necessary.
One easy way to undo others' changes: Just edit the page by deleting wrongly added text or restoring wrongly deleted text. You can do the latter by copying and pasting from a past version.
Another easy way: Restore a past version of the page. To do this:
- Click the "View history" tab at the top of the page to display the page history.
- Click the time and date of the earlier version to which you want to revert. You will see a phrase similar to: "This is an old revision of this page, as edited by ***.***.***.*** (Talk) at 15:47, January 24, 2013. It may differ significantly from the current revision."
- Important: in the case of vandalism, take the time to make sure that you are reverting to the last version without the vandalism; there may be multiple consecutive vandal edits or they may be interspersed between constructive edits.
- Click the "Edit" tab as you normally would. (Above the edit box, you will see a warning similar to: "You are editing an old revision of this page. If you save it, any changes made since then will be removed.") If editing requires a registered account, log in first, or go to the article's Talk page and ask a registered editor to take care of the matter.
- Explain what you're doing in the edit summary field. Use complete words, not abbreviations. For example, "Reverting" or "Reverting vandalism."
- Preview the page.
- Save it.
- Optional: Go to the Talk page and explain what you've done, and why.
- For a past proposal to restrict the availability of this function due to potential misuse, see Wikipedia:Limit the undo function.
The MediaWiki software sometimes enables editors to easily revert (undo) a single edit from the history of a page, without simultaneously undoing all constructive changes that have been made since. To do this, view the page history or the diff for the edit, then click on "undo" next to the edit in question. The software will attempt to create an edit page with a version of the article in which the undesirable edit has been removed, but all later edits are retained. There is a default edit summary, but this can be modified before saving.
It is also possible to undo several consecutive edits, even if they conflict among themselves: view the "diff" to be removed (by selecting the two extremal revisions in the history and clicking "compare selected revisions"), and click the "undo" link.
This feature removes the need to manually redo useful changes that were made after the edit that is being reverted. However, it will fail if undoing the edit would conflict with later edits. For example, if edit 1000 adds a paragraph and edit 1005 modifies that paragraph, it will be impossible to undo edit 1000 automatically. In this case, you must determine how to resolve the problem manually.
- appear only next to the top edit
- revert all top consecutive edits made by last editor
- work immediately, without the intermediate confirmation diff page
- add automatic edit summary "m Reverted edits by Example (talk) to last version by Example2", marking edit as minor
Rollback links appear on the user contributions pages, user watchlists, recent changes pages, history pages and diff pages. Note that in the last case, rollback links can be misleading, since reversion is not necessarily to the old version shown (the diff page may show the combined result of edits, including some by other editors or only part of the edits the rollback button would revert). To see the changes the rollback button will revert, view the specific diff that compares the last version from the last editor with the last version from the previous editor.
Rollback works much more quickly than undo, since it:
- allows reverting without even looking at the list of revisions or diff
- does not require loading an edit page and sending the wikitext back to the server
- does not require a click of the save button
On the other hand, it is not as versatile as undo, since it does not allow specification of which edits have to be undone. One may want to revert more or less edits than the rollback does or edits that do not include the last edit. It also does not allow adding an explanation to the automatic edit summary. Rollback may only be used in certain circumstances; most commonly to revert obvious vandalism.
Rolling back a good-faith edit, without explanation, may be misinterpreted as "I think your edit was no better than vandalism and reverting it doesn't need an explanation". Some editors are sensitive to such perceived slights; if you use the rollback feature other than for vandalism (for example, because undo is impractical due to the large page size), it is courteous to leave an explanation on the article's talk page or on the talk page of the user, whose edit(s) you have reverted.
If someone else edited or rolled back the page before you clicked the "rollback" link, or if there was no previous editor, you will get an error message.
In cases of flood vandalism, administrators may choose to hide vandalism from recent changes. To do this, add &bot=1 to the end of the url used to access a user's contributions. For example: http://en.wikipedia.org/w/index.php?title=Special:Contributions&target=SomePersistentVandal&bot=1.
When the rollback links on the contributions list are clicked, the revert and the original edit that you are reverting will both be hidden from recent changes, unless you click the "bots" link in the Recent Changes to set
hidebots=0. The edits are not hidden from contributions lists, page histories or watchlists. The edits remain in the database and are not removed, but they no longer flood "Recent changes". The aim of this feature is to reduce the annoyance factor of a flood vandal, with relatively little effort. This should not be used for reverting a change you just don't like, but is meant only for massive floods of simple vandalism.
To revert an image to a previous version, go to the image page and click on "File history."
You will then see a list of past edits and a thumbnail graphic of each. Logged-in users will also see a "Revert" link for versions other than the current one. Click on a Revert link to make the change.
If the image is at Wikimedia Commons you must click through to the image page there to do the revert. You will need to be logged in at Commons.
|This page is referenced from the Wikipedia:Glossary.|
- Sam Hocevar's godmode-light.js script adds functionality similar to the admin rollback links described above. More info at WP:US.
- Vandal edits can also be reverted using Huggle, Igloo, STiki, or Twinkle.
- Wikipedia:Vandalism#Template and CSS vandalism if the edits don't appear in the page's edit history, or the history and edit tabs are obscured