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/core/ApiParseTocSection.md.
  • 中文
  • Interface: ApiParseTocSection

    Defined in: core/parse.ts:146

    One tocdata section (prop=tocdata) — the same outline as ApiParseSection but camelCased, with an HTML heading level instead of a wikitext level and a code-point offset instead of a byte offset.

    Properties

    anchor?

    optional anchor?: string

    Defined in: core/parse.ts:169

    Anchor name for links.


    codepointOffset?

    optional codepointOffset?: number

    Defined in: core/parse.ts:166

    Offset of the heading in code points, not bytes.


    extensionData?

    optional extensionData?: unknown[] | Record<string, unknown>

    Defined in: core/parse.ts:175

    Extension-supplied data for this section; [] when empty.


    fromTitle?

    optional fromTitle?: string

    Defined in: core/parse.ts:163

    Title the section came from.


    hLevel?

    optional hLevel?: number

    Defined in: core/parse.ts:151

    HTML heading level, as a number (1 for <h1>, 2 for <h2>, …).


    index?

    optional index?: string

    Defined in: core/parse.ts:160

    edit parameter value for this section.


    line?

    optional line?: string

    Defined in: core/parse.ts:154

    Heading text (HTML).


    linkAnchor?

    optional linkAnchor?: string

    Defined in: core/parse.ts:172

    Anchor used by the section's own edit link (leading # included).


    number?

    optional number?: string

    Defined in: core/parse.ts:157

    Section number in the outline, e.g. 1.1.


    tocLevel?

    optional tocLevel?: number

    Defined in: core/parse.ts:148

    Nesting level in the TOC.