Class DeputyCasePageWikitext

Used by DeputyCasePage to access the page's raw wikitext, make changes, etc.

Constructors

Properties

casePage: DeputyCasePage

The source case page.

content: string & {
    contentFormat: string;
    page: any;
    revid: number;
}

The cached wikitext page content.

Methods

  • Gets the wikitext for a specific section. The section will be parsed using the wikitext cache if a section title was provided. Otherwise, it will attempt to grab the section using API:Query for an up-to-date version.

    Parameters

    • section: string | number

      The section to edit

    • n: number = 1

      If the section heading appears multiple times in the page and n is provided, this function extracts the nth occurrence of that section heading.

    Returns Promise<string & {
        revid: number;
    }>

  • Gets the wikitext for this page.

    Returns Promise<string & {
        contentFormat: string;
        page: any;
        revid: number;
    }>