עזרה של MediaWiki API

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

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

action=undelete

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

Restore revisions of a deleted page.

A list of deleted revisions (including timestamps) can be retrieved through list=deletedrevs, and a list of deleted file IDs can be retrieved through list=filearchive.

פרמטרים:
title

Title of the page to restore.

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

Reason for restoring.

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

Timestamps of the revisions to restore. If both timestamps and fileids are empty, all will be restored.

הפרדה בין ערכים נעשית באמצעות | מספר הערכים המרבי הוא 50 (עבור בוטים – 500).
fileids

IDs of the file revisions to restore. If both timestamps and fileids are empty, all will be restored.

הפרדה בין ערכים נעשית באמצעות | מספר הערכים המרבי הוא 50 (עבור בוטים – 500).
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

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

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