mwbot-ts - v1.2.7
    Preparing search index...

    Interface TitleNormalizeOptions

    Options for TitleStatic.normalize.

    interface TitleNormalizeOptions {
        colon?: boolean;
        format?: "api" | "db";
        fragment?: boolean;
        interwiki?: boolean;
        namespace?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    colon?: boolean

    Whether to include a leading colon in the output. (Default: false)

    This option has no effect if Title.hadLeadingColon returns false.

    format?: "api" | "db"

    The normalization format to apply. (Default: 'db')

    • 'db': Replaces all spaces with underscores.
    • 'api': Replaces all underscores with spaces.
    fragment?: boolean

    Whether to include the fragment in the output. (Default: false) All underscores are replaced by spaces.

    This option has no effect if Title.getFragment returns null.

    interwiki?: boolean

    Whether to include interwiki prefixes in the output. (Default: true)

    namespace?: number

    The default namespace to use for the given title. (Default: NS_MAIN)