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

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

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

action=tag

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

Add or remove change tags from individual revisions or log entries.

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

One or more recent changes IDs from which to add or remove the tag.

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

One or more revision IDs from which to add or remove the tag.

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

One or more log entry IDs from which to add or remove the tag.

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

Tags to add. Only manually defined tags can be added.

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

Tags to remove. Only tags that are either manually defined or completely undefined can be removed.

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

Reason for the change.

Default: (හිස්)
tags

Tags to apply to the log entry that will be created as a result of this action.

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

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

This parameter is required.
උදාහරණ:
Add the vandalism tag to revision ID 123 without specifying a reason
api.php?action=tag&revid=123&add=vandalism&token=123ABC [open in sandbox]
Remove the spam tag from log entry ID 123 with the reason Wrongly applied
api.php?action=tag&logid=123&remove=spam&reason=Wrongly+applied&token=123ABC [open in sandbox]
"https://si.wiktionary.beta.math.wmflabs.org/wiki/විශේෂ:ApiHelp" වෙතින් සම්ප්‍රවේශනය කෙරිණි