Board Thread:General Discussion/@comment-43368626-20191101203507/@comment-9605025-20191102160141

As Love Robin pointed out, undoing non-consecutive edits may or may not be possible depending on what the edits where and what the edits between them where.

However, if the edits are consecutive there is a third option; manipulate the editing URL directly to contain the relevant revision ids. Let us use my previous example situation. Each edit is assigned a revision id (revid). For the sake of simplicity, let us assume the revid is the edit number counting from one. So, the page as created would be revid1, after the first edit revid2, after the second edit revid3, and so on.

If you use the undo feature, you will end-up in the "special" undo editor mode (I am not sure what else to call it). If you look at the URL in your browsers address bar, you will notice this at the end of it: "&undoafter=revid10&undo=revid11". If you use the rollback feature, it would be "&undoafter=revid6&undo=revid11". The pattern here is that "undoafter" is given the revid of the edit you want to keep and "undo" is given the revid of the current version. Everything after the "undoafter" revid is, well, undone.

Now let us consider how to use this to undo consecutive edits in a customized manner. If you wanted to undo only the 2 last edits by user1, not all 5. You could use "undoafter=revid9&undo=revid11". Now let us say you want to rever the page all the way back to user1's 4th edit. The you could use "undoafter=revid4&undo=revid11". IN the latter case, you are actually able to undo consecutive edits that involve multiple users.

In the example, we used a simple system for assigning revision ids and assumed that revisions to other pages weren't made between revisions to the page we were interested in. This may not be the case on an actual wiki. So, if you really wanted to use this method, how do you get the revids? Well, there are several other links on the history page that use the revid; So we can get it from those. The easiest one to use is the timestamp. If you click on the timestamp, you will be taken to view that particular revision. If you look at the URL, you will notice "?oldid=" near the end of the URL. The number on the other side of the equals sign is the revision number. - Edit:

Note that using this method will not produce an automatic edit comment.