Bantuan API MediaWiki

Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.

Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API

action=csvote

(main | csvote)
  • Modul ini memerlukan hak membaca.
  • Modul ini menerima permohonan POST sahaja.
  • Source: CommentStreams
  • License: MIT

Vote (up, down, or neutral) on a comment.

Parameter:
Other general parameters are available.
pageid

page ID of the page which holds the comment to be voted on

Type: integer
title

title of the page which holds the comment to be voted on

vote

vote (1, -1, or 0).

This parameter is required.
Type: integer
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.
Contoh-contoh:
vote on comment with page ID 3
api.php?action=csvote&pageid=3 [open in sandbox]
vote on comment with page title CommentStreams:3
api.php?action=csvote&title=CommentStreams:3 [open in sandbox]