Interface Section

The object that is an element of the return array of Wikitext.parseSections.

Hierarchy

  • Section

Properties

content: string

The content of the section including the heading.

endIndex: number

The index up to, but not including, the end of the section in the wikitext.

heading: string

==heading== or the outerHTML of a heading element. Any leading/trailing \ss are trimmed. For the top section, the value is empty.

index: number

The index number of the section. This is the same as the section parameter of the edit API. For the top section, the value is 0.

level: number

The level of the section (1 to 6). For the top section, the value is 1.

startIndex: number

The index to the start of the section in the wikitext.

title: string

The title of the section. Could be different from the result of action=parse if it contains HTML tags or templates. For the top section, the value is top.

Generated using TypeDoc