මාධ්‍යවිකි API උදවු

මෙය ස්වයං-ජනිත මාධ්‍යවිකි API ප්‍රලේඛන පිටුවකි.

ප්‍රලේඛනය සහ උදාහරණ: https://www.mediawiki.org/wiki/API

action=protect

(main | protect)
  • මෙම ඒකකය සදහා හිමිකම් කියවීම අවශ්‍ය වේ.
  • මෙම ඒකකය සදහා හිමිකම් ලිවීම අවශ්‍ය වේ.
  • මෙම ඒකකය POST ඉල්ලීම් පමණක් බාරගනී.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Change the protection level of a page.

පරාමිතීන්:
Other general parameters are available.
title

Title of the page to (un)protect. Cannot be used together with pageid.

pageid

ID of the page to (un)protect. Cannot be used together with title.

Type: integer
protections

List of protection levels, formatted action=level (e.g. edit=sysop). A level of all means everyone is allowed to take the action, i.e. no restriction.

Note: Any actions not listed will have restrictions removed.

This parameter is required.
වටිනාකම් "|" සමග වෙන් කරන්න.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
expiry

Expiry timestamps. If only one timestamp is set, it'll be used for all protections. Use infinite, indefinite, infinity, or never, for a never-expiring protection.

වටිනාකම් "|" සමග වෙන් කරන්න.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
Default: infinite
reason

Reason for (un)protecting.

Default: (හිස්)
tags

Change tags to apply to the entry in the protection log.

වටිනාකම් ("|" සමග වෙන් කරන්න):
cascade

Enable cascading protection (i.e. protect transcluded templates and images used in this page). Ignored if none of the given protection levels support cascading.

Type: boolean (details)
watch
විරුද්ධත්වය ප්‍රකාශ කර ඇත.

If set, add the page being (un)protected to the current user's watchlist.

Type: boolean (details)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

එක් වටිනාකමක්: nochange, preferences, unwatch, watch
Default: preferences
token

action=query&meta=tokens මගින් "csrf" සංඥාව සොයාගන්නා ලදී

This parameter is required.
"https://si.wikibooks.beta.math.wmflabs.org/wiki/විශේෂ:ApiHelp" වෙතින් සම්ප්‍රවේශනය කෙරිණි