עזרה של MediaWiki API

זהו דף תיעוד של API שנוצר באופן אוטומטי.

תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API

action=rollback

(main | rollback)
  • יחידה זו דורשת הרשאות קריאה.
  • יחידה זו דורשת הרשאות כתיבה.
  • יחידה זו מקבלת רק בקשות POST.

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.

user

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

פרמטר זה נדרש.
summary

Custom edit summary. If empty, default summary will be used.

ברירת מחדל: (ריק)
markbot

Mark the reverted edits and the revert as bot edits.

watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.

ערך אחד: watch, unwatch, preferences, nochange
ברירת מחדל: preferences
token

אסימון "rollback" אוחזר מ־action=query&meta=tokens

לשם תאימות, גם האסימון שמשמש בממשק דפדפן מתקבל.

פרמטר זה נדרש.
דוגמאות:
Roll back the last edits to page Main Page by user Example.
api.php?action=rollback&title=Main%20Page&user=Example&token=123ABC
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