MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=inlinecomments-add

(main | inlinecomments-add)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: InlineComments
  • License: GPL-2.0-or-later

Add a new inline comment.

Parameters:
title

Title of page to add comment to.

pageid

Page id to add comment to. Use either this or title parameter but not both

Type: integer
pre

Text before the selected text.

body

Text to select.

This parameter is required.
container

Name of element that is the common ancestor of selected text.

This parameter is required.
comment

Text of comment being added.

This parameter is required.
containerid

ID attribute of common ancestor.

containerclass

Class attribute of common ancestor.

skipcount

Skip the first n pieces of text that matche this.

This parameter is required.
Type: integer
token

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

This parameter is required.