wdpr
    Preparing search index...

    Interface PageContext

    Contextual information about the wiki page being rendered.

    The renderer uses this to resolve relative links, local file paths, page-existence checks (adding a "newpage" CSS class to links targeting non-existent pages), and [[iftags]] evaluation.

    interface PageContext {
        domain?: string;
        pageExists?: (page: string) => boolean;
        pageName: string;
        site?: string;
        tags?: string[];
    }
    Index

    Properties

    domain?: string

    Site domain used for absolute URL generation (e.g. "scp-wiki.wikidot.com")

    pageExists?: (page: string) => boolean

    Returns whether a page exists on the site. When a target page does not exist, the renderer adds class="newpage" to the link element — the standard Wikidot convention for red-links.

    pageName: string

    Full page name including category prefix (e.g. "secret:test2")

    site?: string

    Site slug used to build inter-site URLs (e.g. "scp-wiki")

    tags?: string[]

    Page tags used for client-side [[iftags]] evaluation during rendering