API:Rollback/ja

巻き戻し
巻き戻しは一人の利用者による直近の一連の編集を取り消す操作です. In other words, rollback keeps undoing revision after revision until it encounters one made by someone different. This functionality is identical to the one provided by the [ ] links in the graphical interface. 巻き戻しの版は細部の編集としてマークされます. Optionally, both the rollback and the edits being rolled back can be marked as bot, which hides them from Special:RecentChanges by default.

トークン
巻き戻しを行うためには、巻き戻しトークンが必要です. MediaWiki 1.24 以上を使っているなら、巻き戻しトークンを取得するために action=query&meta=tokens&type=rollback を使用することができます.

MediaWiki 1.23 以前の場合は、以下の説明に従ってください:

Unlike most other tokens, rollback tokens aren't universal: they're not only different for every login, but also depend on the title of the page and the name of the user whose edits are to be rolled back. 巻き戻しトークンは以下のようにして取得できます:

ページの巻き戻し
action=rollback でページの巻き戻しができます.

パラメーター
Note that only one of  or   are required, and they cannot be used together.

例
Note: In this example, all parameters are passed in a GET request just for the sake of simplicity. However, action=rollback requires POST requests; GET requests will cause an error.

Returned fields
If rolling back wouldn't change the page, no new revision is made. In this case,  will be equal to.

起こりうるエラー
In addition to the usual stuff: