עזרה של MediaWiki API
זהו דף תיעוד של API שנוצר באופן אוטומטי.
תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API
action=revisiondelete
(main | revisiondelete)
- יחידה זו דורשת הרשאות קריאה.
- יחידה זו דורשת הרשאות כתיבה.
- יחידה זו מקבלת רק בקשות POST.
Delete and undelete revisions.
פרמטרים:
- type
Type of revision deletion being performed.
- פרמטר זה נדרש.
- ערך אחד: revision, archive, oldimage, filearchive, logging
- target
Page title for the revision deletion, if required for the type.
- ids
Identifiers for the revisions to be deleted.
- פרמטר זה נדרש.
- הפרדה בין ערכים נעשית באמצעות | מספר הערכים המרבי הוא 50 (עבור בוטים – 500).
- hide
What to hide for each revision.
- ערכים (מופרדים באמצעות "|"): content, comment, user
- show
What to unhide for each revision.
- ערכים (מופרדים באמצעות "|"): content, comment, user
- suppress
Whether to suppress data from administrators as well as others.
- ערך אחד: yes, no, nochange
- ברירת מחדל: nochange
- reason
Reason for the deletion or undeletion.
- token
אסימון "csrf" אוחזר מ־action=query&meta=tokens
- פרמטר זה נדרש.
דוגמאות:
- Hide content for revision 12345 on the page Main Page.
- api.php?action=revisiondelete&target=Main%20Page&type=revision&ids=12345&hide=content&token=123ABC
- Hide all data on log entry 67890 with the reason BLP violation.
- api.php?action=revisiondelete&type=logging&ids=67890&hide=content|comment|user&reason=BLP%20violation&token=123ABC