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?
optionalextensionData?: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?
optionallinkAnchor?: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.