මාධ්යවිකි API උදවු
මෙය ස්වයං-ජනිත මාධ්යවිකි API ප්රලේඛන පිටුවකි.
ප්රලේඛනය සහ උදාහරණ: https://www.mediawiki.org/wiki/API
action=revisiondelete
(main | revisiondelete)
- මෙම ඒකකය සදහා හිමිකම් කියවීම අවශ්ය වේ.
- මෙම ඒකකය සදහා හිමිකම් ලිවීම අවශ්ය වේ.
- මෙම ඒකකය POST ඉල්ලීම් පමණක් බාරගනී.
- Source: MediaWiki
- License: GPL-2.0-or-later
Delete and undelete revisions.
පරාමිතීන්:
Other general parameters are available.
- type
Type of revision deletion being performed.
- This parameter is required.
- එක් වටිනාකමක්: archive, filearchive, logging, oldimage, revision
- target
Page title for the revision deletion, if required for the type.
- ids
Identifiers for the revisions to be deleted.
- This parameter is required.
- වටිනාකම් "|" සමග වෙන් කරන්න.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- hide
What to hide for each revision.
- වටිනාකම් ("|" සමග වෙන් කරන්න): comment, content, user
- show
What to unhide for each revision.
- වටිනාකම් ("|" සමග වෙන් කරන්න): comment, content, user
- suppress
Whether to suppress data from administrators as well as others.
- එක් වටිනාකමක්: no, nochange, yes
- Default: nochange
- reason
Reason for the deletion or undeletion.
Tags to apply to the entry in the deletion log.
- වටිනාකම් ("|" සමග වෙන් කරන්න):
- token
action=query&meta=tokens මගින් "csrf" සංඥාව සොයාගන්නා ලදී
- This parameter is required.
උදාහරණ:
- Hide content for revision 12345 on the page මුල් පිටුව.
- api.php?action=revisiondelete&target=%E0%B6%B8%E0%B7%94%E0%B6%BD%E0%B7%8A%20%E0%B6%B4%E0%B7%92%E0%B6%A7%E0%B7%94%E0%B7%80&type=revision&ids=12345&hide=content&token=123ABC [open in sandbox]
- 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 [open in sandbox]