For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiInterwikiMapEntry.md.
  • 中文
  • Interface: ApiInterwikiMapEntry

    Defined in: core/query/siteinfo.ts:578

    One interwiki prefix (siprop=interwikimap).

    Properties

    api?

    optional api?: string

    Defined in: core/query/siteinfo.ts:626

    API endpoint from the interwiki table.


    bcp47?

    optional bcp47?: string

    Defined in: core/query/siteinfo.ts:605

    BCP 47 form of the language code.


    code?

    optional code?: string

    Defined in: core/query/siteinfo.ts:614

    Effective language code of an extralanglink prefix.


    deprecated?

    optional deprecated?: string

    Defined in: core/query/siteinfo.ts:602

    Current code when prefix is a deprecated language code.

    Since

    MediaWiki 1.40


    optional extralanglink?: true

    Defined in: core/query/siteinfo.ts:611

    Present when the prefix feeds interlanguage links. A Flag.


    language?

    optional language?: string

    Defined in: core/query/siteinfo.ts:595

    Language name, for language-coded prefixes.


    linktext?

    optional linktext?: string

    Defined in: core/query/siteinfo.ts:617

    Link text from interlanguage-link-<prefix>.


    local?

    optional local?: true

    Defined in: core/query/siteinfo.ts:583

    true when links using this prefix are always local (iw_local). A Flag.


    localinterwiki?

    optional localinterwiki?: true

    Defined in: core/query/siteinfo.ts:608

    Present for a locally defined prefix ($wgLocalInterwikis). A Flag.


    prefix

    prefix: string

    Defined in: core/query/siteinfo.ts:580

    Interwiki prefix, e.g. mw.


    protorel

    protorel: boolean

    Defined in: core/query/siteinfo.ts:592

    Whether the stored template is protocol-relative. A real boolean.


    sitename?

    optional sitename?: string

    Defined in: core/query/siteinfo.ts:620

    Site name from interlanguage-link-sitename-<prefix>.


    trans?

    optional trans?: true

    Defined in: core/query/siteinfo.ts:586

    true when the prefix may be transcluded (iw_trans). A Flag.


    url

    url: string

    Defined in: core/query/siteinfo.ts:589

    URL template, with $1 for the target title.


    wikiid?

    optional wikiid?: string

    Defined in: core/query/siteinfo.ts:623

    Wiki id, for wikiid-scoped prefixes.