For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/api/core/ApiParseSection.md.
  • English
  • Interface: ApiParseSection

    Defined in: core/parse.ts:98

    A table-of-contents entry (prop=sections) — the legacy projection of the same outline prop=tocdata emits, with lowercase keys here (fromtitle, byteoffset) against camelCase there (fromTitle, codepointOffset); see ApiParseTocSection. extensionData appears only when non-empty.

    Properties

    anchor

    anchor: string

    Defined in: core/parse.ts:128

    Anchor name for links.


    byteoffset

    byteoffset: number | null

    Defined in: core/parse.ts:125

    Offset of the heading in the source, in code points despite the legacy name; null for a heading that is not a "preprocessor section" (e.g. one written as a literal <h_> tag).


    extensionData?

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

    Defined in: core/parse.ts:138

    Extension-supplied data for this section; only when non-empty.


    fromtitle

    fromtitle: string | false

    Defined in: core/parse.ts:118

    Title the section came from; false when it has none — the legacy serialization of a null title, where prop=tocdata omits the key instead.


    index

    index: string

    Defined in: core/parse.ts:112

    edit parameter value for this section.


    level

    level: string

    Defined in: core/parse.ts:103

    Heading level, as a string ("1" for = … =).


    line

    line: string

    Defined in: core/parse.ts:106

    Heading text (HTML).


    linkAnchor?

    optional linkAnchor?: string

    Defined in: core/parse.ts:135

    Anchor used by the section's own edit link.

    Since

    MediaWiki 1.40


    number

    number: string

    Defined in: core/parse.ts:109

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


    toclevel

    toclevel: number

    Defined in: core/parse.ts:100

    Nesting level in the TOC.