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 the page to add a comment to. Use this or pageid but not both.
- pageid
ID of the page to add a comment to. Use this or title 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
The
id
attribute of common ancestor.- containerclass
The
class
attribute of common ancestor.- skipcount
Skip the first n pieces of text that match this.
- This parameter is required.
- Type: integer
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.