Interface: ApiDiscussionToolsComment
Defined in: extensions/discussiontools.ts:37
One node of a reply/indent tree (prop=threaditemshtml).
Properties
author?
optionalauthor?:string
Defined in: extensions/discussiontools.ts:61
Who wrote the comment.
authorCount?
optionalauthorCount?:number
Defined in: extensions/discussiontools.ts:94
Distinct authors below this heading. Headings only.
Since
MediaWiki 1.45
commentCount?
optionalcommentCount?:number
Defined in: extensions/discussiontools.ts:87
Number of comments below this heading. Headings only
(prop=threaditemshtml).
Since
MediaWiki 1.45
displayName?
optionaldisplayName?:string
Defined in: extensions/discussiontools.ts:64
Display name shown in the signature, when it differs from author.
headingLevel?
optionalheadingLevel?:number|null
Defined in: extensions/discussiontools.ts:52
Heading level as written in wikitext (== → 2), headings only; null for placeholder headings.
html?
optionalhtml?:string
Defined in: extensions/discussiontools.ts:73
Rendered HTML of this comment.
id
id:
string
Defined in: extensions/discussiontools.ts:39
Comment id, e.g. h-Example_topic-20240115083000.
latestReply?
optionallatestReply?:ApiDiscussionToolsComment|null
Defined in: extensions/discussiontools.ts:111
The most recent reply, serialized as a comment item without its replies;
null when there is none. Headings only, and only with
threaditemsflags=activity (alongside prop=threaditemshtml).
Since
MediaWiki 1.46
latestReplyTimestamp?
optionallatestReplyTimestamp?:string|null
Defined in: extensions/discussiontools.ts:102
Timestamp of the latest reply under this heading, or null when there is
none. Headings only.
Since
MediaWiki 1.45
level?
optionallevel?:number
Defined in: extensions/discussiontools.ts:49
Rendering level of the heading (0 for the topic itself).
name?
optionalname?:string
Defined in: extensions/discussiontools.ts:46
Comment name — headings only (h-<user>-<timestamp>, where <user> is
the thread starter, or bare h- for an empty section); comment items do
not serialize a name.
oldestReply?
optionaloldestReply?:ApiDiscussionToolsComment|null
Defined in: extensions/discussiontools.ts:120
The earliest reply, same serialization as latestReply; null when
there is none. Headings only, and only with threaditemsflags=activity
(alongside prop=threaditemshtml).
Since
MediaWiki 1.46
othercontent?
optionalothercontent?:string
Defined in: extensions/discussiontools.ts:76
HTML of the content between an empty section's heading and the next one; headings only.
replies?
optionalreplies?:ApiDiscussionToolsComment[]
Defined in: extensions/discussiontools.ts:79
Nested replies (same shape, recursively).
timestamp?
optionaltimestamp?:string
Defined in: extensions/discussiontools.ts:67
When it was signed.
type
type:
string
Defined in: extensions/discussiontools.ts:70
Comment type, e.g. comment, heading. Open union.
uneditableSection?
optionaluneditableSection?:true
Defined in: extensions/discussiontools.ts:58
The heading opens a section that cannot be edited here (no edit-section link was rendered); headings only.