> 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.

# Interface: ApiSiteGeneral

Defined in: [core/query/siteinfo.ts:70](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L70)

Fields of `query.general` (`siprop=general`), closed on the 1.43 core key
set — extend by declaration merging for site- or extension-specific keys.

## Properties

### allcentralidlookupproviders

> **allcentralidlookupproviders**: `string`\[]

Defined in: [core/query/siteinfo.ts:294](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L294)

All available central-id lookup providers.

***

### allunicodefixes

> **allunicodefixes**: `boolean`

Defined in: [core/query/siteinfo.ts:189](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L189)

Whether all Unicode normalization fixes are applied. A real `boolean`.

***

### articlepath

> **articlepath**: `string`

Defined in: [core/query/siteinfo.ts:109](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L109)

Path pattern to an article, with `$1` for the title.

***

### base

> **base**: `string`

Defined in: [core/query/siteinfo.ts:75](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L75)

Canonical URL of the main page.

***

### case

> **case**: [`CaseSensitivity`](https://types-mediawiki-response.pages.dev/zh/api/core/CaseSensitivity.md)

Defined in: [core/query/siteinfo.ts:90](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L90)

Title case-sensitivity for the wiki.

***

### categorycollation

> **categorycollation**: `string`

Defined in: [core/query/siteinfo.ts:300](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L300)

Category sort order algorithm, e.g. `uppercase` / `unicode`.

***

### centralidlookupprovider

> **centralidlookupprovider**: `string`

Defined in: [core/query/siteinfo.ts:291](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L291)

Method used to look up a user's central account id.

***

### dbtype

> **dbtype**: `string`

Defined in: [core/query/siteinfo.ts:148](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L148)

DBMS driver, e.g. `sqlite` / `mysql`.

***

### dbversion

> **dbversion**: `string`

Defined in: [core/query/siteinfo.ts:151](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L151)

DBMS server version string.

***

### externalimages?

> `optional` **externalimages?**: `string`\[]

Defined in: [core/query/siteinfo.ts:252](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L252)

Host prefixes external images may be loaded from; `[""]` when external
images are allowed at large (`$wgAllowExternalImages`).

***

### externallinktarget

> **externallinktarget**: `string` | `boolean`

Defined in: [core/query/siteinfo.ts:279](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L279)

`target` for external links. A real `boolean` (`false`) while the site sets
no target, otherwise the attribute string such as `_blank`.

***

### fallback

> **fallback**: `object`\[]

Defined in: [core/query/siteinfo.ts:211](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L211)

Language fallback chain of the content language, one entry per fallback
code. An empty PHP list serializes as `[]`.

#### code

> **code**: `string`

Fallback language code.

***

### fallback8bitEncoding

> **fallback8bitEncoding**: `string`

Defined in: [core/query/siteinfo.ts:217](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L217)

Fallback encoding for 8-bit text, e.g. `windows-1252`.

***

### favicon?

> `optional` **favicon?**: `string`

Defined in: [core/query/siteinfo.ts:246](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L246)

Site favicon URL; absent when the site sets no `$wgFavicon`.

***

### ~~fixarabicunicode?~~

> `optional` **fixarabicunicode?**: `true`

Defined in: [core/query/siteinfo.ts:197](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L197)

Whether Arabic-specific Unicode fixes are applied. A [Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md).

#### Deprecated

since MediaWiki 1.45; the underlying config was removed in 1.35
(the field always reported `true`) and is no longer emitted.

***

### ~~fixmalayalamunicode?~~

> `optional` **fixmalayalamunicode?**: `true`

Defined in: [core/query/siteinfo.ts:205](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L205)

Whether Malayalam-specific Unicode fixes are applied. A [Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md).

#### Deprecated

since MediaWiki 1.45; the underlying config was removed in 1.35
(the field always reported `true`) and is no longer emitted.

***

### galleryoptions

> **galleryoptions**: [`ApiGalleryOptions`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiGalleryOptions.md)

Defined in: [core/query/siteinfo.ts:255](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L255)

Gallery rendering defaults.

***

### generator

> **generator**: `string`

Defined in: [core/query/siteinfo.ts:84](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L84)

Generator, e.g. `MediaWiki 1.43.0`.

***

### git-branch?

> `optional` **git-branch?**: `string`

Defined in: [core/query/siteinfo.ts:309](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L309)

Git branch of the deployment; only present on git checkouts.

***

### git-hash?

> `optional` **git-hash?**: `string`

Defined in: [core/query/siteinfo.ts:312](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L312)

Git commit hash of the deployment; only present on git checkouts.

***

### imagelimits

> **imagelimits**: `Record`\<`string`, [`ApiImageLimit`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiImageLimit.md)>

Defined in: [core/query/siteinfo.ts:264](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L264)

Selectable image-display size presets, keyed by position. Always an object under `formatversion=2`.

***

### imagewhitelistenabled?

> `optional` **imagewhitelistenabled?**: `boolean`

Defined in: [core/query/siteinfo.ts:157](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L157)

Whether the image whitelist is active. A real `boolean`, emitted only while
the site disallows inline external images (`$wgAllowExternalImages` off).

***

### interwikimagic

> **interwikimagic**: `boolean`

Defined in: [core/query/siteinfo.ts:282](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L282)

Whether interwiki prefixes may be used as magic links. A real `boolean`.

***

### invalidusernamechars

> **invalidusernamechars**: `string`

Defined in: [core/query/siteinfo.ts:186](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L186)

Characters illegal in usernames.

***

### lang

> **lang**: `string`

Defined in: [core/query/siteinfo.ts:93](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L93)

Content language code, e.g. `en`.

***

### langconversion

> **langconversion**: `boolean`

Defined in: [core/query/siteinfo.ts:160](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L160)

Whether language conversion is enabled. A real `boolean`.

***

### legaltitlechars

> **legaltitlechars**: `string`

Defined in: [core/query/siteinfo.ts:183](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L183)

Characters legal in page titles, as a regex character class body.

***

### linkconversion

> **linkconversion**: `boolean`

Defined in: [core/query/siteinfo.ts:171](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L171)

Whether interwiki-link conversion is enabled. A real `boolean`.

***

### linkprefix

> **linkprefix**: `string`

Defined in: [core/query/siteinfo.ts:177](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L177)

Link-prefix regex (legacy; `""` when unused).

***

### linkprefixcharset

> **linkprefixcharset**: `string`

Defined in: [core/query/siteinfo.ts:174](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L174)

Charset allowed for interwiki link prefixes (`""` when unused).

***

### linktrail

> **linktrail**: `string`

Defined in: [core/query/siteinfo.ts:180](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L180)

Regex deciding how much of a link trails into surrounding text.

***

### logo

> **logo**: `string`

Defined in: [core/query/siteinfo.ts:81](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L81)

Site logo URL.

***

### magiclinks

> **magiclinks**: `unknown`\[] | `Record`\<`string`, `boolean`>

Defined in: [core/query/siteinfo.ts:288](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L288)

Magic-link keywords and whether each is enabled; mirrors
`$wgEnableMagicLinks` verbatim, so an empty set serializes as `[]`.

***

### mainpage

> **mainpage**: `string`

Defined in: [core/query/siteinfo.ts:72](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L72)

Main page title.

***

### mainpageisdomainroot

> **mainpageisdomainroot**: `boolean`

Defined in: [core/query/siteinfo.ts:142](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L142)

Whether the main page is served at the domain root (i.e. `$wgArticlePath`
is `/$1`). A real `boolean`.

***

### maxarticlesize

> **maxarticlesize**: `number`

Defined in: [core/query/siteinfo.ts:136](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L136)

Maximum article size in bytes.

***

### maxuploadsize

> **maxuploadsize**: `number`

Defined in: [core/query/siteinfo.ts:240](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L240)

Maximum upload size in bytes; an array `$wgMaxUploadSize` collapses to its
`*` entry.

***

### minuploadchunksize

> **minuploadchunksize**: `number`

Defined in: [core/query/siteinfo.ts:243](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L243)

Minimum chunk size for staged uploads, in bytes.

***

### misermode

> **misermode**: `boolean`

Defined in: [core/query/siteinfo.ts:297](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L297)

Whether misc (miser-mode) features are enabled. A real `boolean`.

***

### nofollowdomainexceptions

> **nofollowdomainexceptions**: `string`\[]

Defined in: [core/query/siteinfo.ts:273](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L273)

Domains exempted from [nofollowlinks](#nofollowlinks).

***

### nofollowlinks

> **nofollowlinks**: `boolean`

Defined in: [core/query/siteinfo.ts:267](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L267)

Whether `nofollow` is added to external links. A real `boolean`.

***

### nofollownsexceptions

> **nofollownsexceptions**: `number`\[]

Defined in: [core/query/siteinfo.ts:270](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L270)

Namespaces exempted from [nofollowlinks](#nofollowlinks).

***

### phpsapi

> **phpsapi**: `string`

Defined in: [core/query/siteinfo.ts:145](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L145)

PHP SAPI name, e.g. `apache2handler` / `fpm-fcgi`.

***

### phpversion

> **phpversion**: `string`

Defined in: [core/query/siteinfo.ts:87](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L87)

PHP version string.

***

### readonly

> **readonly**: `boolean`

Defined in: [core/query/siteinfo.ts:99](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L99)

Whether the wiki is read-only. A real `boolean`.

***

### readonlyreason?

> `optional` **readonlyreason?**: `string`

Defined in: [core/query/siteinfo.ts:231](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L231)

Why the wiki is read-only; only present while [readonly](#readonly) is `true`.

***

### rtl

> **rtl**: `boolean`

Defined in: [core/query/siteinfo.ts:96](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L96)

Whether the content language is right-to-left. A real `boolean`.

***

### script

> **script**: `string`

Defined in: [core/query/siteinfo.ts:115](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L115)

Full path to `index.php`.

***

### scriptpath

> **scriptpath**: `string`

Defined in: [core/query/siteinfo.ts:112](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L112)

Path to `index.php`, without the host.

***

### server

> **server**: `string`

Defined in: [core/query/siteinfo.ts:118](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L118)

Server host (protocol-relative or bare), e.g. `//www.mediawiki.org`.

***

### servername

> **servername**: `string`

Defined in: [core/query/siteinfo.ts:121](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L121)

Server host name.

***

### sitename

> **sitename**: `string`

Defined in: [core/query/siteinfo.ts:78](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L78)

Site name.

***

### thumblimits

> **thumblimits**: `Record`\<`string`, `number`>

Defined in: [core/query/siteinfo.ts:261](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L261)

Selectable thumbnail widths, in pixels, keyed by position. Always an object
under `formatversion=2`, even though the value is a list server-side.

***

### time

> **time**: `string`

Defined in: [core/query/siteinfo.ts:127](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L127)

Current server time.

***

### timeoffset

> **timeoffset**: `number`

Defined in: [core/query/siteinfo.ts:133](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L133)

Timezone offset from UTC in seconds.

***

### timezone

> **timezone**: `string`

Defined in: [core/query/siteinfo.ts:130](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L130)

Site timezone id.

***

### ~~titleconversion~~

> **titleconversion**: `boolean`

Defined in: [core/query/siteinfo.ts:168](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L168)

Whether title conversion is enabled. A real `boolean`, mirroring
[linkconversion](#linkconversion).

#### Deprecated

Soft-deprecated since MediaWiki 1.36; use `linkconversion`.

***

### uploadsenabled

> **uploadsenabled**: `boolean`

Defined in: [core/query/siteinfo.ts:234](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L234)

Whether uploads are enabled. A real `boolean` (`$wgEnableUploads`).

***

### variantarticlepath

> **variantarticlepath**: `string` | `boolean`

Defined in: [core/query/siteinfo.ts:306](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L306)

`$wgVariantArticlePath` as configured: the URL pattern, or `false` when
unset.

***

### variants?

> `optional` **variants?**: `object`\[]

Defined in: [core/query/siteinfo.ts:220](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L220)

Language variants of the content language; absent without variant support.

#### code

> **code**: `string`

Variant code, e.g. `zh-cn`.

#### name

> **name**: `string`

Variant name in its own language.

***

### wikiid

> **wikiid**: `string`

Defined in: [core/query/siteinfo.ts:124](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L124)

Wiki id, e.g. `mediawikiwiki`.

***

### ~~writeapi~~

> **writeapi**: `true`

Defined in: [core/query/siteinfo.ts:106](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/siteinfo.ts#L106)

Whether the write API is enabled. A [Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md).

#### Deprecated

since MediaWiki 1.32; the write API can no longer be disabled.
