Помош со Извршникот на МедијаВики

Ова е самосоздадена документациска страница за извршникот на МедијаВики.

Документација и примери: https://www.mediawiki.org/wiki/API

action=managetags

(main | managetags)
  • За овој модул се потребни права на читање.
  • За овој модул се потребни права на пишување.
  • Овој модул прифаќа само POST-барања.
  • Извор: MediaWiki
  • Лиценца: GPL-2.0-or-later

Извршување на раководни задачи по промена на ознаки.

Параметри:
operation

Which operation to perform:

create
Create a new change tag for manual use.
delete
Remove a change tag from the database, including removing the tag from all revisions, recent change entries and log entries on which it is used.
activate
Activate a change tag, allowing users to apply it manually.
deactivate
Deactivate a change tag, preventing users from applying it manually.
Овој параметар е задолжителен.
Една од следниве вредности: activate, create, deactivate, delete
tag

Tag to create, delete, activate or deactivate. For tag creation, the tag must not exist. For tag deletion, the tag must exist. For tag activation, the tag must exist and not be in use by an extension. For tag deactivation, the tag must be currently active and manually defined.

Овој параметар е задолжителен.
reason

Незадолжителна причина за создавање, бришење, активирање или деактивирање на ознаката.

По основно: (празно)
ignorewarnings

Whether to ignore any warnings that are issued during the operation.

Type: boolean (details)
tags

Change tags to apply to the entry in the tag management log.

Вредности (одделете ги со | или алтернатива):
token

Шифра „csrf“ добиена од action=query&meta=tokens

Овој параметар е задолжителен.
Примери:
Создај ознака именувана spam со причината For use in edit patrolling
api.php?action=managetags&operation=create&tag=spam&reason=For+use+in+edit+patrolling&token=123ABC [open in sandbox]
Избриши ја ознаката vandlaism со причината Misspelt
api.php?action=managetags&operation=delete&tag=vandlaism&reason=Misspelt&token=123ABC [open in sandbox]
Овозможи ја ознаката именувана spam со причината For use in edit patrolling
api.php?action=managetags&operation=activate&tag=spam&reason=For+use+in+edit+patrolling&token=123ABC [open in sandbox]
Оневозможи ја ознаката именувана spam со причината No longer required
api.php?action=managetags&operation=deactivate&tag=spam&reason=No+longer+required&token=123ABC [open in sandbox]