For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsComment.md.
  • 中文
  • Interface: ApiDiscussionToolsComment

    Defined in: extensions/discussiontools.ts:37

    One node of a reply/indent tree (prop=threaditemshtml).

    Properties

    author?

    optional author?: string

    Defined in: extensions/discussiontools.ts:61

    Who wrote the comment.


    authorCount?

    optional authorCount?: number

    Defined in: extensions/discussiontools.ts:94

    Distinct authors below this heading. Headings only.

    Since

    MediaWiki 1.45


    commentCount?

    optional commentCount?: number

    Defined in: extensions/discussiontools.ts:87

    Number of comments below this heading. Headings only (prop=threaditemshtml).

    Since

    MediaWiki 1.45


    displayName?

    optional displayName?: string

    Defined in: extensions/discussiontools.ts:64

    Display name shown in the signature, when it differs from author.


    headingLevel?

    optional headingLevel?: number | null

    Defined in: extensions/discussiontools.ts:52

    Heading level as written in wikitext (== → 2), headings only; null for placeholder headings.


    html?

    optional html?: 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?

    optional latestReply?: 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?

    optional latestReplyTimestamp?: 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?

    optional level?: number

    Defined in: extensions/discussiontools.ts:49

    Rendering level of the heading (0 for the topic itself).


    name?

    optional name?: 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?

    optional oldestReply?: 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?

    optional othercontent?: string

    Defined in: extensions/discussiontools.ts:76

    HTML of the content between an empty section's heading and the next one; headings only.


    replies?

    optional replies?: ApiDiscussionToolsComment[]

    Defined in: extensions/discussiontools.ts:79

    Nested replies (same shape, recursively).


    timestamp?

    optional timestamp?: 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?

    optional uneditableSection?: 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.