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?
optionalanchor?:string
Defined in: core/parse.ts:169
Anchor name for links.
codepointOffset?
optionalcodepointOffset?:number
Defined in: core/parse.ts:166
Offset of the heading in code points, not bytes.
extensionData?
optionalextensionData?:unknown[] |Record<string,unknown>
Defined in: core/parse.ts:175
Extension-supplied data for this section; [] when empty.
fromTitle?
optionalfromTitle?:string
Defined in: core/parse.ts:163
Title the section came from.
hLevel?
optionalhLevel?:number
Defined in: core/parse.ts:151
HTML heading level, as a number (1 for <h1>, 2 for <h2>, …).
index?
optionalindex?:string
Defined in: core/parse.ts:160
edit parameter value for this section.
line?
optionalline?:string
Defined in: core/parse.ts:154
Heading text (HTML).
linkAnchor?
optionallinkAnchor?:string
Defined in: core/parse.ts:172
Anchor used by the section's own edit link (leading # included).
number?
optionalnumber?:string
Defined in: core/parse.ts:157
Section number in the outline, e.g. 1.1.
tocLevel?
optionaltocLevel?:number
Defined in: core/parse.ts:148
Nesting level in the TOC.